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 1181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1192 '<!@(<(DEPTH)/tools/clang/scripts/plugin_flags.sh)' | 1192 '<!@(<(DEPTH)/tools/clang/scripts/plugin_flags.sh)' |
1193 ], | 1193 ], |
1194 }], | 1194 }], |
1195 | 1195 |
1196 ['enable_web_intents_tag==1', { | 1196 ['enable_web_intents_tag==1', { |
1197 'grit_defines': ['-D', 'enable_web_intents_tag'], | 1197 'grit_defines': ['-D', 'enable_web_intents_tag'], |
1198 }], | 1198 }], |
1199 | 1199 |
1200 ['asan==1', { | 1200 ['asan==1', { |
1201 'clang%': 1, | 1201 'clang%': 1, |
1202 # Do not use Chrome plugins for Clang. The Clang version in | |
1203 # third_party/asan may be different from the default one. | |
1204 # TODO(glider): this isn't true anymore, need to check if we can use the | |
1205 # plugins now. | |
1206 'clang_use_chrome_plugins%': 0, | |
1207 }], | 1202 }], |
1208 ['asan==1 and OS=="mac"', { | 1203 ['asan==1 and OS=="mac"', { |
1209 # See http://crbug.com/145503. | 1204 # See http://crbug.com/145503. |
1210 'component': "static_library", | 1205 'component': "static_library", |
1211 }], | 1206 }], |
1212 ['tsan==1', { | 1207 ['tsan==1', { |
1213 'clang%': 1, | 1208 'clang%': 1, |
1214 }], | 1209 }], |
1215 | 1210 |
1216 # On valgrind bots, override the optimizer settings so we don't inline too | 1211 # On valgrind bots, override the optimizer settings so we don't inline too |
(...skipping 1690 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2907 }], | 2902 }], |
2908 ], | 2903 ], |
2909 'target_conditions': [ | 2904 'target_conditions': [ |
2910 ['_type!="static_library"', { | 2905 ['_type!="static_library"', { |
2911 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, | 2906 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, |
2912 'conditions': [ | 2907 'conditions': [ |
2913 ['asan==1', { | 2908 ['asan==1', { |
2914 'xcode_settings': { | 2909 'xcode_settings': { |
2915 'OTHER_LDFLAGS': [ | 2910 'OTHER_LDFLAGS': [ |
2916 '-faddress-sanitizer', | 2911 '-faddress-sanitizer', |
2917 # The symbols below are referenced in the ASan runtime | |
2918 # library (compiled on OS X 10.6), but may be unavailable | |
2919 # on the prior OS X versions. Because Chromium is | |
2920 # currently targeting 10.5.0, we need to explicitly mark | |
2921 # these symbols as dynamic_lookup. | |
2922 '-Wl,-U,_malloc_default_purgeable_zone', | |
2923 '-Wl,-U,_malloc_zone_memalign', | |
2924 '-Wl,-U,_dispatch_sync_f', | |
2925 '-Wl,-U,_dispatch_async_f', | |
2926 '-Wl,-U,_dispatch_barrier_async_f', | |
2927 '-Wl,-U,_dispatch_group_async_f', | |
2928 '-Wl,-U,_dispatch_after_f', | |
2929 ], | 2912 ], |
2930 }, | 2913 }, |
2931 }], | 2914 }], |
2932 ], | 2915 ], |
2933 }], | 2916 }], |
2934 ['_mac_bundle', { | 2917 ['_mac_bundle', { |
2935 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']}, | 2918 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']}, |
2936 }], | 2919 }], |
2937 ['_type=="executable"', { | 2920 ['_type=="executable"', { |
2938 'postbuilds': [ | 2921 'postbuilds': [ |
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3419 # settings in target dicts. SYMROOT is a special case, because many other | 3402 # settings in target dicts. SYMROOT is a special case, because many other |
3420 # Xcode variables depend on it, including variables such as | 3403 # Xcode variables depend on it, including variables such as |
3421 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 3404 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
3422 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 3405 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
3423 # files to appear (when present) in the UI as actual files and not red | 3406 # files to appear (when present) in the UI as actual files and not red |
3424 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 3407 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
3425 # and therefore SYMROOT, needs to be set at the project level. | 3408 # and therefore SYMROOT, needs to be set at the project level. |
3426 'SYMROOT': '<(DEPTH)/xcodebuild', | 3409 'SYMROOT': '<(DEPTH)/xcodebuild', |
3427 }, | 3410 }, |
3428 } | 3411 } |
OLD | NEW |