| OLD | NEW |
| 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 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 expected to be overriden on the GYP command line (-D) or by | 9 # Variables expected to be overriden on the GYP command line (-D) or by |
| 10 # ~/.gyp/include.gypi. | 10 # ~/.gyp/include.gypi. |
| (...skipping 737 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 748 # Enable Keystone auto-update support. | 748 # Enable Keystone auto-update support. |
| 749 'mac_keystone%': 1, | 749 'mac_keystone%': 1, |
| 750 }, { # else: branding!="Chrome" or buildtype!="Official" | 750 }, { # else: branding!="Chrome" or buildtype!="Official" |
| 751 'mac_breakpad_uploads%': 0, | 751 'mac_breakpad_uploads%': 0, |
| 752 'mac_breakpad%': 0, | 752 'mac_breakpad%': 0, |
| 753 'mac_keystone%': 0, | 753 'mac_keystone%': 0, |
| 754 }], | 754 }], |
| 755 ], | 755 ], |
| 756 }], # OS=="mac" | 756 }], # OS=="mac" |
| 757 | 757 |
| 758 # Whether to use multiple cores to compile with visual studio. This is | |
| 759 # optional because it sometimes causes corruption on VS 2005. | |
| 760 # It is on by default on VS 2008 and off on VS 2005. | |
| 761 ['OS=="win"', { | 758 ['OS=="win"', { |
| 762 'conditions': [ | 759 'conditions': [ |
| 763 ['component=="shared_library"', { | 760 ['component=="shared_library"', { |
| 764 'win_use_allocator_shim%': 0, | 761 'win_use_allocator_shim%': 0, |
| 765 }], | 762 }], |
| 763 # Whether to use multiple cores to compile with visual studio. This is |
| 764 # optional because it sometimes causes corruption on VS 2005. |
| 765 # It is on by default on VS 2008 and off on VS 2005. |
| 766 ['MSVS_VERSION=="2005"', { | 766 ['MSVS_VERSION=="2005"', { |
| 767 'msvs_multi_core_compile%': 0, | 767 'msvs_multi_core_compile%': 0, |
| 768 },{ | 768 },{ |
| 769 'msvs_multi_core_compile%': 1, | 769 'msvs_multi_core_compile%': 1, |
| 770 }], | 770 }], |
| 771 # Don't do incremental linking for large modules on 32-bit. | 771 # Don't do incremental linking for large modules on 32-bit. |
| 772 ['MSVS_OS_BITS==32', { | 772 ['MSVS_OS_BITS==32', { |
| 773 'msvs_large_module_debug_link_mode%': '1', # No | 773 'msvs_large_module_debug_link_mode%': '1', # No |
| 774 },{ | 774 },{ |
| 775 'msvs_large_module_debug_link_mode%': '2', # Yes | 775 'msvs_large_module_debug_link_mode%': '2', # Yes |
| (...skipping 701 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1477 'defines': [ | 1477 'defines': [ |
| 1478 'NDEBUG', | 1478 'NDEBUG', |
| 1479 ], | 1479 ], |
| 1480 'xcode_settings': { | 1480 'xcode_settings': { |
| 1481 'DEAD_CODE_STRIPPING': 'YES', # -Wl,-dead_strip | 1481 'DEAD_CODE_STRIPPING': 'YES', # -Wl,-dead_strip |
| 1482 'GCC_OPTIMIZATION_LEVEL': '<(mac_release_optimization)', | 1482 'GCC_OPTIMIZATION_LEVEL': '<(mac_release_optimization)', |
| 1483 'OTHER_CFLAGS': [ '<@(release_extra_cflags)', ], | 1483 'OTHER_CFLAGS': [ '<@(release_extra_cflags)', ], |
| 1484 }, | 1484 }, |
| 1485 'msvs_settings': { | 1485 'msvs_settings': { |
| 1486 'VCCLCompilerTool': { | 1486 'VCCLCompilerTool': { |
| 1487 'Optimization': '<(win_release_Optimization)', | 1487 'conditions': [ |
| 1488 # In official builds, each target will self-select |
| 1489 # an optimization level. |
| 1490 ['buildtype!="Official"', { |
| 1491 'Optimization': '<(win_release_Optimization)', |
| 1492 }, |
| 1493 ], |
| 1494 ], |
| 1488 'RuntimeLibrary': '<(win_release_RuntimeLibrary)', | 1495 'RuntimeLibrary': '<(win_release_RuntimeLibrary)', |
| 1489 'conditions': [ | 1496 'conditions': [ |
| 1490 # According to MSVS, InlineFunctionExpansion=0 means | 1497 # According to MSVS, InlineFunctionExpansion=0 means |
| 1491 # "default inlining", not "/Ob0". | 1498 # "default inlining", not "/Ob0". |
| 1492 # Thus, we have to handle InlineFunctionExpansion==0 separately. | 1499 # Thus, we have to handle InlineFunctionExpansion==0 separately. |
| 1493 ['win_release_InlineFunctionExpansion==0', { | 1500 ['win_release_InlineFunctionExpansion==0', { |
| 1494 'AdditionalOptions': ['/Ob0'], | 1501 'AdditionalOptions': ['/Ob0'], |
| 1495 }], | 1502 }], |
| 1496 ['win_release_InlineFunctionExpansion!=""', { | 1503 ['win_release_InlineFunctionExpansion!=""', { |
| 1497 'InlineFunctionExpansion': | 1504 'InlineFunctionExpansion': |
| (...skipping 809 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2307 'xcode_settings': { | 2314 'xcode_settings': { |
| 2308 'OTHER_CFLAGS': [ | 2315 'OTHER_CFLAGS': [ |
| 2309 '-fasan', | 2316 '-fasan', |
| 2310 '-faddress-sanitizer', | 2317 '-faddress-sanitizer', |
| 2311 '-w', | 2318 '-w', |
| 2312 ], | 2319 ], |
| 2313 'OTHER_LDFLAGS': [ | 2320 'OTHER_LDFLAGS': [ |
| 2314 '-fasan', | 2321 '-fasan', |
| 2315 '-faddress-sanitizer', | 2322 '-faddress-sanitizer', |
| 2316 # The symbols below are referenced in the ASan runtime | 2323 # The symbols below are referenced in the ASan runtime |
| 2317 # library (compiled on OS X 10.6), but may be unavailable | 2324 # library (compiled on OS X 10.6), but may be unavailable |
| 2318 # on the prior OS X versions. Because Chromium is currently | 2325 # on the prior OS X versions. Because Chromium is currently |
| 2319 # targeting 10.5.0, we need to explicitly mark these | 2326 # targeting 10.5.0, we need to explicitly mark these |
| 2320 # symbols as dynamic_lookup. | 2327 # symbols as dynamic_lookup. |
| 2321 '-Wl,-U,_malloc_default_purgeable_zone', | 2328 '-Wl,-U,_malloc_default_purgeable_zone', |
| 2322 '-Wl,-U,_malloc_zone_memalign', | 2329 '-Wl,-U,_malloc_zone_memalign', |
| 2323 '-Wl,-U,_dispatch_sync_f', | 2330 '-Wl,-U,_dispatch_sync_f', |
| 2324 '-Wl,-U,_dispatch_async_f', | 2331 '-Wl,-U,_dispatch_async_f', |
| 2325 '-Wl,-U,_dispatch_barrier_async_f', | 2332 '-Wl,-U,_dispatch_barrier_async_f', |
| 2326 '-Wl,-U,_dispatch_group_async_f', | 2333 '-Wl,-U,_dispatch_group_async_f', |
| 2327 '-Wl,-U,_dispatch_after_f', | 2334 '-Wl,-U,_dispatch_after_f', |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2459 '_WINDOWS', | 2466 '_WINDOWS', |
| 2460 'NOMINMAX', | 2467 'NOMINMAX', |
| 2461 'PSAPI_VERSION=1', | 2468 'PSAPI_VERSION=1', |
| 2462 '_CRT_RAND_S', | 2469 '_CRT_RAND_S', |
| 2463 'CERT_CHAIN_PARA_HAS_EXTRA_FIELDS', | 2470 'CERT_CHAIN_PARA_HAS_EXTRA_FIELDS', |
| 2464 'WIN32_LEAN_AND_MEAN', | 2471 'WIN32_LEAN_AND_MEAN', |
| 2465 '_ATL_NO_OPENGL', | 2472 '_ATL_NO_OPENGL', |
| 2466 '_HAS_TR1=0', | 2473 '_HAS_TR1=0', |
| 2467 ], | 2474 ], |
| 2468 'conditions': [ | 2475 'conditions': [ |
| 2476 ['buildtype=="Official"', { |
| 2477 # In official builds, targets can self-select an optimization |
| 2478 # level by defining a variable named 'optimize', and setting it |
| 2479 # to one of |
| 2480 # - "size", optimizes for minimal code size - the default. |
| 2481 # - "speed", optimizes for speed over code size. |
| 2482 # - "max", whole program optimization and link-time code |
| 2483 # generation. This is very expensive and should be used |
| 2484 # sparingly. |
| 2485 'variables': { |
| 2486 'optimize%': 'size', |
| 2487 }, |
| 2488 'target_conditions': [ |
| 2489 ['optimize=="size"', { |
| 2490 'msvs_settings': { |
| 2491 'VCCLCompilerTool': { |
| 2492 # 1, optimizeMinSpace, Minimize Size (/O1) |
| 2493 'Optimization': '1', |
| 2494 # 2, favorSize - Favor small code (/Os) |
| 2495 'FavorSizeOrSpeed': '2', |
| 2496 }, |
| 2497 }, |
| 2498 }, |
| 2499 ], |
| 2500 ['optimize=="speed"', { |
| 2501 'msvs_settings': { |
| 2502 'VCCLCompilerTool': { |
| 2503 # 2, optimizeMaxSpeed, Maximize Speed (/O2) |
| 2504 'Optimization': '2', |
| 2505 # 1, favorSpeed - Favor fast code (/Ot) |
| 2506 'FavorSizeOrSpeed': '1', |
| 2507 }, |
| 2508 }, |
| 2509 }, |
| 2510 ], |
| 2511 ['optimize=="max"', { |
| 2512 'msvs_settings': { |
| 2513 'VCCLCompilerTool': { |
| 2514 # 2, optimizeMaxSpeed, Maximize Speed (/O2) |
| 2515 'Optimization': '2', |
| 2516 # 1, favorSpeed - Favor fast code (/Ot) |
| 2517 'FavorSizeOrSpeed': '1', |
| 2518 # This implies link time code generation. |
| 2519 'WholeProgramOptimization': 'true', |
| 2520 }, |
| 2521 }, |
| 2522 }, |
| 2523 ], |
| 2524 ], |
| 2525 }, |
| 2526 ], |
| 2469 ['component=="static_library"', { | 2527 ['component=="static_library"', { |
| 2470 'defines': [ | 2528 'defines': [ |
| 2471 '_HAS_EXCEPTIONS=0', | 2529 '_HAS_EXCEPTIONS=0', |
| 2472 ], | 2530 ], |
| 2473 }], | 2531 }], |
| 2474 ['secure_atl', { | 2532 ['secure_atl', { |
| 2475 'defines': [ | 2533 'defines': [ |
| 2476 '_SECURE_ATL', | 2534 '_SECURE_ATL', |
| 2477 ], | 2535 ], |
| 2478 }], | 2536 }], |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2672 # settings in target dicts. SYMROOT is a special case, because many other | 2730 # settings in target dicts. SYMROOT is a special case, because many other |
| 2673 # Xcode variables depend on it, including variables such as | 2731 # Xcode variables depend on it, including variables such as |
| 2674 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 2732 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
| 2675 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 2733 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 2676 # files to appear (when present) in the UI as actual files and not red | 2734 # files to appear (when present) in the UI as actual files and not red |
| 2677 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 2735 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 2678 # and therefore SYMROOT, needs to be set at the project level. | 2736 # and therefore SYMROOT, needs to be set at the project level. |
| 2679 'SYMROOT': '<(DEPTH)/xcodebuild', | 2737 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 2680 }, | 2738 }, |
| 2681 } | 2739 } |
| OLD | NEW |