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 671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
682 # tools/clang/scripts/update.py and the absolute path to | 682 # tools/clang/scripts/update.py and the absolute path to |
683 # third_party/llvm-build/Release+Asserts/lib must be added to | 683 # third_party/llvm-build/Release+Asserts/lib must be added to |
684 # $DYLD_LIBRARY_PATH to pick up the right version of the linker plugin. | 684 # $DYLD_LIBRARY_PATH to pick up the right version of the linker plugin. |
685 # | 685 # |
686 # On Android, the variables must *not* be enabled at the same time. | 686 # On Android, the variables must *not* be enabled at the same time. |
687 # In this case LTO would 'merge' the optimization flags at link-time | 687 # In this case LTO would 'merge' the optimization flags at link-time |
688 # which would lead to all code be optimized with -O2. See crbug.com/407544 | 688 # which would lead to all code be optimized with -O2. See crbug.com/407544 |
689 'use_lto%': 0, | 689 'use_lto%': 0, |
690 'use_lto_o2%': 0, | 690 'use_lto_o2%': 0, |
691 | 691 |
| 692 # Allowed level of identical code folding in the gold linker. |
| 693 'gold_icf_level%': 'all', |
| 694 |
692 # Libxkbcommon usage. | 695 # Libxkbcommon usage. |
693 'use_xkbcommon%': 0, | 696 'use_xkbcommon%': 0, |
694 | 697 |
695 # Control Flow Integrity for virtual calls and casts. | 698 # Control Flow Integrity for virtual calls and casts. |
696 # See http://clang.llvm.org/docs/ControlFlowIntegrity.html | 699 # See http://clang.llvm.org/docs/ControlFlowIntegrity.html |
697 'cfi_vptr%': 0, | 700 'cfi_vptr%': 0, |
698 | 701 |
699 'cfi_blacklist%': '<(PRODUCT_DIR)/../../tools/cfi/blacklist.txt', | 702 'cfi_blacklist%': '<(PRODUCT_DIR)/../../tools/cfi/blacklist.txt', |
700 | 703 |
701 # Whether the entire browser uses toolkit-views on Mac instead of Cocoa. | 704 # Whether the entire browser uses toolkit-views on Mac instead of Cocoa. |
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1217 'native_memory_pressure_signals%': '<(native_memory_pressure_signals)', | 1220 'native_memory_pressure_signals%': '<(native_memory_pressure_signals)', |
1218 'enable_mdns%' : '<(enable_mdns)', | 1221 'enable_mdns%' : '<(enable_mdns)', |
1219 'enable_service_discovery%' : '<(enable_service_discovery)', | 1222 'enable_service_discovery%' : '<(enable_service_discovery)', |
1220 'enable_wifi_bootstrapping%': '<(enable_wifi_bootstrapping)', | 1223 'enable_wifi_bootstrapping%': '<(enable_wifi_bootstrapping)', |
1221 'enable_hangout_services_extension%' : '<(enable_hangout_services_extension)
', | 1224 'enable_hangout_services_extension%' : '<(enable_hangout_services_extension)
', |
1222 'proprietary_codecs%': '<(proprietary_codecs)', | 1225 'proprietary_codecs%': '<(proprietary_codecs)', |
1223 'use_goma%': '<(use_goma)', | 1226 'use_goma%': '<(use_goma)', |
1224 'gomadir%': '<(gomadir)', | 1227 'gomadir%': '<(gomadir)', |
1225 'use_lto%': '<(use_lto)', | 1228 'use_lto%': '<(use_lto)', |
1226 'use_lto_o2%': '<(use_lto_o2)', | 1229 'use_lto_o2%': '<(use_lto_o2)', |
| 1230 'gold_icf_level%': '<(gold_icf_level)', |
1227 'video_hole%': '<(video_hole)', | 1231 'video_hole%': '<(video_hole)', |
1228 'v8_use_external_startup_data%': '<(v8_use_external_startup_data)', | 1232 'v8_use_external_startup_data%': '<(v8_use_external_startup_data)', |
1229 'cfi_vptr%': '<(cfi_vptr)', | 1233 'cfi_vptr%': '<(cfi_vptr)', |
1230 'cfi_blacklist%': '<(cfi_blacklist)', | 1234 'cfi_blacklist%': '<(cfi_blacklist)', |
1231 'mac_views_browser%': '<(mac_views_browser)', | 1235 'mac_views_browser%': '<(mac_views_browser)', |
1232 'android_app_version_name%': '<(android_app_version_name)', | 1236 'android_app_version_name%': '<(android_app_version_name)', |
1233 'android_app_version_code%': '<(android_app_version_code)', | 1237 'android_app_version_code%': '<(android_app_version_code)', |
1234 'enable_webvr%': '<(enable_webvr)', | 1238 'enable_webvr%': '<(enable_webvr)', |
1235 | 1239 |
1236 # Turns on compiler optimizations in V8 in Debug build. | 1240 # Turns on compiler optimizations in V8 in Debug build. |
(...skipping 961 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2198 'clang_chrome_plugins_flags%': | 2202 'clang_chrome_plugins_flags%': |
2199 '<(clang_dynlib_flags)' | 2203 '<(clang_dynlib_flags)' |
2200 '-Xclang -add-plugin -Xclang find-bad-constructs <(clang_plugin_args)'
, | 2204 '-Xclang -add-plugin -Xclang find-bad-constructs <(clang_plugin_args)'
, |
2201 }], | 2205 }], |
2202 ['asan==1 or msan==1 or lsan==1 or tsan==1', { | 2206 ['asan==1 or msan==1 or lsan==1 or tsan==1', { |
2203 'clang%': 1, | 2207 'clang%': 1, |
2204 'use_allocator%': 'none', | 2208 'use_allocator%': 'none', |
2205 'use_sanitizer_options%': 1, | 2209 'use_sanitizer_options%': 1, |
2206 }], | 2210 }], |
2207 | 2211 |
2208 # Allowed level of identical code folding in the gold linker. | |
2209 ['OS=="linux" and target_arch=="x64"', { | |
2210 # --icf=safe disables much more folding on x86_64 than elsewhere, see | |
2211 # http://crbug.com/492177. Turning it on saves over 12 MB of binary | |
2212 # size, but it seems to regress cold startup time by over a second | |
2213 # (see http://crbug.com/492809). | |
2214 # TODO(thakis): Check if disabling ICF would inmprove android cold start | |
2215 # times by several seconds too. | |
2216 'gold_icf_level%': 'safe', | |
2217 }, { | |
2218 'gold_icf_level%': 'all', | |
2219 }], | |
2220 | |
2221 ['OS=="linux" and asan==0 and msan==0 and lsan==0 and tsan==0', { | 2212 ['OS=="linux" and asan==0 and msan==0 and lsan==0 and tsan==0', { |
2222 # PNaCl toolchain Non-SFI build only supports linux OS build. | 2213 # PNaCl toolchain Non-SFI build only supports linux OS build. |
2223 # Also, it does not support sanitizers. | 2214 # Also, it does not support sanitizers. |
2224 'enable_nacl_nonsfi_test%': 1, | 2215 'enable_nacl_nonsfi_test%': 1, |
2225 }], | 2216 }], |
2226 ['asan==1 and OS=="linux" and chromeos==0', { | 2217 ['asan==1 and OS=="linux" and chromeos==0', { |
2227 'use_custom_libcxx%': 1, | 2218 'use_custom_libcxx%': 1, |
2228 }], | 2219 }], |
2229 ['ubsan==1', { | 2220 ['ubsan==1', { |
2230 'clang%': 1, | 2221 'clang%': 1, |
(...skipping 3979 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6210 # settings in target dicts. SYMROOT is a special case, because many other | 6201 # settings in target dicts. SYMROOT is a special case, because many other |
6211 # Xcode variables depend on it, including variables such as | 6202 # Xcode variables depend on it, including variables such as |
6212 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 6203 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
6213 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 6204 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
6214 # files to appear (when present) in the UI as actual files and not red | 6205 # files to appear (when present) in the UI as actual files and not red |
6215 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 6206 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
6216 # and therefore SYMROOT, needs to be set at the project level. | 6207 # and therefore SYMROOT, needs to be set at the project level. |
6217 'SYMROOT': '<(DEPTH)/xcodebuild', | 6208 'SYMROOT': '<(DEPTH)/xcodebuild', |
6218 }, | 6209 }, |
6219 } | 6210 } |
OLD | NEW |