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 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
409 'asan_field_padding%': 0, | 409 'asan_field_padding%': 0, |
410 | 410 |
411 # Enable Chromium overrides of the default configurations for various | 411 # Enable Chromium overrides of the default configurations for various |
412 # dynamic tools (like ASan). | 412 # dynamic tools (like ASan). |
413 'use_sanitizer_options%': 0, | 413 'use_sanitizer_options%': 0, |
414 | 414 |
415 # Enable building with SyzyAsan. | 415 # Enable building with SyzyAsan. |
416 # See https://code.google.com/p/sawbuck/wiki/SyzyASanHowTo | 416 # See https://code.google.com/p/sawbuck/wiki/SyzyASanHowTo |
417 'syzyasan%': 0, | 417 'syzyasan%': 0, |
418 | 418 |
| 419 # Enable crash reporting via Kasko. |
| 420 'kasko%': 0, |
| 421 |
419 # Enable building with LSan (Clang's -fsanitize=leak option). | 422 # Enable building with LSan (Clang's -fsanitize=leak option). |
420 # -fsanitize=leak only works with clang, but lsan=1 implies clang=1 | 423 # -fsanitize=leak only works with clang, but lsan=1 implies clang=1 |
421 # See https://sites.google.com/a/chromium.org/dev/developers/testing/leaks
anitizer | 424 # See https://sites.google.com/a/chromium.org/dev/developers/testing/leaks
anitizer |
422 'lsan%': 0, | 425 'lsan%': 0, |
423 | 426 |
424 # Enable building with TSan (Clang's -fsanitize=thread option). | 427 # Enable building with TSan (Clang's -fsanitize=thread option). |
425 # -fsanitize=thread only works with clang, but tsan=1 implies clang=1 | 428 # -fsanitize=thread only works with clang, but tsan=1 implies clang=1 |
426 # See http://clang.llvm.org/docs/ThreadSanitizer.html | 429 # See http://clang.llvm.org/docs/ThreadSanitizer.html |
427 'tsan%': 0, | 430 'tsan%': 0, |
428 'tsan_blacklist%': '<(PRODUCT_DIR)/../../tools/memory/tsan_v2/ignores.txt'
, | 431 'tsan_blacklist%': '<(PRODUCT_DIR)/../../tools/memory/tsan_v2/ignores.txt'
, |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
636 'use_lto%': 0, | 639 'use_lto%': 0, |
637 # Enable LTO on code compiled with -O2. | 640 # Enable LTO on code compiled with -O2. |
638 'use_lto_o2%': 0, | 641 'use_lto_o2%': 0, |
639 | 642 |
640 # Allowed level of identical code folding in the gold linker. | 643 # Allowed level of identical code folding in the gold linker. |
641 'gold_icf_level%': 'safe', | 644 'gold_icf_level%': 'safe', |
642 | 645 |
643 # Libxkbcommon usage. | 646 # Libxkbcommon usage. |
644 'use_xkbcommon%': 0, | 647 'use_xkbcommon%': 0, |
645 | 648 |
| 649 # Control Flow Integrity for virtual calls. |
| 650 # See http://clang.llvm.org/docs/ControlFlowIntegrity.html |
| 651 'cfi_vptr%': 0, |
| 652 |
646 'conditions': [ | 653 'conditions': [ |
647 # A flag for POSIX platforms | 654 # A flag for POSIX platforms |
648 ['OS=="win"', { | 655 ['OS=="win"', { |
649 'os_posix%': 0, | 656 'os_posix%': 0, |
650 }, { | 657 }, { |
651 'os_posix%': 1, | 658 'os_posix%': 1, |
652 }], | 659 }], |
653 | 660 |
654 # A flag for BSD platforms | 661 # A flag for BSD platforms |
655 ['OS=="freebsd" or OS=="openbsd"', { | 662 ['OS=="freebsd" or OS=="openbsd"', { |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
764 # Android OS includes support for proprietary codecs regardless of | 771 # Android OS includes support for proprietary codecs regardless of |
765 # building Chromium or Google Chrome. We also ship Google Chrome and | 772 # building Chromium or Google Chrome. We also ship Google Chrome and |
766 # Chromecast with proprietary codecs. | 773 # Chromecast with proprietary codecs. |
767 ['OS=="android" or branding=="Chrome" or chromecast==1', { | 774 ['OS=="android" or branding=="Chrome" or chromecast==1', { |
768 'proprietary_codecs%': 1, | 775 'proprietary_codecs%': 1, |
769 }, { | 776 }, { |
770 'proprietary_codecs%': 0, | 777 'proprietary_codecs%': 0, |
771 }], | 778 }], |
772 | 779 |
773 ['OS=="mac" or OS=="ios"', { | 780 ['OS=="mac" or OS=="ios"', { |
774 'native_discardable_memory%': 1, | |
775 'native_memory_pressure_signals%': 1, | 781 'native_memory_pressure_signals%': 1, |
776 }], | 782 }], |
777 | 783 |
778 # Enable autofill dialog for Android, Mac and Views-enabled platforms. | 784 # Enable autofill dialog for Android, Mac and Views-enabled platforms. |
779 ['toolkit_views==1 or (OS=="android" and android_webview_build==0) or OS
=="mac"', { | 785 ['toolkit_views==1 or (OS=="android" and android_webview_build==0) or OS
=="mac"', { |
780 'enable_autofill_dialog%': 1, | 786 'enable_autofill_dialog%': 1, |
781 | 787 |
782 'conditions': [ | 788 'conditions': [ |
783 ['buildtype=="Official"', { | 789 ['buildtype=="Official"', { |
784 'enable_prod_wallet_service%': 1, | 790 'enable_prod_wallet_service%': 1, |
(...skipping 16 matching lines...) Expand all Loading... |
801 'enable_session_service%': 0, | 807 'enable_session_service%': 0, |
802 'enable_spellcheck%': 0, | 808 'enable_spellcheck%': 0, |
803 'enable_themes%': 0, | 809 'enable_themes%': 0, |
804 'enable_webrtc%': 0, | 810 'enable_webrtc%': 0, |
805 'notifications%': 0, | 811 'notifications%': 0, |
806 'remoting%': 0, | 812 'remoting%': 0, |
807 'safe_browsing%': 0, | 813 'safe_browsing%': 0, |
808 'enable_supervised_users%': 0, | 814 'enable_supervised_users%': 0, |
809 'enable_task_manager%': 0, | 815 'enable_task_manager%': 0, |
810 'use_system_libcxx%': 1, | 816 'use_system_libcxx%': 1, |
811 'support_pre_M6_history_database%': 0, | |
812 }], | 817 }], |
813 | 818 |
814 # Use GPU accelerated cross process image transport by default | 819 # Use GPU accelerated cross process image transport by default |
815 # on linux builds with the Aura window manager | 820 # on linux builds with the Aura window manager |
816 ['use_aura==1 and OS=="linux"', { | 821 ['use_aura==1 and OS=="linux"', { |
817 'ui_compositor_image_transport%': 1, | 822 'ui_compositor_image_transport%': 1, |
818 }, { | 823 }, { |
819 'ui_compositor_image_transport%': 0, | 824 'ui_compositor_image_transport%': 0, |
820 }], | 825 }], |
821 | 826 |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1056 # | 1061 # |
1057 # Note that if you are building an official build or if | 1062 # Note that if you are building an official build or if |
1058 # use_official_google_api_keys has been set to 1 (explicitly or | 1063 # use_official_google_api_keys has been set to 1 (explicitly or |
1059 # implicitly), these values will be ignored and the official | 1064 # implicitly), these values will be ignored and the official |
1060 # keys will be used instead. | 1065 # keys will be used instead. |
1061 'google_api_key%': '', | 1066 'google_api_key%': '', |
1062 'google_default_client_id%': '', | 1067 'google_default_client_id%': '', |
1063 'google_default_client_secret%': '', | 1068 'google_default_client_secret%': '', |
1064 # Native Client is enabled by default. | 1069 # Native Client is enabled by default. |
1065 'disable_nacl%': '0', | 1070 'disable_nacl%': '0', |
1066 | |
1067 # Set to 1 to support old history files | |
1068 'support_pre_M6_history_database%': '1', | |
1069 }, | 1071 }, |
1070 | 1072 |
1071 # Copy conditionally-set variables out one scope. | 1073 # Copy conditionally-set variables out one scope. |
1072 'branding%': '<(branding)', | 1074 'branding%': '<(branding)', |
1073 'buildtype%': '<(buildtype)', | 1075 'buildtype%': '<(buildtype)', |
1074 'target_arch%': '<(target_arch)', | 1076 'target_arch%': '<(target_arch)', |
1075 'target_subarch%': '<(target_subarch)', | 1077 'target_subarch%': '<(target_subarch)', |
1076 'mips_arch_variant%': '<(mips_arch_variant)', | 1078 'mips_arch_variant%': '<(mips_arch_variant)', |
1077 'mips_dsp_rev%': '<(mips_dsp_rev)', | 1079 'mips_dsp_rev%': '<(mips_dsp_rev)', |
1078 'host_arch%': '<(host_arch)', | 1080 'host_arch%': '<(host_arch)', |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1133 'notifications%': '<(notifications)', | 1135 'notifications%': '<(notifications)', |
1134 'clang_use_chrome_plugins%': '<(clang_use_chrome_plugins)', | 1136 'clang_use_chrome_plugins%': '<(clang_use_chrome_plugins)', |
1135 'mac_want_real_dsym%': '<(mac_want_real_dsym)', | 1137 'mac_want_real_dsym%': '<(mac_want_real_dsym)', |
1136 'asan%': '<(asan)', | 1138 'asan%': '<(asan)', |
1137 'asan_blacklist%': '<(asan_blacklist)', | 1139 'asan_blacklist%': '<(asan_blacklist)', |
1138 'asan_coverage%': '<(asan_coverage)', | 1140 'asan_coverage%': '<(asan_coverage)', |
1139 'sanitizer_coverage%': '<(sanitizer_coverage)', | 1141 'sanitizer_coverage%': '<(sanitizer_coverage)', |
1140 'asan_field_padding%': '<(asan_field_padding)', | 1142 'asan_field_padding%': '<(asan_field_padding)', |
1141 'use_sanitizer_options%': '<(use_sanitizer_options)', | 1143 'use_sanitizer_options%': '<(use_sanitizer_options)', |
1142 'syzyasan%': '<(syzyasan)', | 1144 'syzyasan%': '<(syzyasan)', |
| 1145 'kasko%': '<(kasko)', |
1143 'syzygy_optimize%': '<(syzygy_optimize)', | 1146 'syzygy_optimize%': '<(syzygy_optimize)', |
1144 'lsan%': '<(lsan)', | 1147 'lsan%': '<(lsan)', |
1145 'msan%': '<(msan)', | 1148 'msan%': '<(msan)', |
1146 'msan_blacklist%': '<(msan_blacklist)', | 1149 'msan_blacklist%': '<(msan_blacklist)', |
1147 'msan_track_origins%': '<(msan_track_origins)', | 1150 'msan_track_origins%': '<(msan_track_origins)', |
1148 'tsan%': '<(tsan)', | 1151 'tsan%': '<(tsan)', |
1149 'tsan_blacklist%': '<(tsan_blacklist)', | 1152 'tsan_blacklist%': '<(tsan_blacklist)', |
1150 'ubsan%': '<(ubsan)', | 1153 'ubsan%': '<(ubsan)', |
1151 'ubsan_blacklist%': '<(ubsan_blacklist)', | 1154 'ubsan_blacklist%': '<(ubsan_blacklist)', |
1152 'ubsan_vptr%': '<(ubsan_vptr)', | 1155 'ubsan_vptr%': '<(ubsan_vptr)', |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1207 'enable_wifi_bootstrapping%': '<(enable_wifi_bootstrapping)', | 1210 'enable_wifi_bootstrapping%': '<(enable_wifi_bootstrapping)', |
1208 'enable_hangout_services_extension%' : '<(enable_hangout_services_extension)
', | 1211 'enable_hangout_services_extension%' : '<(enable_hangout_services_extension)
', |
1209 'v8_optimized_debug%': '<(v8_optimized_debug)', | 1212 'v8_optimized_debug%': '<(v8_optimized_debug)', |
1210 'proprietary_codecs%': '<(proprietary_codecs)', | 1213 'proprietary_codecs%': '<(proprietary_codecs)', |
1211 'use_goma%': '<(use_goma)', | 1214 'use_goma%': '<(use_goma)', |
1212 'gomadir%': '<(gomadir)', | 1215 'gomadir%': '<(gomadir)', |
1213 'use_lto%': '<(use_lto)', | 1216 'use_lto%': '<(use_lto)', |
1214 'use_lto_o2%': '<(use_lto_o2)', | 1217 'use_lto_o2%': '<(use_lto_o2)', |
1215 'gold_icf_level%': '<(gold_icf_level)', | 1218 'gold_icf_level%': '<(gold_icf_level)', |
1216 'video_hole%': '<(video_hole)', | 1219 'video_hole%': '<(video_hole)', |
1217 'support_pre_M6_history_database%': '<(support_pre_M6_history_database)', | |
1218 'v8_use_external_startup_data%': '<(v8_use_external_startup_data)', | 1220 'v8_use_external_startup_data%': '<(v8_use_external_startup_data)', |
| 1221 'cfi_vptr%': '<(cfi_vptr)', |
1219 | 1222 |
1220 # Use system protobuf instead of bundled one. | 1223 # Use system protobuf instead of bundled one. |
1221 'use_system_protobuf%': 0, | 1224 'use_system_protobuf%': 0, |
1222 | 1225 |
1223 # Use system yasm instead of bundled one. | 1226 # Use system yasm instead of bundled one. |
1224 'use_system_yasm%': 0, | 1227 'use_system_yasm%': 0, |
1225 | 1228 |
1226 # Use system ICU instead of bundled one. | 1229 # Use system ICU instead of bundled one. |
1227 'use_system_icu%' : 0, | 1230 'use_system_icu%' : 0, |
1228 | 1231 |
(...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1944 }], | 1947 }], |
1945 ['component=="shared_library"', { | 1948 ['component=="shared_library"', { |
1946 'win_use_allocator_shim%': 0, | 1949 'win_use_allocator_shim%': 0, |
1947 },{ | 1950 },{ |
1948 # 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. |
1949 'chrome_multiple_dll%': 1, | 1952 'chrome_multiple_dll%': 1, |
1950 }], | 1953 }], |
1951 ['asan==1 or syzyasan==1', { | 1954 ['asan==1 or syzyasan==1', { |
1952 'win_use_allocator_shim%': 0, | 1955 'win_use_allocator_shim%': 0, |
1953 }], | 1956 }], |
| 1957 ['syzyasan==1', { |
| 1958 'kasko%': 1, |
| 1959 }], |
1954 ['component=="shared_library" and "<(GENERATOR)"=="ninja"', { | 1960 ['component=="shared_library" and "<(GENERATOR)"=="ninja"', { |
1955 # 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. |
1956 # Not enabled for component=static_library because some targets | 1962 # Not enabled for component=static_library because some targets |
1957 # 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 |
1958 # .obj files. | 1964 # .obj files. |
1959 'incremental_chrome_dll%': 1, | 1965 'incremental_chrome_dll%': 1, |
1960 }], | 1966 }], |
1961 # 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 |
1962 # 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 |
1963 # the .ilk files. | 1969 # the .ilk files. |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2155 'grit_rc_header_format': ['-h', '#define {textual_id} _Pragma("whitelist
ed_resource_{numeric_id}") {numeric_id}'], | 2161 'grit_rc_header_format': ['-h', '#define {textual_id} _Pragma("whitelist
ed_resource_{numeric_id}") {numeric_id}'], |
2156 }], | 2162 }], |
2157 ['enable_resource_whitelist_generation==1 and OS=="win"', { | 2163 ['enable_resource_whitelist_generation==1 and OS=="win"', { |
2158 'grit_rc_header_format': ['-h', '#define {textual_id} __pragma(message("
whitelisted_resource_{numeric_id}")) {numeric_id}'], | 2164 'grit_rc_header_format': ['-h', '#define {textual_id} __pragma(message("
whitelisted_resource_{numeric_id}")) {numeric_id}'], |
2159 }], | 2165 }], |
2160 ['enable_mdns==1 or OS=="mac"', { | 2166 ['enable_mdns==1 or OS=="mac"', { |
2161 'grit_defines': ['-D', 'enable_service_discovery'], | 2167 'grit_defines': ['-D', 'enable_service_discovery'], |
2162 'enable_service_discovery%': 1 | 2168 'enable_service_discovery%': 1 |
2163 }], | 2169 }], |
2164 ['clang_use_chrome_plugins==1 and OS!="win"', { | 2170 ['clang_use_chrome_plugins==1 and OS!="win"', { |
| 2171 'variables': { |
| 2172 'conditions': [ |
| 2173 ['OS=="mac" or OS=="ios"', { |
| 2174 'clang_lib_path%': '<!(cd <(DEPTH) && pwd -P)/third_party/llvm-bui
ld/Release+Asserts/lib/libFindBadConstructs.dylib', |
| 2175 }, { # OS != "mac" or OS != "ios" |
| 2176 'clang_lib_path%': '<!(cd <(DEPTH) && pwd -P)/third_party/llvm-bui
ld/Release+Asserts/lib/libFindBadConstructs.so', |
| 2177 }], |
| 2178 ], |
| 2179 }, |
| 2180 # If you change these, also change build/config/clang/BUILD.gn. |
2165 'clang_chrome_plugins_flags%': | 2181 'clang_chrome_plugins_flags%': |
2166 '<!(python <(DEPTH)/tools/clang/scripts/plugin_flags.py)', | 2182 '-Xclang -load -Xclang <(clang_lib_path)' |
| 2183 ' -Xclang -add-plugin -Xclang find-bad-constructs', |
2167 }], | 2184 }], |
2168 ['asan==1 or msan==1 or lsan==1 or tsan==1', { | 2185 ['asan==1 or msan==1 or lsan==1 or tsan==1', { |
2169 'clang%': 1, | 2186 'clang%': 1, |
2170 'use_allocator%': 'none', | 2187 'use_allocator%': 'none', |
2171 'use_sanitizer_options%': 1, | 2188 'use_sanitizer_options%': 1, |
2172 # Disable ICF in the linker to avoid debug info loss. | 2189 # Disable ICF in the linker to avoid debug info loss. |
2173 'gold_icf_level%': 'none', | 2190 'gold_icf_level%': 'none', |
2174 }], | 2191 }], |
2175 ['asan==1 and OS=="linux" and chromeos==0', { | 2192 ['asan==1 and OS=="linux" and chromeos==0', { |
2176 'use_custom_libcxx%': 1, | 2193 'use_custom_libcxx%': 1, |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2369 # Do not disable seccomp_bpf anywhere without talking to | 2386 # Do not disable seccomp_bpf anywhere without talking to |
2370 # security@chromium.org! | 2387 # security@chromium.org! |
2371 ['((OS=="linux" or OS=="android") and ' | 2388 ['((OS=="linux" or OS=="android") and ' |
2372 '(target_arch=="ia32" or target_arch=="x64" or ' | 2389 '(target_arch=="ia32" or target_arch=="x64" or ' |
2373 'target_arch=="arm" or target_arch=="mipsel" or ' | 2390 'target_arch=="arm" or target_arch=="mipsel" or ' |
2374 'target_arch=="arm64"))', { | 2391 'target_arch=="arm64"))', { |
2375 'use_seccomp_bpf%': 1, | 2392 'use_seccomp_bpf%': 1, |
2376 }, { | 2393 }, { |
2377 'use_seccomp_bpf%': 0, | 2394 'use_seccomp_bpf%': 0, |
2378 }], | 2395 }], |
| 2396 |
| 2397 ['cfi_vptr==1', { |
| 2398 'use_lto%': 1, |
| 2399 }], |
2379 ], | 2400 ], |
2380 | 2401 |
2381 # older history files use fts2 instead of fts3 | |
2382 'sqlite_enable_fts2%': '<(support_pre_M6_history_database)', | |
2383 | |
2384 # The path to the ANGLE library. | 2402 # The path to the ANGLE library. |
2385 'angle_path': '<(DEPTH)/third_party/angle', | 2403 'angle_path': '<(DEPTH)/third_party/angle', |
2386 | 2404 |
2387 # List of default apps to install in new profiles. The first list contains | 2405 # List of default apps to install in new profiles. The first list contains |
2388 # the source files as found in svn. The second list, used only for linux, | 2406 # the source files as found in svn. The second list, used only for linux, |
2389 # contains the destination location for each of the files. When a crx | 2407 # contains the destination location for each of the files. When a crx |
2390 # is added or removed from the list, the chrome/browser/resources/ | 2408 # is added or removed from the list, the chrome/browser/resources/ |
2391 # default_apps/external_extensions.json file must also be updated. | 2409 # default_apps/external_extensions.json file must also be updated. |
2392 # | 2410 # |
2393 # README: GN version of these is in the target //chrome:default_apps | 2411 # README: GN version of these is in the target //chrome:default_apps |
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2789 'msvs_settings': { | 2807 'msvs_settings': { |
2790 'VCLinkerTool': { | 2808 'VCLinkerTool': { |
2791 'Profile': 'true', | 2809 'Profile': 'true', |
2792 }, | 2810 }, |
2793 }, | 2811 }, |
2794 'defines': [ | 2812 'defines': [ |
2795 'SYZYASAN', | 2813 'SYZYASAN', |
2796 'MEMORY_TOOL_REPLACES_ALLOCATOR', | 2814 'MEMORY_TOOL_REPLACES_ALLOCATOR', |
2797 'MEMORY_SANITIZER_INITIAL_SIZE', | 2815 'MEMORY_SANITIZER_INITIAL_SIZE', |
2798 ], | 2816 ], |
| 2817 }], |
| 2818 ['kasko==1', { |
| 2819 'defines': [ |
| 2820 'KASKO', |
| 2821 ], |
2799 'include_dirs': [ | 2822 'include_dirs': [ |
2800 '<(DEPTH)/third_party/kasko/include', | 2823 '<(DEPTH)/third_party/kasko/include', |
2801 ], | 2824 ], |
2802 }], | 2825 }], |
2803 ['OS=="win"', { | 2826 ['OS=="win"', { |
2804 'defines': [ | 2827 'defines': [ |
2805 '__STD_C', | 2828 '__STD_C', |
2806 '_CRT_SECURE_NO_DEPRECATE', | 2829 '_CRT_SECURE_NO_DEPRECATE', |
2807 '_SCL_SECURE_NO_DEPRECATE', | 2830 '_SCL_SECURE_NO_DEPRECATE', |
2808 # This define is required to pull in the new Win8 interfaces from | 2831 # This define is required to pull in the new Win8 interfaces from |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2946 }], | 2969 }], |
2947 ['enable_settings_app==1', { | 2970 ['enable_settings_app==1', { |
2948 'defines': ['ENABLE_SETTINGS_APP=1'], | 2971 'defines': ['ENABLE_SETTINGS_APP=1'], |
2949 }], | 2972 }], |
2950 ['disable_file_support==1', { | 2973 ['disable_file_support==1', { |
2951 'defines': ['DISABLE_FILE_SUPPORT=1'], | 2974 'defines': ['DISABLE_FILE_SUPPORT=1'], |
2952 }], | 2975 }], |
2953 ['disable_ftp_support==1', { | 2976 ['disable_ftp_support==1', { |
2954 'defines': ['DISABLE_FTP_SUPPORT=1'], | 2977 'defines': ['DISABLE_FTP_SUPPORT=1'], |
2955 }], | 2978 }], |
2956 ['use_icu_alternatives_on_android==1', { | |
2957 'defines': ['USE_ICU_ALTERNATIVES_ON_ANDROID=1'], | |
2958 }], | |
2959 ['enable_supervised_users==1', { | 2979 ['enable_supervised_users==1', { |
2960 'defines': ['ENABLE_SUPERVISED_USERS=1'], | 2980 'defines': ['ENABLE_SUPERVISED_USERS=1'], |
2961 }], | 2981 }], |
2962 ['spdy_proxy_auth_property != ""', { | 2982 ['spdy_proxy_auth_property != ""', { |
2963 'defines': ['SPDY_PROXY_AUTH_PROPERTY="<(spdy_proxy_auth_property)"'], | 2983 'defines': ['SPDY_PROXY_AUTH_PROPERTY="<(spdy_proxy_auth_property)"'], |
2964 }], | 2984 }], |
2965 ['spdy_proxy_auth_value != ""', { | 2985 ['spdy_proxy_auth_value != ""', { |
2966 'defines': ['SPDY_PROXY_AUTH_VALUE="<(spdy_proxy_auth_value)"'], | 2986 'defines': ['SPDY_PROXY_AUTH_VALUE="<(spdy_proxy_auth_value)"'], |
2967 }], | 2987 }], |
2968 ['enable_mdns==1', { | 2988 ['enable_mdns==1', { |
(...skipping 1014 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3983 # code from tail calls. | 4003 # code from tail calls. |
3984 '-fno-optimize-sibling-calls', | 4004 '-fno-optimize-sibling-calls', |
3985 ], | 4005 ], |
3986 'cflags!': [ | 4006 'cflags!': [ |
3987 '-fomit-frame-pointer', | 4007 '-fomit-frame-pointer', |
3988 ], | 4008 ], |
3989 }], | 4009 }], |
3990 ['clang==1', { | 4010 ['clang==1', { |
3991 'cflags!': [ | 4011 'cflags!': [ |
3992 # Clang does not support the following options. | 4012 # Clang does not support the following options. |
| 4013 '-mapcs-frame', |
3993 '-mthumb-interwork', | 4014 '-mthumb-interwork', |
3994 '-finline-limit=64', | 4015 '-finline-limit=64', |
3995 '-fno-tree-sra', | 4016 '-fno-tree-sra', |
3996 '-fno-caller-saves', | 4017 '-fno-caller-saves', |
3997 '-Wno-psabi', | 4018 '-Wno-psabi', |
3998 ], | 4019 ], |
3999 'cflags': [ | 4020 'cflags': [ |
4000 # TODO(hans) Enable integrated-as (crbug.com/124610). | 4021 # TODO(hans) Enable integrated-as (crbug.com/124610). |
4001 '-no-integrated-as', | 4022 '-no-integrated-as', |
4002 '-B<(android_toolchain)', # Else /usr/bin/as gets pic
ked up. | 4023 '-B<(android_toolchain)', # Else /usr/bin/as gets pic
ked up. |
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4454 # Experimentation found that using four linking threads | 4475 # Experimentation found that using four linking threads |
4455 # saved ~20% of link time. | 4476 # saved ~20% of link time. |
4456 # https://groups.google.com/a/chromium.org/group/chromium-dev/
browse_thread/thread/281527606915bb36 | 4477 # https://groups.google.com/a/chromium.org/group/chromium-dev/
browse_thread/thread/281527606915bb36 |
4457 # Only apply this to the target linker, since the host | 4478 # Only apply this to the target linker, since the host |
4458 # linker might not be gold, but isn't used much anyway. | 4479 # linker might not be gold, but isn't used much anyway. |
4459 # TODO(raymes): Disable threading because gold is frequently | 4480 # TODO(raymes): Disable threading because gold is frequently |
4460 # crashing on the bots: crbug.com/161942. | 4481 # crashing on the bots: crbug.com/161942. |
4461 # '-Wl,--threads', | 4482 # '-Wl,--threads', |
4462 # '-Wl,--thread-count=4', | 4483 # '-Wl,--thread-count=4', |
4463 ], | 4484 ], |
| 4485 'conditions': [ |
| 4486 # TODO(thestig): Enable this for disabled cases. |
| 4487 [ 'buildtype!="Official" and chromeos==0 and release_valgrind_
build==0 and asan==0 and lsan==0 and tsan==0 and msan==0 and ubsan==0 and ubsan_
vptr==0', { |
| 4488 'ldflags': [ |
| 4489 '-Wl,--detect-odr-violations', |
| 4490 ], |
| 4491 }], |
| 4492 ], |
4464 }], | 4493 }], |
4465 ], | 4494 ], |
4466 'conditions': [ | 4495 'conditions': [ |
4467 ['release_valgrind_build==0 and order_profiling==0', { | 4496 ['release_valgrind_build==0 and order_profiling==0', { |
4468 'target_conditions': [ | 4497 'target_conditions': [ |
4469 ['_toolset=="target"', { | 4498 ['_toolset=="target"', { |
4470 'ldflags': [ | 4499 'ldflags': [ |
4471 '-Wl,--icf=<(gold_icf_level)', | 4500 '-Wl,--icf=<(gold_icf_level)', |
4472 ], | 4501 ], |
4473 }], | 4502 }], |
(...skipping 1446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5920 'target_defaults': { | 5949 'target_defaults': { |
5921 'target_conditions': [ | 5950 'target_conditions': [ |
5922 ['_toolset=="target"', { | 5951 ['_toolset=="target"', { |
5923 'ldflags': [ | 5952 'ldflags': [ |
5924 '-flto', | 5953 '-flto', |
5925 ], | 5954 ], |
5926 }], | 5955 }], |
5927 ], | 5956 ], |
5928 }, | 5957 }, |
5929 }], | 5958 }], |
| 5959 ['cfi_vptr==1', { |
| 5960 'target_defaults': { |
| 5961 'target_conditions': [ |
| 5962 ['_toolset=="target"', { |
| 5963 'cflags': [ |
| 5964 '-fsanitize=cfi-vptr', |
| 5965 ], |
| 5966 'ldflags': [ |
| 5967 '-fsanitize=cfi-vptr', |
| 5968 ], |
| 5969 }], |
| 5970 ], |
| 5971 }, |
| 5972 }], |
5930 ], | 5973 ], |
5931 'xcode_settings': { | 5974 'xcode_settings': { |
5932 # DON'T ADD ANYTHING NEW TO THIS BLOCK UNLESS YOU REALLY REALLY NEED IT! | 5975 # DON'T ADD ANYTHING NEW TO THIS BLOCK UNLESS YOU REALLY REALLY NEED IT! |
5933 # This block adds *project-wide* configuration settings to each project | 5976 # This block adds *project-wide* configuration settings to each project |
5934 # file. It's almost always wrong to put things here. Specify your | 5977 # file. It's almost always wrong to put things here. Specify your |
5935 # custom xcode_settings in target_defaults to add them to targets instead. | 5978 # custom xcode_settings in target_defaults to add them to targets instead. |
5936 | 5979 |
5937 'conditions': [ | 5980 'conditions': [ |
5938 # In an Xcode Project Info window, the "Base SDK for All Configurations" | 5981 # In an Xcode Project Info window, the "Base SDK for All Configurations" |
5939 # setting sets the SDK on a project-wide basis. In order to get the | 5982 # setting sets the SDK on a project-wide basis. In order to get the |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5990 # settings in target dicts. SYMROOT is a special case, because many other | 6033 # settings in target dicts. SYMROOT is a special case, because many other |
5991 # Xcode variables depend on it, including variables such as | 6034 # Xcode variables depend on it, including variables such as |
5992 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 6035 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
5993 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 6036 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
5994 # files to appear (when present) in the UI as actual files and not red | 6037 # files to appear (when present) in the UI as actual files and not red |
5995 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 6038 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
5996 # and therefore SYMROOT, needs to be set at the project level. | 6039 # and therefore SYMROOT, needs to be set at the project level. |
5997 'SYMROOT': '<(DEPTH)/xcodebuild', | 6040 'SYMROOT': '<(DEPTH)/xcodebuild', |
5998 }, | 6041 }, |
5999 } | 6042 } |
OLD | NEW |