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 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 | 371 |
372 # See http://gcc.gnu.org/onlinedocs/gcc-4.4.2/gcc/Optimize-Options.html | 372 # See http://gcc.gnu.org/onlinedocs/gcc-4.4.2/gcc/Optimize-Options.html |
373 'mac_release_optimization%': '3', # Use -O3 unless overridden | 373 'mac_release_optimization%': '3', # Use -O3 unless overridden |
374 'mac_debug_optimization%': '0', # Use -O0 unless overridden | 374 'mac_debug_optimization%': '0', # Use -O0 unless overridden |
375 # See http://msdn.microsoft.com/en-us/library/aa652360(VS.71).aspx | 375 # See http://msdn.microsoft.com/en-us/library/aa652360(VS.71).aspx |
376 'win_release_Optimization%': '2', # 2 = /Os | 376 'win_release_Optimization%': '2', # 2 = /Os |
377 'win_debug_Optimization%': '0', # 0 = /Od | 377 'win_debug_Optimization%': '0', # 0 = /Od |
378 # See http://msdn.microsoft.com/en-us/library/aa652367(VS.71).aspx | 378 # See http://msdn.microsoft.com/en-us/library/aa652367(VS.71).aspx |
379 'win_release_RuntimeLibrary%': '0', # 0 = /MT (nondebug static) | 379 'win_release_RuntimeLibrary%': '0', # 0 = /MT (nondebug static) |
380 'win_debug_RuntimeLibrary%': '1', # 1 = /MTd (debug static) | 380 'win_debug_RuntimeLibrary%': '1', # 1 = /MTd (debug static) |
| 381 # See http://msdn.microsoft.com/en-us/library/8wtf2dfz(VS.71).aspx |
| 382 'win_debug_RuntimeChecks%': '3', # 3 = all checks enabled, 0 = off |
| 383 # See http://msdn.microsoft.com/en-us/library/47238hez(VS.71).aspx |
| 384 'win_debug_InlineFunctionExpansion%': '0', # 0 = off |
| 385 'win_release_InlineFunctionExpansion%': '2', # 2 = max |
381 | 386 |
382 'release_extra_cflags%': '', | 387 'release_extra_cflags%': '', |
383 'debug_extra_cflags%': '', | 388 'debug_extra_cflags%': '', |
384 'release_valgrind_build%': 0, | 389 'release_valgrind_build%': 0, |
385 }, | 390 }, |
386 'conditions': [ | 391 'conditions': [ |
387 ['branding=="Chrome"', { | 392 ['branding=="Chrome"', { |
388 'defines': ['GOOGLE_CHROME_BUILD'], | 393 'defines': ['GOOGLE_CHROME_BUILD'], |
389 }, { # else: branding!="Chrome" | 394 }, { # else: branding!="Chrome" |
390 'defines': ['CHROMIUM_BUILD'], | 395 'defines': ['CHROMIUM_BUILD'], |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
612 'abstract': 1, | 617 'abstract': 1, |
613 'xcode_settings': { | 618 'xcode_settings': { |
614 'COPY_PHASE_STRIP': 'NO', | 619 'COPY_PHASE_STRIP': 'NO', |
615 'GCC_OPTIMIZATION_LEVEL': '<(mac_debug_optimization)', | 620 'GCC_OPTIMIZATION_LEVEL': '<(mac_debug_optimization)', |
616 'OTHER_CFLAGS': [ '<@(debug_extra_cflags)', ], | 621 'OTHER_CFLAGS': [ '<@(debug_extra_cflags)', ], |
617 }, | 622 }, |
618 'msvs_settings': { | 623 'msvs_settings': { |
619 'VCCLCompilerTool': { | 624 'VCCLCompilerTool': { |
620 'Optimization': '<(win_debug_Optimization)', | 625 'Optimization': '<(win_debug_Optimization)', |
621 'PreprocessorDefinitions': ['_DEBUG'], | 626 'PreprocessorDefinitions': ['_DEBUG'], |
622 'BasicRuntimeChecks': '3', | 627 'BasicRuntimeChecks': '<(win_debug_RuntimeChecks)', |
| 628 'InlineFunctionExpansion': '<(win_debug_InlineFunctionExpansion)', |
623 'RuntimeLibrary': '<(win_debug_RuntimeLibrary)', | 629 'RuntimeLibrary': '<(win_debug_RuntimeLibrary)', |
624 }, | 630 }, |
625 'VCLinkerTool': { | 631 'VCLinkerTool': { |
626 'LinkIncremental': '<(msvs_debug_link_incremental)', | 632 'LinkIncremental': '<(msvs_debug_link_incremental)', |
627 }, | 633 }, |
628 'VCResourceCompilerTool': { | 634 'VCResourceCompilerTool': { |
629 'PreprocessorDefinitions': ['_DEBUG'], | 635 'PreprocessorDefinitions': ['_DEBUG'], |
630 }, | 636 }, |
631 }, | 637 }, |
632 'conditions': [ | 638 'conditions': [ |
(...skipping 10 matching lines...) Expand all Loading... |
643 'NDEBUG', | 649 'NDEBUG', |
644 ], | 650 ], |
645 'xcode_settings': { | 651 'xcode_settings': { |
646 'DEAD_CODE_STRIPPING': 'YES', # -Wl,-dead_strip | 652 'DEAD_CODE_STRIPPING': 'YES', # -Wl,-dead_strip |
647 'GCC_OPTIMIZATION_LEVEL': '<(mac_release_optimization)', | 653 'GCC_OPTIMIZATION_LEVEL': '<(mac_release_optimization)', |
648 'OTHER_CFLAGS': [ '<@(release_extra_cflags)', ], | 654 'OTHER_CFLAGS': [ '<@(release_extra_cflags)', ], |
649 }, | 655 }, |
650 'msvs_settings': { | 656 'msvs_settings': { |
651 'VCCLCompilerTool': { | 657 'VCCLCompilerTool': { |
652 'Optimization': '<(win_release_Optimization)', | 658 'Optimization': '<(win_release_Optimization)', |
| 659 'InlineFunctionExpansion': '<(win_release_InlineFunctionExpansion)', |
653 'RuntimeLibrary': '<(win_release_RuntimeLibrary)', | 660 'RuntimeLibrary': '<(win_release_RuntimeLibrary)', |
654 }, | 661 }, |
655 'VCLinkerTool': { | 662 'VCLinkerTool': { |
656 'LinkIncremental': '1', | 663 'LinkIncremental': '1', |
657 }, | 664 }, |
658 }, | 665 }, |
659 'conditions': [ | 666 'conditions': [ |
660 ['release_valgrind_build==0', { | 667 ['release_valgrind_build==0', { |
661 'defines': ['NVALGRIND'], | 668 'defines': ['NVALGRIND'], |
662 }], | 669 }], |
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1311 # and therefore SYMROOT, needs to be set at the project level. | 1318 # and therefore SYMROOT, needs to be set at the project level. |
1312 'SYMROOT': '<(DEPTH)/xcodebuild', | 1319 'SYMROOT': '<(DEPTH)/xcodebuild', |
1313 }, | 1320 }, |
1314 } | 1321 } |
1315 | 1322 |
1316 # Local Variables: | 1323 # Local Variables: |
1317 # tab-width:2 | 1324 # tab-width:2 |
1318 # indent-tabs-mode:nil | 1325 # indent-tabs-mode:nil |
1319 # End: | 1326 # End: |
1320 # vim: set expandtab tabstop=2 shiftwidth=2: | 1327 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |