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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 # is useful to integrate a third party phishing/malware detection to | 250 # is useful to integrate a third party phishing/malware detection to |
251 # existing safe browsing logic. | 251 # existing safe browsing logic. |
252 'safe_browsing%': 1, | 252 'safe_browsing%': 1, |
253 | 253 |
254 # Speech input is compiled in by default. Set to 0 to disable. | 254 # Speech input is compiled in by default. Set to 0 to disable. |
255 'input_speech%': 1, | 255 'input_speech%': 1, |
256 | 256 |
257 # Notifications are compiled in by default. Set to 0 to disable. | 257 # Notifications are compiled in by default. Set to 0 to disable. |
258 'notifications%' : 1, | 258 'notifications%' : 1, |
259 | 259 |
| 260 # Use dsymutil to generate real .dSYM files on Mac. The default is 0 for |
| 261 # regular builds and 1 for ASan builds. |
| 262 'mac_want_real_dsym%': 'default', |
| 263 |
260 # If this is set, the clang plugins used on the buildbot will be used. | 264 # If this is set, the clang plugins used on the buildbot will be used. |
261 # Run tools/clang/scripts/update.sh to make sure they are compiled. | 265 # Run tools/clang/scripts/update.sh to make sure they are compiled. |
262 # This causes 'clang_chrome_plugins_flags' to be set. | 266 # This causes 'clang_chrome_plugins_flags' to be set. |
263 # Has no effect if 'clang' is not set as well. | 267 # Has no effect if 'clang' is not set as well. |
264 'clang_use_chrome_plugins%': 1, | 268 'clang_use_chrome_plugins%': 1, |
265 | 269 |
266 # Enable building with ASAN (Clang's -fsanitize=address option). | 270 # Enable building with ASAN (Clang's -fsanitize=address option). |
267 # -fsanitize=address only works with clang, but asan=1 implies clang=1 | 271 # -fsanitize=address only works with clang, but asan=1 implies clang=1 |
268 # See https://sites.google.com/a/chromium.org/dev/developers/testing/addre
sssanitizer | 272 # See https://sites.google.com/a/chromium.org/dev/developers/testing/addre
sssanitizer |
269 'asan%': 0, | 273 'asan%': 0, |
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
657 'use_third_party_translations%': '<(use_third_party_translations)', | 661 'use_third_party_translations%': '<(use_third_party_translations)', |
658 'remoting%': '<(remoting)', | 662 'remoting%': '<(remoting)', |
659 'enable_one_click_signin%': '<(enable_one_click_signin)', | 663 'enable_one_click_signin%': '<(enable_one_click_signin)', |
660 'enable_webrtc%': '<(enable_webrtc)', | 664 'enable_webrtc%': '<(enable_webrtc)', |
661 'chromium_win_pch%': '<(chromium_win_pch)', | 665 'chromium_win_pch%': '<(chromium_win_pch)', |
662 'configuration_policy%': '<(configuration_policy)', | 666 'configuration_policy%': '<(configuration_policy)', |
663 'safe_browsing%': '<(safe_browsing)', | 667 'safe_browsing%': '<(safe_browsing)', |
664 'input_speech%': '<(input_speech)', | 668 'input_speech%': '<(input_speech)', |
665 'notifications%': '<(notifications)', | 669 'notifications%': '<(notifications)', |
666 'clang_use_chrome_plugins%': '<(clang_use_chrome_plugins)', | 670 'clang_use_chrome_plugins%': '<(clang_use_chrome_plugins)', |
| 671 'mac_want_real_dsym%': '<(mac_want_real_dsym)', |
667 'asan%': '<(asan)', | 672 'asan%': '<(asan)', |
668 'tsan%': '<(tsan)', | 673 'tsan%': '<(tsan)', |
669 'tsan_blacklist%': '<(tsan_blacklist)', | 674 'tsan_blacklist%': '<(tsan_blacklist)', |
670 'clang_type_profiler%': '<(clang_type_profiler)', | 675 'clang_type_profiler%': '<(clang_type_profiler)', |
671 'order_profiling%': '<(order_profiling)', | 676 'order_profiling%': '<(order_profiling)', |
672 'order_text_section%': '<(order_text_section)', | 677 'order_text_section%': '<(order_text_section)', |
673 'enable_extensions%': '<(enable_extensions)', | 678 'enable_extensions%': '<(enable_extensions)', |
674 'enable_web_intents%': '<(enable_web_intents)', | 679 'enable_web_intents%': '<(enable_web_intents)', |
675 'enable_web_intents_tag%': '<(enable_web_intents_tag)', | 680 'enable_web_intents_tag%': '<(enable_web_intents_tag)', |
676 'enable_plugin_installation%': '<(enable_plugin_installation)', | 681 'enable_plugin_installation%': '<(enable_plugin_installation)', |
(...skipping 2664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3341 ], # target_conditions | 3346 ], # target_conditions |
3342 }, # target_defaults | 3347 }, # target_defaults |
3343 }], # OS=="mac" or OS=="ios" | 3348 }], # OS=="mac" or OS=="ios" |
3344 ['OS=="mac"', { | 3349 ['OS=="mac"', { |
3345 'target_defaults': { | 3350 'target_defaults': { |
3346 'variables': { | 3351 'variables': { |
3347 # These should end with %, but there seems to be a bug with % in | 3352 # These should end with %, but there seems to be a bug with % in |
3348 # variables that are intended to be set to different values in | 3353 # variables that are intended to be set to different values in |
3349 # different targets, like these. | 3354 # different targets, like these. |
3350 'mac_pie': 1, # Most executables can be position-independent. | 3355 'mac_pie': 1, # Most executables can be position-independent. |
3351 'mac_real_dsym': 0, # Fake .dSYMs are fine in most cases. | |
3352 # Strip debugging symbols from the target. | 3356 # Strip debugging symbols from the target. |
3353 'mac_strip': '<(mac_strip_release)', | 3357 'mac_strip': '<(mac_strip_release)', |
| 3358 'conditions': [ |
| 3359 ['asan==1', { |
| 3360 'conditions': [ |
| 3361 ['mac_want_real_dsym=="default"', { |
| 3362 'mac_real_dsym': 1, |
| 3363 }, { |
| 3364 'mac_real_dsym': '<(mac_want_real_dsym)' |
| 3365 }], |
| 3366 ], |
| 3367 }, { |
| 3368 'conditions': [ |
| 3369 ['mac_want_real_dsym=="default"', { |
| 3370 'mac_real_dsym': 0, # Fake .dSYMs are fine in most cases. |
| 3371 }, { |
| 3372 'mac_real_dsym': '<(mac_want_real_dsym)' |
| 3373 }], |
| 3374 ], |
| 3375 }], |
| 3376 ], |
3354 }, | 3377 }, |
3355 'xcode_settings': { | 3378 'xcode_settings': { |
3356 'GCC_DYNAMIC_NO_PIC': 'NO', # No -mdynamic-no-pic | 3379 'GCC_DYNAMIC_NO_PIC': 'NO', # No -mdynamic-no-pic |
3357 # (Equivalent to -fPIC) | 3380 # (Equivalent to -fPIC) |
3358 # MACOSX_DEPLOYMENT_TARGET maps to -mmacosx-version-min | 3381 # MACOSX_DEPLOYMENT_TARGET maps to -mmacosx-version-min |
3359 'MACOSX_DEPLOYMENT_TARGET': '<(mac_deployment_target)', | 3382 'MACOSX_DEPLOYMENT_TARGET': '<(mac_deployment_target)', |
3360 # Keep pch files below xcodebuild/. | 3383 # Keep pch files below xcodebuild/. |
3361 'SHARED_PRECOMPS_DIR': '$(CONFIGURATION_BUILD_DIR)/SharedPrecompiledHe
aders', | 3384 'SHARED_PRECOMPS_DIR': '$(CONFIGURATION_BUILD_DIR)/SharedPrecompiledHe
aders', |
3362 'OTHER_CFLAGS': [ | 3385 'OTHER_CFLAGS': [ |
3363 '-fno-strict-aliasing', # See http://crbug.com/32204 | 3386 '-fno-strict-aliasing', # See http://crbug.com/32204 |
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3906 # settings in target dicts. SYMROOT is a special case, because many other | 3929 # settings in target dicts. SYMROOT is a special case, because many other |
3907 # Xcode variables depend on it, including variables such as | 3930 # Xcode variables depend on it, including variables such as |
3908 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 3931 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
3909 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 3932 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
3910 # files to appear (when present) in the UI as actual files and not red | 3933 # files to appear (when present) in the UI as actual files and not red |
3911 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 3934 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
3912 # and therefore SYMROOT, needs to be set at the project level. | 3935 # and therefore SYMROOT, needs to be set at the project level. |
3913 'SYMROOT': '<(DEPTH)/xcodebuild', | 3936 'SYMROOT': '<(DEPTH)/xcodebuild', |
3914 }, | 3937 }, |
3915 } | 3938 } |
OLD | NEW |