| OLD | NEW |
| 1 # Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 # IMPORTANT: | 5 # IMPORTANT: |
| 6 # Please don't directly include this file if you are building via gyp_chromium, | 6 # Please don't directly include this file if you are building via gyp_chromium, |
| 7 # since gyp_chromium is automatically forcing its inclusion. | 7 # since gyp_chromium is automatically forcing its inclusion. |
| 8 { | 8 { |
| 9 'variables': { | 9 'variables': { |
| 10 # .gyp files or targets should set chromium_code to 1 if they build | 10 # .gyp files or targets should set chromium_code to 1 if they build |
| (...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 427 'mac_release_optimization%': '3', # Use -O3 unless overridden | 427 'mac_release_optimization%': '3', # Use -O3 unless overridden |
| 428 'mac_debug_optimization%': '0', # Use -O0 unless overridden | 428 'mac_debug_optimization%': '0', # Use -O0 unless overridden |
| 429 # See http://msdn.microsoft.com/en-us/library/aa652360(VS.71).aspx | 429 # See http://msdn.microsoft.com/en-us/library/aa652360(VS.71).aspx |
| 430 'win_release_Optimization%': '2', # 2 = /Os | 430 'win_release_Optimization%': '2', # 2 = /Os |
| 431 'win_debug_Optimization%': '0', # 0 = /Od | 431 'win_debug_Optimization%': '0', # 0 = /Od |
| 432 # See http://msdn.microsoft.com/en-us/library/8wtf2dfz(VS.71).aspx | 432 # See http://msdn.microsoft.com/en-us/library/8wtf2dfz(VS.71).aspx |
| 433 'win_debug_RuntimeChecks%': '3', # 3 = all checks enabled, 0 = off | 433 'win_debug_RuntimeChecks%': '3', # 3 = all checks enabled, 0 = off |
| 434 # See http://msdn.microsoft.com/en-us/library/47238hez(VS.71).aspx | 434 # See http://msdn.microsoft.com/en-us/library/47238hez(VS.71).aspx |
| 435 'win_debug_InlineFunctionExpansion%': '', # empty = default, 0 = off, | 435 'win_debug_InlineFunctionExpansion%': '', # empty = default, 0 = off, |
| 436 'win_release_InlineFunctionExpansion%': '2', # 1 = only __inline, 2 = max | 436 'win_release_InlineFunctionExpansion%': '2', # 1 = only __inline, 2 = max |
| 437 # VS inserts quite a lot of extra checks to algorithms like |
| 438 # std::partial_sort in Debug build which make them O(N^2) |
| 439 # instead of O(N*logN). This is particularly slow under memory |
| 440 # tools like ThreadSanitizer so we want it to be disablable. |
| 441 # See http://msdn.microsoft.com/en-us/library/aa985982(v=VS.80).aspx |
| 442 'win_debug_disable_iterator_debugging%': '0', |
| 437 | 443 |
| 438 'release_extra_cflags%': '', | 444 'release_extra_cflags%': '', |
| 439 'debug_extra_cflags%': '', | 445 'debug_extra_cflags%': '', |
| 440 'release_valgrind_build%': 0, | 446 'release_valgrind_build%': 0, |
| 441 | 447 |
| 442 'conditions': [ | 448 'conditions': [ |
| 443 ['OS=="win" and component=="shared_library"', { | 449 ['OS=="win" and component=="shared_library"', { |
| 444 # See http://msdn.microsoft.com/en-us/library/aa652367.aspx | 450 # See http://msdn.microsoft.com/en-us/library/aa652367.aspx |
| 445 'win_release_RuntimeLibrary%': '2', # 2 = /MT (nondebug DLL) | 451 'win_release_RuntimeLibrary%': '2', # 2 = /MT (nondebug DLL) |
| 446 'win_debug_RuntimeLibrary%': '3', # 3 = /MTd (debug DLL) | 452 'win_debug_RuntimeLibrary%': '3', # 3 = /MTd (debug DLL) |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 715 # According to MSVS, InlineFunctionExpansion=0 means | 721 # According to MSVS, InlineFunctionExpansion=0 means |
| 716 # "default inlining", not "/Ob0". | 722 # "default inlining", not "/Ob0". |
| 717 # Thus, we have to handle InlineFunctionExpansion==0 separately. | 723 # Thus, we have to handle InlineFunctionExpansion==0 separately. |
| 718 ['win_debug_InlineFunctionExpansion==0', { | 724 ['win_debug_InlineFunctionExpansion==0', { |
| 719 'AdditionalOptions': ['/Ob0'], | 725 'AdditionalOptions': ['/Ob0'], |
| 720 }], | 726 }], |
| 721 ['win_debug_InlineFunctionExpansion!=""', { | 727 ['win_debug_InlineFunctionExpansion!=""', { |
| 722 'InlineFunctionExpansion': | 728 'InlineFunctionExpansion': |
| 723 '<(win_debug_InlineFunctionExpansion)', | 729 '<(win_debug_InlineFunctionExpansion)', |
| 724 }], | 730 }], |
| 731 ['win_debug_disable_iterator_debugging==1', { |
| 732 'PreprocessorDefinitions': ['_HAS_ITERATOR_DEBUGGING=0'], |
| 733 }], |
| 725 ], | 734 ], |
| 726 }, | 735 }, |
| 727 'VCLinkerTool': { | 736 'VCLinkerTool': { |
| 728 'LinkIncremental': '<(msvs_debug_link_incremental)', | 737 'LinkIncremental': '<(msvs_debug_link_incremental)', |
| 729 }, | 738 }, |
| 730 'VCResourceCompilerTool': { | 739 'VCResourceCompilerTool': { |
| 731 'PreprocessorDefinitions': ['_DEBUG'], | 740 'PreprocessorDefinitions': ['_DEBUG'], |
| 732 }, | 741 }, |
| 733 }, | 742 }, |
| 734 'conditions': [ | 743 'conditions': [ |
| (...skipping 783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1518 # and therefore SYMROOT, needs to be set at the project level. | 1527 # and therefore SYMROOT, needs to be set at the project level. |
| 1519 'SYMROOT': '<(DEPTH)/xcodebuild', | 1528 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 1520 }, | 1529 }, |
| 1521 } | 1530 } |
| 1522 | 1531 |
| 1523 # Local Variables: | 1532 # Local Variables: |
| 1524 # tab-width:2 | 1533 # tab-width:2 |
| 1525 # indent-tabs-mode:nil | 1534 # indent-tabs-mode:nil |
| 1526 # End: | 1535 # End: |
| 1527 # vim: set expandtab tabstop=2 shiftwidth=2: | 1536 # vim: set expandtab tabstop=2 shiftwidth=2: |
| OLD | NEW |