| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 # 2: revision 2 | 190 # 2: revision 2 |
| 191 'mips_dsp_rev%': 0, | 191 'mips_dsp_rev%': 0, |
| 192 | 192 |
| 193 'conditions': [ | 193 'conditions': [ |
| 194 # Ash needs Aura. | 194 # Ash needs Aura. |
| 195 ['use_aura==0', { | 195 ['use_aura==0', { |
| 196 'use_ash%': 0, | 196 'use_ash%': 0, |
| 197 }], | 197 }], |
| 198 | 198 |
| 199 # Set default value of toolkit_views based on OS. | 199 # Set default value of toolkit_views based on OS. |
| 200 ['OS=="win" or chromeos==1 or use_aura==1', { | 200 ['OS=="mac" or OS=="win" or chromeos==1 or use_aura==1', { |
| 201 'toolkit_views%': 1, | 201 'toolkit_views%': 1, |
| 202 }, { | 202 }, { |
| 203 'toolkit_views%': 0, | 203 'toolkit_views%': 0, |
| 204 }], | 204 }], |
| 205 | 205 |
| 206 # Embedded builds use aura without ash or views. | 206 # Embedded builds use aura without ash or views. |
| 207 ['embedded==1', { | 207 ['embedded==1', { |
| 208 'use_aura%': 1, | 208 'use_aura%': 1, |
| 209 'use_ash%': 0, | 209 'use_ash%': 0, |
| 210 'toolkit_views%': 0, | 210 'toolkit_views%': 0, |
| 211 }], | 211 }], |
| 212 | 212 |
| 213 # Enable HiDPI on Mac OS, Chrome OS and Windows. | 213 # Enable HiDPI on Mac OS, Chrome OS, Windows and Linux. |
| 214 ['OS=="mac" or chromeos==1 or OS=="win"', { | 214 ['OS=="mac" or chromeos==1 or OS=="win" or OS=="linux"', { |
| 215 'enable_hidpi%': 1, | 215 'enable_hidpi%': 1, |
| 216 }], | 216 }], |
| 217 | 217 |
| 218 # Enable the OpenSSL backend on Mac OS and Windows. | 218 # Enable the OpenSSL backend on Mac OS and Windows. |
| 219 ['OS=="mac" or OS=="win"', { | 219 ['OS=="mac" or OS=="win"', { |
| 220 'use_openssl%': 1, | 220 'use_openssl%': 1, |
| 221 }], | 221 }], |
| 222 | 222 |
| 223 # Enable App Launcher everywhere but mobile. | 223 # Enable App Launcher everywhere but mobile. |
| 224 ['OS!="ios" and OS!="android"', { | 224 ['OS!="ios" and OS!="android"', { |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 431 'tsan_blacklist%': '<(PRODUCT_DIR)/../../tools/memory/tsan_v2/ignores.txt'
, | 431 'tsan_blacklist%': '<(PRODUCT_DIR)/../../tools/memory/tsan_v2/ignores.txt'
, |
| 432 | 432 |
| 433 # Enable building with MSan (Clang's -fsanitize=memory option). | 433 # Enable building with MSan (Clang's -fsanitize=memory option). |
| 434 # MemorySanitizer only works with clang, but msan=1 implies clang=1 | 434 # MemorySanitizer only works with clang, but msan=1 implies clang=1 |
| 435 # See http://clang.llvm.org/docs/MemorySanitizer.html | 435 # See http://clang.llvm.org/docs/MemorySanitizer.html |
| 436 'msan%': 0, | 436 'msan%': 0, |
| 437 'msan_blacklist%': '<(PRODUCT_DIR)/../../tools/msan/blacklist.txt', | 437 'msan_blacklist%': '<(PRODUCT_DIR)/../../tools/msan/blacklist.txt', |
| 438 # Track where uninitialized memory originates from. From fastest to | 438 # Track where uninitialized memory originates from. From fastest to |
| 439 # slowest: 0 - no tracking, 1 - track only the initial allocation site, 2 | 439 # slowest: 0 - no tracking, 1 - track only the initial allocation site, 2 |
| 440 # - track the chain of stores leading from allocation site to use site. | 440 # - track the chain of stores leading from allocation site to use site. |
| 441 'msan_track_origins%': 1, | 441 'msan_track_origins%': 2, |
| 442 | 442 |
| 443 # Enable building with UBSan (Clang's -fsanitize=undefined option). | 443 # Enable building with UBSan (Clang's -fsanitize=undefined option). |
| 444 # -fsanitize=undefined only works with clang, but ubsan=1 implies clang=1 | 444 # -fsanitize=undefined only works with clang, but ubsan=1 implies clang=1 |
| 445 # See http://clang.llvm.org/docs/UsersManual.html | 445 # See http://clang.llvm.org/docs/UsersManual.html |
| 446 'ubsan%': 0, | 446 'ubsan%': 0, |
| 447 'ubsan_blacklist%': '<(PRODUCT_DIR)/../../tools/ubsan/blacklist.txt', | 447 'ubsan_blacklist%': '<(PRODUCT_DIR)/../../tools/ubsan/blacklist.txt', |
| 448 | 448 |
| 449 # Enable building with UBsan's vptr (Clang's -fsanitize=vptr option). | 449 # Enable building with UBsan's vptr (Clang's -fsanitize=vptr option). |
| 450 # -fsanitize=vptr only works with clang, but ubsan_vptr=1 implies clang=1 | 450 # -fsanitize=vptr only works with clang, but ubsan_vptr=1 implies clang=1 |
| 451 'ubsan_vptr%': 0, | 451 'ubsan_vptr%': 0, |
| 452 | 452 |
| 453 # Use the dynamic libraries instrumented by one of the sanitizers | 453 # Use dynamic libraries instrumented by one of the sanitizers |
| 454 # instead of the standard system libraries. | 454 # instead of the standard system libraries. Set this flag to build the |
| 455 # libraries from source. |
| 455 'use_instrumented_libraries%': 0, | 456 'use_instrumented_libraries%': 0, |
| 456 | 457 |
| 458 # Use dynamic libraries instrumented by one of the sanitizers |
| 459 # instead of the standard system libraries. Set this flag to download |
| 460 # prebuilt binaries from GCS. |
| 461 'use_prebuilt_instrumented_libraries%': 0, |
| 462 |
| 457 # Use libc++ (third_party/libc++ and third_party/libc++abi) instead of | 463 # Use libc++ (third_party/libc++ and third_party/libc++abi) instead of |
| 458 # stdlibc++ as standard library. This is intended to use for instrumented | 464 # stdlibc++ as standard library. This is intended to use for instrumented |
| 459 # builds. | 465 # builds. |
| 460 'use_custom_libcxx%': 0, | 466 'use_custom_libcxx%': 0, |
| 461 | 467 |
| 462 # Use system libc++ instead of the default C++ library, usually libstdc++. | 468 # Use system libc++ instead of the default C++ library, usually libstdc++. |
| 463 # This is intended for iOS builds only. | 469 # This is intended for iOS builds only. |
| 464 'use_system_libcxx%': 0, | 470 'use_system_libcxx%': 0, |
| 465 | 471 |
| 466 # Use a modified version of Clang to intercept allocated types and sizes | 472 # Use a modified version of Clang to intercept allocated types and sizes |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 640 # Allowed level of identical code folding in the gold linker. | 646 # Allowed level of identical code folding in the gold linker. |
| 641 'gold_icf_level%': 'safe', | 647 'gold_icf_level%': 'safe', |
| 642 | 648 |
| 643 # Libxkbcommon usage. | 649 # Libxkbcommon usage. |
| 644 'use_xkbcommon%': 0, | 650 'use_xkbcommon%': 0, |
| 645 | 651 |
| 646 # Control Flow Integrity for virtual calls. | 652 # Control Flow Integrity for virtual calls. |
| 647 # See http://clang.llvm.org/docs/ControlFlowIntegrity.html | 653 # See http://clang.llvm.org/docs/ControlFlowIntegrity.html |
| 648 'cfi_vptr%': 0, | 654 'cfi_vptr%': 0, |
| 649 | 655 |
| 656 # Whether the entire browser uses toolkit-views on Mac instead of Cocoa. |
| 657 'mac_views_browser%': 0, |
| 658 |
| 650 'conditions': [ | 659 'conditions': [ |
| 651 # A flag for POSIX platforms | 660 # A flag for POSIX platforms |
| 652 ['OS=="win"', { | 661 ['OS=="win"', { |
| 653 'os_posix%': 0, | 662 'os_posix%': 0, |
| 654 }, { | 663 }, { |
| 655 'os_posix%': 1, | 664 'os_posix%': 1, |
| 656 }], | 665 }], |
| 657 | 666 |
| 658 # A flag for BSD platforms | 667 # A flag for BSD platforms |
| 659 ['OS=="freebsd" or OS=="openbsd"', { | 668 ['OS=="freebsd" or OS=="openbsd"', { |
| (...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1143 'lsan%': '<(lsan)', | 1152 'lsan%': '<(lsan)', |
| 1144 'msan%': '<(msan)', | 1153 'msan%': '<(msan)', |
| 1145 'msan_blacklist%': '<(msan_blacklist)', | 1154 'msan_blacklist%': '<(msan_blacklist)', |
| 1146 'msan_track_origins%': '<(msan_track_origins)', | 1155 'msan_track_origins%': '<(msan_track_origins)', |
| 1147 'tsan%': '<(tsan)', | 1156 'tsan%': '<(tsan)', |
| 1148 'tsan_blacklist%': '<(tsan_blacklist)', | 1157 'tsan_blacklist%': '<(tsan_blacklist)', |
| 1149 'ubsan%': '<(ubsan)', | 1158 'ubsan%': '<(ubsan)', |
| 1150 'ubsan_blacklist%': '<(ubsan_blacklist)', | 1159 'ubsan_blacklist%': '<(ubsan_blacklist)', |
| 1151 'ubsan_vptr%': '<(ubsan_vptr)', | 1160 'ubsan_vptr%': '<(ubsan_vptr)', |
| 1152 'use_instrumented_libraries%': '<(use_instrumented_libraries)', | 1161 'use_instrumented_libraries%': '<(use_instrumented_libraries)', |
| 1162 'use_prebuilt_instrumented_libraries%': '<(use_prebuilt_instrumented_librari
es)', |
| 1153 'use_custom_libcxx%': '<(use_custom_libcxx)', | 1163 'use_custom_libcxx%': '<(use_custom_libcxx)', |
| 1154 'use_system_libcxx%': '<(use_system_libcxx)', | 1164 'use_system_libcxx%': '<(use_system_libcxx)', |
| 1155 'clang_type_profiler%': '<(clang_type_profiler)', | 1165 'clang_type_profiler%': '<(clang_type_profiler)', |
| 1156 'order_profiling%': '<(order_profiling)', | 1166 'order_profiling%': '<(order_profiling)', |
| 1157 'order_text_section%': '<(order_text_section)', | 1167 'order_text_section%': '<(order_text_section)', |
| 1158 'enable_extensions%': '<(enable_extensions)', | 1168 'enable_extensions%': '<(enable_extensions)', |
| 1159 'enable_plugin_installation%': '<(enable_plugin_installation)', | 1169 'enable_plugin_installation%': '<(enable_plugin_installation)', |
| 1160 'enable_plugins%': '<(enable_plugins)', | 1170 'enable_plugins%': '<(enable_plugins)', |
| 1161 'enable_session_service%': '<(enable_session_service)', | 1171 'enable_session_service%': '<(enable_session_service)', |
| 1162 'enable_themes%': '<(enable_themes)', | 1172 'enable_themes%': '<(enable_themes)', |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1207 'v8_optimized_debug%': '<(v8_optimized_debug)', | 1217 'v8_optimized_debug%': '<(v8_optimized_debug)', |
| 1208 'proprietary_codecs%': '<(proprietary_codecs)', | 1218 'proprietary_codecs%': '<(proprietary_codecs)', |
| 1209 'use_goma%': '<(use_goma)', | 1219 'use_goma%': '<(use_goma)', |
| 1210 'gomadir%': '<(gomadir)', | 1220 'gomadir%': '<(gomadir)', |
| 1211 'use_lto%': '<(use_lto)', | 1221 'use_lto%': '<(use_lto)', |
| 1212 'use_lto_o2%': '<(use_lto_o2)', | 1222 'use_lto_o2%': '<(use_lto_o2)', |
| 1213 'gold_icf_level%': '<(gold_icf_level)', | 1223 'gold_icf_level%': '<(gold_icf_level)', |
| 1214 'video_hole%': '<(video_hole)', | 1224 'video_hole%': '<(video_hole)', |
| 1215 'v8_use_external_startup_data%': '<(v8_use_external_startup_data)', | 1225 'v8_use_external_startup_data%': '<(v8_use_external_startup_data)', |
| 1216 'cfi_vptr%': '<(cfi_vptr)', | 1226 'cfi_vptr%': '<(cfi_vptr)', |
| 1227 'mac_views_browser%': '<(mac_views_browser)', |
| 1217 | 1228 |
| 1218 # Use system protobuf instead of bundled one. | 1229 # Use system protobuf instead of bundled one. |
| 1219 'use_system_protobuf%': 0, | 1230 'use_system_protobuf%': 0, |
| 1220 | 1231 |
| 1221 # Use system yasm instead of bundled one. | 1232 # Use system yasm instead of bundled one. |
| 1222 'use_system_yasm%': 0, | 1233 'use_system_yasm%': 0, |
| 1223 | 1234 |
| 1224 # Use system ICU instead of bundled one. | 1235 # Use system ICU instead of bundled one. |
| 1225 'use_system_icu%' : 0, | 1236 'use_system_icu%' : 0, |
| 1226 | 1237 |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1462 # Whether we are using the rlz library or not. Platforms like Android send | 1473 # Whether we are using the rlz library or not. Platforms like Android send |
| 1463 # rlz codes for searches but do not use the library. | 1474 # rlz codes for searches but do not use the library. |
| 1464 'enable_rlz%': 0, | 1475 'enable_rlz%': 0, |
| 1465 | 1476 |
| 1466 # Turns on the i18n support in V8. | 1477 # Turns on the i18n support in V8. |
| 1467 'v8_enable_i18n_support': 1, | 1478 'v8_enable_i18n_support': 1, |
| 1468 | 1479 |
| 1469 # Compile d8 for the host toolset. | 1480 # Compile d8 for the host toolset. |
| 1470 'v8_toolset_for_d8': 'host', | 1481 'v8_toolset_for_d8': 'host', |
| 1471 | 1482 |
| 1472 # Enable the V8 heap verification code. The verification itself is enabled | |
| 1473 # via a command line option. | |
| 1474 'v8_enable_verify_heap%': 1, | |
| 1475 | |
| 1476 # Use brlapi from brltty for braille display support. | 1483 # Use brlapi from brltty for braille display support. |
| 1477 'use_brlapi%': 0, | 1484 'use_brlapi%': 0, |
| 1478 | 1485 |
| 1479 # Relative path to icu.gyp from this file. | 1486 # Relative path to icu.gyp from this file. |
| 1480 'icu_gyp_path': '../third_party/icu/icu.gyp', | 1487 'icu_gyp_path': '../third_party/icu/icu.gyp', |
| 1481 | 1488 |
| 1482 # IPC fuzzer is disabled by default. | 1489 # IPC fuzzer is disabled by default. |
| 1483 'enable_ipc_fuzzer%': 0, | 1490 'enable_ipc_fuzzer%': 0, |
| 1484 | 1491 |
| 1485 # Force disable libstdc++ debug mode. | 1492 # Force disable libstdc++ debug mode. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 1496 | 1503 |
| 1497 # Ozone platforms to include in the build. | 1504 # Ozone platforms to include in the build. |
| 1498 'ozone_platform_caca%': 0, | 1505 'ozone_platform_caca%': 0, |
| 1499 'ozone_platform_dri%': 0, | 1506 'ozone_platform_dri%': 0, |
| 1500 'ozone_platform_drm%': 0, | 1507 'ozone_platform_drm%': 0, |
| 1501 'ozone_platform_egltest%': 0, | 1508 'ozone_platform_egltest%': 0, |
| 1502 'ozone_platform_gbm%': 0, | 1509 'ozone_platform_gbm%': 0, |
| 1503 'ozone_platform_ozonex%': 0, | 1510 'ozone_platform_ozonex%': 0, |
| 1504 'ozone_platform_test%': 0, | 1511 'ozone_platform_test%': 0, |
| 1505 | 1512 |
| 1506 # Whether the browser is non-native (using Views Toolkit) on Mac. | |
| 1507 'mac_views_browser%': 0, | |
| 1508 | |
| 1509 # Experiment: http://crbug.com/426914 | 1513 # Experiment: http://crbug.com/426914 |
| 1510 'envoy%': 0, | 1514 'envoy%': 0, |
| 1511 | 1515 |
| 1512 'conditions': [ | 1516 'conditions': [ |
| 1513 ['buildtype=="Official"', { | 1517 ['buildtype=="Official"', { |
| 1514 # Continue to embed build meta data in Official builds, basically the | 1518 # Continue to embed build meta data in Official builds, basically the |
| 1515 # time it was built. | 1519 # time it was built. |
| 1516 # TODO(maruel): This decision should be revisited because having an | 1520 # TODO(maruel): This decision should be revisited because having an |
| 1517 # official deterministic build has high value too but MSVC toolset can't | 1521 # official deterministic build has high value too but MSVC toolset can't |
| 1518 # generate anything deterministic with WPO enabled AFAIK. | 1522 # generate anything deterministic with WPO enabled AFAIK. |
| (...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1944 ['component=="shared_library"', { | 1948 ['component=="shared_library"', { |
| 1945 'win_use_allocator_shim%': 0, | 1949 'win_use_allocator_shim%': 0, |
| 1946 },{ | 1950 },{ |
| 1947 # Turn on multiple dll by default on Windows when in static_library. | 1951 # Turn on multiple dll by default on Windows when in static_library. |
| 1948 'chrome_multiple_dll%': 1, | 1952 'chrome_multiple_dll%': 1, |
| 1949 }], | 1953 }], |
| 1950 ['asan==1 or syzyasan==1', { | 1954 ['asan==1 or syzyasan==1', { |
| 1951 'win_use_allocator_shim%': 0, | 1955 'win_use_allocator_shim%': 0, |
| 1952 }], | 1956 }], |
| 1953 ['syzyasan==1', { | 1957 ['syzyasan==1', { |
| 1954 # Uncomment the following line to enable Kasko for | 1958 'kasko%': 1, |
| 1955 # SyzyASAN-instrumented releases. | |
| 1956 # 'kasko%': 1, | |
| 1957 }], | 1959 }], |
| 1958 ['component=="shared_library" and "<(GENERATOR)"=="ninja"', { | 1960 ['component=="shared_library" and "<(GENERATOR)"=="ninja"', { |
| 1959 # Only enabled by default for ninja because it's buggy in VS. | 1961 # Only enabled by default for ninja because it's buggy in VS. |
| 1960 # Not enabled for component=static_library because some targets | 1962 # Not enabled for component=static_library because some targets |
| 1961 # are too large and the toolchain fails due to the size of the | 1963 # are too large and the toolchain fails due to the size of the |
| 1962 # .obj files. | 1964 # .obj files. |
| 1963 'incremental_chrome_dll%': 1, | 1965 'incremental_chrome_dll%': 1, |
| 1964 }], | 1966 }], |
| 1965 # Don't do incremental linking for large modules on 32-bit or when | 1967 # Don't do incremental linking for large modules on 32-bit or when |
| 1966 # component=static_library as the toolchain fails due to the size of | 1968 # component=static_library as the toolchain fails due to the size of |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2071 'ast', 'bs', 'ca@valencia', 'en-AU', 'eo', 'eu', 'gl', 'hy', 'ia', | 2073 'ast', 'bs', 'ca@valencia', 'en-AU', 'eo', 'eu', 'gl', 'hy', 'ia', |
| 2072 'ka', 'ku', 'kw', 'ms', 'ug' | 2074 'ka', 'ku', 'kw', 'ms', 'ug' |
| 2073 ], | 2075 ], |
| 2074 }], | 2076 }], |
| 2075 ['OS=="android"', { | 2077 ['OS=="android"', { |
| 2076 'grit_defines': [ | 2078 'grit_defines': [ |
| 2077 '-t', 'android', | 2079 '-t', 'android', |
| 2078 '-E', 'ANDROID_JAVA_TAGGED_ONLY=true', | 2080 '-E', 'ANDROID_JAVA_TAGGED_ONLY=true', |
| 2079 '--no-output-all-resource-defines', | 2081 '--no-output-all-resource-defines', |
| 2080 ], | 2082 ], |
| 2083 'conditions': [ |
| 2084 ['<(android_webview_build)==1', { |
| 2085 'grit_defines': ['-D', 'is_android_webview_build'], |
| 2086 }], |
| 2087 ], |
| 2081 }], | 2088 }], |
| 2082 ['OS=="mac" or OS=="ios"', { | 2089 ['OS=="mac" or OS=="ios"', { |
| 2083 'grit_defines': ['-D', 'scale_factors=2x'], | 2090 'grit_defines': ['-D', 'scale_factors=2x'], |
| 2084 }], | 2091 }], |
| 2085 ['OS == "ios"', { | 2092 ['OS == "ios"', { |
| 2086 'variables': { | 2093 'variables': { |
| 2087 'enable_coverage%': 0, | 2094 'enable_coverage%': 0, |
| 2088 }, | 2095 }, |
| 2089 'grit_defines': [ | 2096 'grit_defines': [ |
| 2090 '-t', 'ios', | 2097 '-t', 'ios', |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2148 }], | 2155 }], |
| 2149 ['enable_task_manager==1', { | 2156 ['enable_task_manager==1', { |
| 2150 'grit_defines': ['-D', 'enable_task_manager'], | 2157 'grit_defines': ['-D', 'enable_task_manager'], |
| 2151 }], | 2158 }], |
| 2152 ['notifications==1', { | 2159 ['notifications==1', { |
| 2153 'grit_defines': ['-D', 'enable_notifications'], | 2160 'grit_defines': ['-D', 'enable_notifications'], |
| 2154 }], | 2161 }], |
| 2155 ['enable_wifi_bootstrapping==1', { | 2162 ['enable_wifi_bootstrapping==1', { |
| 2156 'grit_defines': ['-D', 'enable_wifi_bootstrapping'], | 2163 'grit_defines': ['-D', 'enable_wifi_bootstrapping'], |
| 2157 }], | 2164 }], |
| 2165 ['mac_views_browser==1', { |
| 2166 'grit_defines': ['-D', 'mac_views_browser'], |
| 2167 }], |
| 2158 ['enable_resource_whitelist_generation==1 and OS!="win"', { | 2168 ['enable_resource_whitelist_generation==1 and OS!="win"', { |
| 2159 'grit_rc_header_format': ['-h', '#define {textual_id} _Pragma("whitelist
ed_resource_{numeric_id}") {numeric_id}'], | 2169 'grit_rc_header_format': ['-h', '#define {textual_id} _Pragma("whitelist
ed_resource_{numeric_id}") {numeric_id}'], |
| 2160 }], | 2170 }], |
| 2161 ['enable_resource_whitelist_generation==1 and OS=="win"', { | 2171 ['enable_resource_whitelist_generation==1 and OS=="win"', { |
| 2162 'grit_rc_header_format': ['-h', '#define {textual_id} __pragma(message("
whitelisted_resource_{numeric_id}")) {numeric_id}'], | 2172 'grit_rc_header_format': ['-h', '#define {textual_id} __pragma(message("
whitelisted_resource_{numeric_id}")) {numeric_id}'], |
| 2163 }], | 2173 }], |
| 2164 ['enable_mdns==1 or OS=="mac"', { | 2174 ['enable_mdns==1 or OS=="mac"', { |
| 2165 'grit_defines': ['-D', 'enable_service_discovery'], | 2175 'grit_defines': ['-D', 'enable_service_discovery'], |
| 2166 'enable_service_discovery%': 1 | 2176 'enable_service_discovery%': 1 |
| 2167 }], | 2177 }], |
| (...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2444 # to contain whatever value it has during early variable expansion. | 2454 # to contain whatever value it has during early variable expansion. |
| 2445 # That's enough to make it available during target conditional | 2455 # That's enough to make it available during target conditional |
| 2446 # processing. | 2456 # processing. |
| 2447 'chromium_code%': '<(chromium_code)', | 2457 'chromium_code%': '<(chromium_code)', |
| 2448 | 2458 |
| 2449 'component%': '<(component)', | 2459 'component%': '<(component)', |
| 2450 | 2460 |
| 2451 'chromecast%': '<(chromecast)', | 2461 'chromecast%': '<(chromecast)', |
| 2452 | 2462 |
| 2453 # See http://msdn.microsoft.com/en-us/library/aa652360(VS.71).aspx | 2463 # See http://msdn.microsoft.com/en-us/library/aa652360(VS.71).aspx |
| 2454 'win_release_Optimization%': '2', # 2 = /Os | 2464 'win_release_Optimization%': '2', # 2 = /O2 |
| 2455 'win_debug_Optimization%': '0', # 0 = /Od | 2465 'win_debug_Optimization%': '0', # 0 = /Od |
| 2456 | 2466 |
| 2457 # See http://msdn.microsoft.com/en-us/library/2kxx5t2c(v=vs.80).aspx | 2467 # See http://msdn.microsoft.com/en-us/library/2kxx5t2c(v=vs.80).aspx |
| 2458 # Tri-state: blank is default, 1 on, 0 off | 2468 # Tri-state: blank is default, 1 on, 0 off |
| 2459 'win_release_OmitFramePointers%': '0', | 2469 'win_release_OmitFramePointers%': '0', |
| 2460 # Tri-state: blank is default, 1 on, 0 off | 2470 # Tri-state: blank is default, 1 on, 0 off |
| 2461 'win_debug_OmitFramePointers%': '', | 2471 'win_debug_OmitFramePointers%': '', |
| 2462 | 2472 |
| 2463 # See http://msdn.microsoft.com/en-us/library/8wtf2dfz(VS.71).aspx | 2473 # See http://msdn.microsoft.com/en-us/library/8wtf2dfz(VS.71).aspx |
| 2464 'win_debug_RuntimeChecks%': '3', # 3 = all checks enabled, 0 = off | 2474 'win_debug_RuntimeChecks%': '3', # 3 = all checks enabled, 0 = off |
| (...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2995 }], | 3005 }], |
| 2996 ['enable_ipc_fuzzer==1', { | 3006 ['enable_ipc_fuzzer==1', { |
| 2997 'defines': ['ENABLE_IPC_FUZZER=1'], | 3007 'defines': ['ENABLE_IPC_FUZZER=1'], |
| 2998 }], | 3008 }], |
| 2999 ['video_hole==1', { | 3009 ['video_hole==1', { |
| 3000 'defines': ['VIDEO_HOLE=1'], | 3010 'defines': ['VIDEO_HOLE=1'], |
| 3001 }], | 3011 }], |
| 3002 ['v8_use_external_startup_data==1', { | 3012 ['v8_use_external_startup_data==1', { |
| 3003 'defines': ['V8_USE_EXTERNAL_STARTUP_DATA'], | 3013 'defines': ['V8_USE_EXTERNAL_STARTUP_DATA'], |
| 3004 }], | 3014 }], |
| 3005 ['use_lto==1 and (target_arch=="ia32" or target_arch=="x64")', { | |
| 3006 # Required for third_party/zlib/crc_folding.c and various other code | |
| 3007 # that uses SSE. TODO(pcc): Remove this once we properly support | |
| 3008 # subtarget specific code generation in LLVM. | |
| 3009 'ldflags': ['-Wl,-plugin-opt,mcpu=corei7-avx'], | |
| 3010 }], | |
| 3011 ], # conditions for 'target_defaults' | 3015 ], # conditions for 'target_defaults' |
| 3012 'target_conditions': [ | 3016 'target_conditions': [ |
| 3013 ['<(use_libpci)==1', { | 3017 ['<(use_libpci)==1', { |
| 3014 'defines': ['USE_LIBPCI=1'], | 3018 'defines': ['USE_LIBPCI=1'], |
| 3015 }], | 3019 }], |
| 3016 ['<(use_openssl)==1', { | 3020 ['<(use_openssl)==1', { |
| 3017 'defines': ['USE_OPENSSL=1'], | 3021 'defines': ['USE_OPENSSL=1'], |
| 3018 }], | 3022 }], |
| 3019 ['<(use_openssl_certs)==1', { | 3023 ['<(use_openssl_certs)==1', { |
| 3020 'defines': ['USE_OPENSSL_CERTS=1'], | 3024 'defines': ['USE_OPENSSL_CERTS=1'], |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3076 '-Wno-unused-result', | 3080 '-Wno-unused-result', |
| 3077 ], | 3081 ], |
| 3078 }], | 3082 }], |
| 3079 [ 'OS=="win"', { | 3083 [ 'OS=="win"', { |
| 3080 'defines': [ | 3084 'defines': [ |
| 3081 '_CRT_SECURE_NO_DEPRECATE', | 3085 '_CRT_SECURE_NO_DEPRECATE', |
| 3082 '_CRT_NONSTDC_NO_WARNINGS', | 3086 '_CRT_NONSTDC_NO_WARNINGS', |
| 3083 '_CRT_NONSTDC_NO_DEPRECATE', | 3087 '_CRT_NONSTDC_NO_DEPRECATE', |
| 3084 '_SCL_SECURE_NO_DEPRECATE', | 3088 '_SCL_SECURE_NO_DEPRECATE', |
| 3085 ], | 3089 ], |
| 3086 'msvs_disabled_warnings': [4800], | 3090 'msvs_disabled_warnings': [ |
| 3091 # These are variable shadowing warnings that are new in VS2015. |
| 3092 # We should probably work through these at some point for |
| 3093 # non-chromium code, but for now, focus on chromium_code==1 code. |
| 3094 4456, 4457, 4458, 4459, |
| 3095 |
| 3096 4800, |
| 3097 ], |
| 3087 'msvs_settings': { | 3098 'msvs_settings': { |
| 3088 'VCCLCompilerTool': { | 3099 'VCCLCompilerTool': { |
| 3089 'WarningLevel': '3', | 3100 'WarningLevel': '3', |
| 3090 'WarnAsError': 'true', | 3101 'WarnAsError': 'true', |
| 3091 'Detect64BitPortabilityProblems': 'false', | 3102 'Detect64BitPortabilityProblems': 'false', |
| 3092 }, | 3103 }, |
| 3093 }, | 3104 }, |
| 3094 'conditions': [ | 3105 'conditions': [ |
| 3095 ['buildtype=="Official"', { | 3106 ['buildtype=="Official"', { |
| 3096 'msvs_settings': { | 3107 'msvs_settings': { |
| 3097 'VCCLCompilerTool': { 'WarnAsError': 'false' }, | 3108 'VCCLCompilerTool': { 'WarnAsError': 'false' }, |
| 3098 } | 3109 } |
| 3099 }], | 3110 }], |
| 3100 ['clang==1', { | |
| 3101 'msvs_settings': { | |
| 3102 'VCCLCompilerTool': { 'WarnAsError': 'false' }, | |
| 3103 } | |
| 3104 }], | |
| 3105 [ 'component=="shared_library"', { | 3111 [ 'component=="shared_library"', { |
| 3106 # TODO(darin): Unfortunately, some third_party code depends on bas
e. | 3112 # TODO(darin): Unfortunately, some third_party code depends on bas
e. |
| 3107 'msvs_disabled_warnings': [ | 3113 'msvs_disabled_warnings': [ |
| 3108 4251, # class 'std::xx' needs to have dll-interface. | 3114 4251, # class 'std::xx' needs to have dll-interface. |
| 3109 ], | 3115 ], |
| 3110 }], | 3116 }], |
| 3111 ], | 3117 ], |
| 3112 }], | 3118 }], |
| 3113 | 3119 |
| 3114 [ 'OS=="mac" or OS=="ios"', { | 3120 [ 'OS=="mac" or OS=="ios"', { |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3198 'odbc32.lib', | 3204 'odbc32.lib', |
| 3199 'odbccp32.lib', | 3205 'odbccp32.lib', |
| 3200 'delayimp.lib', | 3206 'delayimp.lib', |
| 3201 'credui.lib', | 3207 'credui.lib', |
| 3202 'netapi32.lib', | 3208 'netapi32.lib', |
| 3203 ], | 3209 ], |
| 3204 'AdditionalOptions': [ | 3210 'AdditionalOptions': [ |
| 3205 # Suggested by Microsoft Devrel to avoid | 3211 # Suggested by Microsoft Devrel to avoid |
| 3206 # LINK : fatal error LNK1248: image size (80000000) exceeds maxi
mum allowable size (80000000) | 3212 # LINK : fatal error LNK1248: image size (80000000) exceeds maxi
mum allowable size (80000000) |
| 3207 # which started happening more regularly after VS2013 Update 4. | 3213 # which started happening more regularly after VS2013 Update 4. |
| 3208 '/maxilksize:2147483647', | 3214 # Needs to be a bit lower for VS2015, or else errors out. |
| 3215 '/maxilksize:0x7ff00000', |
| 3209 ], | 3216 ], |
| 3210 }, | 3217 }, |
| 3211 }, | 3218 }, |
| 3212 }, | 3219 }, |
| 3213 'x86_Base': { | 3220 'x86_Base': { |
| 3214 'abstract': 1, | 3221 'abstract': 1, |
| 3215 'msvs_settings': { | 3222 'msvs_settings': { |
| 3216 'VCLinkerTool': { | 3223 'VCLinkerTool': { |
| 3217 'MinimumRequiredVersion': '5.01', # XP. | 3224 'MinimumRequiredVersion': '5.01', # XP. |
| 3218 'TargetMachine': '1', | 3225 'TargetMachine': '1', |
| (...skipping 1187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4406 'MEMORY_SANITIZER', | 4413 'MEMORY_SANITIZER', |
| 4407 ], | 4414 ], |
| 4408 }], | 4415 }], |
| 4409 ], | 4416 ], |
| 4410 }], | 4417 }], |
| 4411 ['use_instrumented_libraries==1', { | 4418 ['use_instrumented_libraries==1', { |
| 4412 'dependencies': [ | 4419 'dependencies': [ |
| 4413 '<(DEPTH)/third_party/instrumented_libraries/instrumented_librarie
s.gyp:instrumented_libraries', | 4420 '<(DEPTH)/third_party/instrumented_libraries/instrumented_librarie
s.gyp:instrumented_libraries', |
| 4414 ], | 4421 ], |
| 4415 }], | 4422 }], |
| 4423 ['use_prebuilt_instrumented_libraries==1', { |
| 4424 'dependencies': [ |
| 4425 '<(DEPTH)/third_party/instrumented_libraries/instrumented_librarie
s.gyp:prebuilt_instrumented_libraries', |
| 4426 ], |
| 4427 }], |
| 4416 ['use_custom_libcxx==1', { | 4428 ['use_custom_libcxx==1', { |
| 4417 'dependencies': [ | 4429 'dependencies': [ |
| 4418 '<(DEPTH)/buildtools/third_party/libc++/libc++.gyp:libcxx_proxy', | 4430 '<(DEPTH)/buildtools/third_party/libc++/libc++.gyp:libcxx_proxy', |
| 4419 ], | 4431 ], |
| 4420 }], | 4432 }], |
| 4421 ['order_profiling!=0 and (chromeos==1 or OS=="linux" or OS=="android")
', { | 4433 ['order_profiling!=0 and (chromeos==1 or OS=="linux" or OS=="android")
', { |
| 4422 'target_conditions' : [ | 4434 'target_conditions' : [ |
| 4423 # crazy_linker has an upstream gyp file we can't edit, and we | 4435 # crazy_linker has an upstream gyp file we can't edit, and we |
| 4424 # don't want to instrument it. | 4436 # don't want to instrument it. |
| 4425 ['_toolset=="target" and _target_name!="crazy_linker"', { | 4437 ['_toolset=="target" and _target_name!="crazy_linker"', { |
| (...skipping 1042 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5468 }], | 5480 }], |
| 5469 ], | 5481 ], |
| 5470 'msvs_system_include_dirs': [ | 5482 'msvs_system_include_dirs': [ |
| 5471 '<(windows_sdk_path)/Include/shared', | 5483 '<(windows_sdk_path)/Include/shared', |
| 5472 '<(windows_sdk_path)/Include/um', | 5484 '<(windows_sdk_path)/Include/um', |
| 5473 '<(windows_sdk_path)/Include/winrt', | 5485 '<(windows_sdk_path)/Include/winrt', |
| 5474 '$(VSInstallDir)/VC/atlmfc/include', | 5486 '$(VSInstallDir)/VC/atlmfc/include', |
| 5475 ], | 5487 ], |
| 5476 'msvs_cygwin_shell': 0, | 5488 'msvs_cygwin_shell': 0, |
| 5477 'msvs_disabled_warnings': [ | 5489 'msvs_disabled_warnings': [ |
| 5490 # C4091: 'typedef ': ignored on left of 'X' when no variable is |
| 5491 # declared. |
| 5492 # This happens in a number of Windows headers. Dumb. |
| 5493 4091, |
| 5494 |
| 5478 # C4127: conditional expression is constant | 5495 # C4127: conditional expression is constant |
| 5479 # This warning can in theory catch dead code and other problems, but | 5496 # This warning can in theory catch dead code and other problems, but |
| 5480 # triggers in far too many desirable cases where the conditional | 5497 # triggers in far too many desirable cases where the conditional |
| 5481 # expression is either set by macros or corresponds some legitimate | 5498 # expression is either set by macros or corresponds some legitimate |
| 5482 # compile-time constant expression (due to constant template args, | 5499 # compile-time constant expression (due to constant template args, |
| 5483 # conditionals comparing the sizes of different types, etc.). Some of | 5500 # conditionals comparing the sizes of different types, etc.). Some of |
| 5484 # these can be worked around, but it's not worth it. | 5501 # these can be worked around, but it's not worth it. |
| 5485 4127, | 5502 4127, |
| 5486 | 5503 |
| 5487 # C4351: new behavior: elements of array 'array' will be default | 5504 # C4351: new behavior: elements of array 'array' will be default |
| (...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5923 'target_defaults': { | 5940 'target_defaults': { |
| 5924 'target_conditions': [ | 5941 'target_conditions': [ |
| 5925 ['_toolset=="target"', { | 5942 ['_toolset=="target"', { |
| 5926 'arflags': [ | 5943 'arflags': [ |
| 5927 '--plugin', '../../<(make_clang_dir)/lib/LLVMgold.so', | 5944 '--plugin', '../../<(make_clang_dir)/lib/LLVMgold.so', |
| 5928 ], | 5945 ], |
| 5929 }], | 5946 }], |
| 5930 ], | 5947 ], |
| 5931 }, | 5948 }, |
| 5932 }], | 5949 }], |
| 5950 ['use_lto==1 and clang==1 and (target_arch=="ia32" or target_arch=="x64")',
{ |
| 5951 'target_defaults': { |
| 5952 'target_conditions': [ |
| 5953 # Required for third_party/zlib/crc_folding.c and various other code |
| 5954 # that uses SSE. TODO(pcc): Remove this once we properly support |
| 5955 # subtarget specific code generation in LLVM. |
| 5956 ['_toolset=="target"', { |
| 5957 'ldflags': [ |
| 5958 '-Wl,-plugin-opt,mcpu=corei7-avx', |
| 5959 ], |
| 5960 }], |
| 5961 ['_toolset=="target" and _type!="static_library"', { |
| 5962 'xcode_settings': { |
| 5963 'OTHER_LDFLAGS': [ |
| 5964 '-Wl,-mcpu,corei7-avx', |
| 5965 ], |
| 5966 }, |
| 5967 }], |
| 5968 ], |
| 5969 }, |
| 5970 }], |
| 5971 ['use_lto==1 and clang==1 and target_arch=="arm"', { |
| 5972 'target_defaults': { |
| 5973 'target_conditions': [ |
| 5974 ['_toolset=="target"', { |
| 5975 # Without this flag, LTO produces a .text section that is larger |
| 5976 # than the maximum call displacement, preventing the linker from |
| 5977 # relocating calls (http://llvm.org/PR22999). |
| 5978 'ldflags': [ |
| 5979 '-Wl,-plugin-opt,-function-sections', |
| 5980 ], |
| 5981 }], |
| 5982 ], |
| 5983 }, |
| 5984 }], |
| 5933 ['(use_lto==1 or use_lto_o2==1) and clang==0', { | 5985 ['(use_lto==1 or use_lto_o2==1) and clang==0', { |
| 5934 'target_defaults': { | 5986 'target_defaults': { |
| 5935 'target_conditions': [ | 5987 'target_conditions': [ |
| 5936 ['_toolset=="target"', { | 5988 ['_toolset=="target"', { |
| 5937 'ldflags': [ | 5989 'ldflags': [ |
| 5938 '-flto=32', | 5990 '-flto=32', |
| 5939 ], | 5991 ], |
| 5940 }], | 5992 }], |
| 5941 ], | 5993 ], |
| 5942 }, | 5994 }, |
| (...skipping 12 matching lines...) Expand all Loading... |
| 5955 ['cfi_vptr==1', { | 6007 ['cfi_vptr==1', { |
| 5956 'target_defaults': { | 6008 'target_defaults': { |
| 5957 'target_conditions': [ | 6009 'target_conditions': [ |
| 5958 ['_toolset=="target"', { | 6010 ['_toolset=="target"', { |
| 5959 'cflags': [ | 6011 'cflags': [ |
| 5960 '-fsanitize=cfi-vptr', | 6012 '-fsanitize=cfi-vptr', |
| 5961 ], | 6013 ], |
| 5962 'ldflags': [ | 6014 'ldflags': [ |
| 5963 '-fsanitize=cfi-vptr', | 6015 '-fsanitize=cfi-vptr', |
| 5964 ], | 6016 ], |
| 6017 'xcode_settings': { |
| 6018 'OTHER_CFLAGS': [ |
| 6019 '-fsanitize=cfi-vptr', |
| 6020 ], |
| 6021 }, |
| 6022 }], |
| 6023 ['_toolset=="target" and _type!="static_library"', { |
| 6024 'xcode_settings': { |
| 6025 'OTHER_LDFLAGS': [ |
| 6026 '-fsanitize=cfi-vptr', |
| 6027 ], |
| 6028 }, |
| 5965 }], | 6029 }], |
| 5966 ], | 6030 ], |
| 5967 }, | 6031 }, |
| 5968 }], | 6032 }], |
| 5969 ], | 6033 ], |
| 5970 'xcode_settings': { | 6034 'xcode_settings': { |
| 5971 # DON'T ADD ANYTHING NEW TO THIS BLOCK UNLESS YOU REALLY REALLY NEED IT! | 6035 # DON'T ADD ANYTHING NEW TO THIS BLOCK UNLESS YOU REALLY REALLY NEED IT! |
| 5972 # This block adds *project-wide* configuration settings to each project | 6036 # This block adds *project-wide* configuration settings to each project |
| 5973 # file. It's almost always wrong to put things here. Specify your | 6037 # file. It's almost always wrong to put things here. Specify your |
| 5974 # custom xcode_settings in target_defaults to add them to targets instead. | 6038 # custom xcode_settings in target_defaults to add them to targets instead. |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6029 # settings in target dicts. SYMROOT is a special case, because many other | 6093 # settings in target dicts. SYMROOT is a special case, because many other |
| 6030 # Xcode variables depend on it, including variables such as | 6094 # Xcode variables depend on it, including variables such as |
| 6031 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 6095 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
| 6032 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 6096 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 6033 # files to appear (when present) in the UI as actual files and not red | 6097 # files to appear (when present) in the UI as actual files and not red |
| 6034 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 6098 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 6035 # and therefore SYMROOT, needs to be set at the project level. | 6099 # and therefore SYMROOT, needs to be set at the project level. |
| 6036 'SYMROOT': '<(DEPTH)/xcodebuild', | 6100 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 6037 }, | 6101 }, |
| 6038 } | 6102 } |
| OLD | NEW |