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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 # is useful to integrate a third party phishing/malware detection to | 245 # is useful to integrate a third party phishing/malware detection to |
246 # existing safe browsing logic. | 246 # existing safe browsing logic. |
247 'safe_browsing%': 1, | 247 'safe_browsing%': 1, |
248 | 248 |
249 # Speech input is compiled in by default. Set to 0 to disable. | 249 # Speech input is compiled in by default. Set to 0 to disable. |
250 'input_speech%': 1, | 250 'input_speech%': 1, |
251 | 251 |
252 # Notifications are compiled in by default. Set to 0 to disable. | 252 # Notifications are compiled in by default. Set to 0 to disable. |
253 'notifications%' : 1, | 253 'notifications%' : 1, |
254 | 254 |
| 255 # Use dsymutil to generate real .dSYM files on Mac. The default is 0 for |
| 256 # regular builds and 1 for ASan builds. |
| 257 'mac_want_real_dsym%': 'default', |
| 258 |
255 # If this is set, the clang plugins used on the buildbot will be used. | 259 # If this is set, the clang plugins used on the buildbot will be used. |
256 # Run tools/clang/scripts/update.sh to make sure they are compiled. | 260 # Run tools/clang/scripts/update.sh to make sure they are compiled. |
257 # This causes 'clang_chrome_plugins_flags' to be set. | 261 # This causes 'clang_chrome_plugins_flags' to be set. |
258 # Has no effect if 'clang' is not set as well. | 262 # Has no effect if 'clang' is not set as well. |
259 'clang_use_chrome_plugins%': 1, | 263 'clang_use_chrome_plugins%': 1, |
260 | 264 |
261 # Enable building with ASAN (Clang's -fsanitize=address option). | 265 # Enable building with ASAN (Clang's -fsanitize=address option). |
262 # -fsanitize=address only works with clang, but asan=1 implies clang=1 | 266 # -fsanitize=address only works with clang, but asan=1 implies clang=1 |
263 # See https://sites.google.com/a/chromium.org/dev/developers/testing/addre
sssanitizer | 267 # See https://sites.google.com/a/chromium.org/dev/developers/testing/addre
sssanitizer |
264 'asan%': 0, | 268 'asan%': 0, |
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
670 'use_third_party_translations%': '<(use_third_party_translations)', | 674 'use_third_party_translations%': '<(use_third_party_translations)', |
671 'remoting%': '<(remoting)', | 675 'remoting%': '<(remoting)', |
672 'enable_one_click_signin%': '<(enable_one_click_signin)', | 676 'enable_one_click_signin%': '<(enable_one_click_signin)', |
673 'enable_webrtc%': '<(enable_webrtc)', | 677 'enable_webrtc%': '<(enable_webrtc)', |
674 'chromium_win_pch%': '<(chromium_win_pch)', | 678 'chromium_win_pch%': '<(chromium_win_pch)', |
675 'configuration_policy%': '<(configuration_policy)', | 679 'configuration_policy%': '<(configuration_policy)', |
676 'safe_browsing%': '<(safe_browsing)', | 680 'safe_browsing%': '<(safe_browsing)', |
677 'input_speech%': '<(input_speech)', | 681 'input_speech%': '<(input_speech)', |
678 'notifications%': '<(notifications)', | 682 'notifications%': '<(notifications)', |
679 'clang_use_chrome_plugins%': '<(clang_use_chrome_plugins)', | 683 'clang_use_chrome_plugins%': '<(clang_use_chrome_plugins)', |
| 684 'mac_want_real_dsym%': '<(mac_want_real_dsym)', |
680 'asan%': '<(asan)', | 685 'asan%': '<(asan)', |
681 'tsan%': '<(tsan)', | 686 'tsan%': '<(tsan)', |
682 'tsan_blacklist%': '<(tsan_blacklist)', | 687 'tsan_blacklist%': '<(tsan_blacklist)', |
683 'clang_type_profiler%': '<(clang_type_profiler)', | 688 'clang_type_profiler%': '<(clang_type_profiler)', |
684 'order_profiling%': '<(order_profiling)', | 689 'order_profiling%': '<(order_profiling)', |
685 'order_text_section%': '<(order_text_section)', | 690 'order_text_section%': '<(order_text_section)', |
686 'enable_extensions%': '<(enable_extensions)', | 691 'enable_extensions%': '<(enable_extensions)', |
687 'enable_web_intents%': '<(enable_web_intents)', | 692 'enable_web_intents%': '<(enable_web_intents)', |
688 'enable_web_intents_tag%': '<(enable_web_intents_tag)', | 693 'enable_web_intents_tag%': '<(enable_web_intents_tag)', |
689 'enable_plugin_installation%': '<(enable_plugin_installation)', | 694 'enable_plugin_installation%': '<(enable_plugin_installation)', |
(...skipping 2665 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3355 ], # target_conditions | 3360 ], # target_conditions |
3356 }, # target_defaults | 3361 }, # target_defaults |
3357 }], # OS=="mac" or OS=="ios" | 3362 }], # OS=="mac" or OS=="ios" |
3358 ['OS=="mac"', { | 3363 ['OS=="mac"', { |
3359 'target_defaults': { | 3364 'target_defaults': { |
3360 'variables': { | 3365 'variables': { |
3361 # These should end with %, but there seems to be a bug with % in | 3366 # These should end with %, but there seems to be a bug with % in |
3362 # variables that are intended to be set to different values in | 3367 # variables that are intended to be set to different values in |
3363 # different targets, like these. | 3368 # different targets, like these. |
3364 'mac_pie': 1, # Most executables can be position-independent. | 3369 'mac_pie': 1, # Most executables can be position-independent. |
3365 'mac_real_dsym': 0, # Fake .dSYMs are fine in most cases. | |
3366 # Strip debugging symbols from the target. | 3370 # Strip debugging symbols from the target. |
3367 'mac_strip': '<(mac_strip_release)', | 3371 'mac_strip': '<(mac_strip_release)', |
| 3372 'conditions': [ |
| 3373 ['asan==1', { |
| 3374 'conditions': [ |
| 3375 ['mac_want_real_dsym=="default"', { |
| 3376 'mac_real_dsym': 1, |
| 3377 }, { |
| 3378 'mac_real_dsym': '<(mac_want_real_dsym)' |
| 3379 }], |
| 3380 ], |
| 3381 }, { |
| 3382 'conditions': [ |
| 3383 ['mac_want_real_dsym=="default"', { |
| 3384 'mac_real_dsym': 0, # Fake .dSYMs are fine in most cases. |
| 3385 }, { |
| 3386 'mac_real_dsym': '<(mac_want_real_dsym)' |
| 3387 }], |
| 3388 ], |
| 3389 }], |
| 3390 ], |
3368 }, | 3391 }, |
3369 'xcode_settings': { | 3392 'xcode_settings': { |
3370 'GCC_DYNAMIC_NO_PIC': 'NO', # No -mdynamic-no-pic | 3393 'GCC_DYNAMIC_NO_PIC': 'NO', # No -mdynamic-no-pic |
3371 # (Equivalent to -fPIC) | 3394 # (Equivalent to -fPIC) |
3372 # MACOSX_DEPLOYMENT_TARGET maps to -mmacosx-version-min | 3395 # MACOSX_DEPLOYMENT_TARGET maps to -mmacosx-version-min |
3373 'MACOSX_DEPLOYMENT_TARGET': '<(mac_deployment_target)', | 3396 'MACOSX_DEPLOYMENT_TARGET': '<(mac_deployment_target)', |
3374 # Keep pch files below xcodebuild/. | 3397 # Keep pch files below xcodebuild/. |
3375 'SHARED_PRECOMPS_DIR': '$(CONFIGURATION_BUILD_DIR)/SharedPrecompiledHe
aders', | 3398 'SHARED_PRECOMPS_DIR': '$(CONFIGURATION_BUILD_DIR)/SharedPrecompiledHe
aders', |
3376 'OTHER_CFLAGS': [ | 3399 'OTHER_CFLAGS': [ |
3377 '-fno-strict-aliasing', # See http://crbug.com/32204 | 3400 '-fno-strict-aliasing', # See http://crbug.com/32204 |
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3920 # settings in target dicts. SYMROOT is a special case, because many other | 3943 # settings in target dicts. SYMROOT is a special case, because many other |
3921 # Xcode variables depend on it, including variables such as | 3944 # Xcode variables depend on it, including variables such as |
3922 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 3945 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
3923 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 3946 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
3924 # files to appear (when present) in the UI as actual files and not red | 3947 # files to appear (when present) in the UI as actual files and not red |
3925 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 3948 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
3926 # and therefore SYMROOT, needs to be set at the project level. | 3949 # and therefore SYMROOT, needs to be set at the project level. |
3927 'SYMROOT': '<(DEPTH)/xcodebuild', | 3950 'SYMROOT': '<(DEPTH)/xcodebuild', |
3928 }, | 3951 }, |
3929 } | 3952 } |
OLD | NEW |