| 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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 | 252 |
| 253 # Notifications are compiled in by default. Set to 0 to disable. | 253 # Notifications are compiled in by default. Set to 0 to disable. |
| 254 'notifications%' : 1, | 254 'notifications%' : 1, |
| 255 | 255 |
| 256 # If this is set, the clang plugins used on the buildbot will be used. | 256 # If this is set, the clang plugins used on the buildbot will be used. |
| 257 # Run tools/clang/scripts/update.sh to make sure they are compiled. | 257 # Run tools/clang/scripts/update.sh to make sure they are compiled. |
| 258 # This causes 'clang_chrome_plugins_flags' to be set. | 258 # This causes 'clang_chrome_plugins_flags' to be set. |
| 259 # Has no effect if 'clang' is not set as well. | 259 # Has no effect if 'clang' is not set as well. |
| 260 'clang_use_chrome_plugins%': 1, | 260 'clang_use_chrome_plugins%': 1, |
| 261 | 261 |
| 262 # Enable building with ASAN (Clang's -faddress-sanitizer option). | 262 # Enable building with ASAN (Clang's -fsanitize=address option). |
| 263 # -faddress-sanitizer only works with clang, but asan=1 implies clang=1 | 263 # -fsanitize=address only works with clang, but asan=1 implies clang=1 |
| 264 # See https://sites.google.com/a/chromium.org/dev/developers/testing/addre
sssanitizer | 264 # See https://sites.google.com/a/chromium.org/dev/developers/testing/addre
sssanitizer |
| 265 'asan%': 0, | 265 'asan%': 0, |
| 266 | 266 |
| 267 # Enable building with TSAN (Clang's -fsanitize=thread option). | 267 # Enable building with TSAN (Clang's -fsanitize=thread option). |
| 268 # -fsanitize=thread only works with clang, but tsan=1 implies clang=1 | 268 # -fsanitize=thread only works with clang, but tsan=1 implies clang=1 |
| 269 # See http://clang.llvm.org/docs/ThreadSanitizer.html | 269 # See http://clang.llvm.org/docs/ThreadSanitizer.html |
| 270 'tsan%': 0, | 270 'tsan%': 0, |
| 271 'tsan_blacklist%': '<(PRODUCT_DIR)/../../tools/valgrind/tsan_v2/ignores.tx
t', | 271 'tsan_blacklist%': '<(PRODUCT_DIR)/../../tools/valgrind/tsan_v2/ignores.tx
t', |
| 272 | 272 |
| 273 # Use a modified version of Clang to intercept allocated types and sizes | 273 # Use a modified version of Clang to intercept allocated types and sizes |
| (...skipping 2886 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3160 # Settings for building host targets using the system toolchain. | 3160 # Settings for building host targets using the system toolchain. |
| 3161 ['_toolset=="host"', { | 3161 ['_toolset=="host"', { |
| 3162 'cflags!': [ | 3162 'cflags!': [ |
| 3163 # Due to issues in Clang build system, using ASan on 32-bit | 3163 # Due to issues in Clang build system, using ASan on 32-bit |
| 3164 # binaries on x86_64 host is problematic. | 3164 # binaries on x86_64 host is problematic. |
| 3165 # TODO(eugenis): re-enable. | 3165 # TODO(eugenis): re-enable. |
| 3166 '-fsanitize=address', | 3166 '-fsanitize=address', |
| 3167 '-w', # http://crbug.com/162783 | 3167 '-w', # http://crbug.com/162783 |
| 3168 ], | 3168 ], |
| 3169 'ldflags!': [ | 3169 'ldflags!': [ |
| 3170 '-faddress-sanitizer', | 3170 '-fsanitize=address', |
| 3171 '-Wl,-z,noexecstack', | 3171 '-Wl,-z,noexecstack', |
| 3172 '-Wl,--gc-sections', | 3172 '-Wl,--gc-sections', |
| 3173 '-Wl,-O1', | 3173 '-Wl,-O1', |
| 3174 '-Wl,--as-needed', | 3174 '-Wl,--as-needed', |
| 3175 ], | 3175 ], |
| 3176 'sources/': [ | 3176 'sources/': [ |
| 3177 ['exclude', '_android(_unittest)?\\.cc$'], | 3177 ['exclude', '_android(_unittest)?\\.cc$'], |
| 3178 ['exclude', '(^|/)android/'] | 3178 ['exclude', '(^|/)android/'] |
| 3179 ], | 3179 ], |
| 3180 }], | 3180 }], |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3294 ], | 3294 ], |
| 3295 }], | 3295 }], |
| 3296 ], | 3296 ], |
| 3297 'target_conditions': [ | 3297 'target_conditions': [ |
| 3298 ['_type!="static_library"', { | 3298 ['_type!="static_library"', { |
| 3299 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, | 3299 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, |
| 3300 'conditions': [ | 3300 'conditions': [ |
| 3301 ['asan==1', { | 3301 ['asan==1', { |
| 3302 'xcode_settings': { | 3302 'xcode_settings': { |
| 3303 'OTHER_LDFLAGS': [ | 3303 'OTHER_LDFLAGS': [ |
| 3304 '-faddress-sanitizer', | 3304 '-fsanitize=address', |
| 3305 ], | 3305 ], |
| 3306 }, | 3306 }, |
| 3307 }], | 3307 }], |
| 3308 ], | 3308 ], |
| 3309 }], | 3309 }], |
| 3310 ['_mac_bundle', { | 3310 ['_mac_bundle', { |
| 3311 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']}, | 3311 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']}, |
| 3312 }], | 3312 }], |
| 3313 ], # target_conditions | 3313 ], # target_conditions |
| 3314 }, # target_defaults | 3314 }, # target_defaults |
| (...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3878 # settings in target dicts. SYMROOT is a special case, because many other | 3878 # settings in target dicts. SYMROOT is a special case, because many other |
| 3879 # Xcode variables depend on it, including variables such as | 3879 # Xcode variables depend on it, including variables such as |
| 3880 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 3880 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
| 3881 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 3881 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 3882 # files to appear (when present) in the UI as actual files and not red | 3882 # files to appear (when present) in the UI as actual files and not red |
| 3883 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 3883 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 3884 # and therefore SYMROOT, needs to be set at the project level. | 3884 # and therefore SYMROOT, needs to be set at the project level. |
| 3885 'SYMROOT': '<(DEPTH)/xcodebuild', | 3885 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 3886 }, | 3886 }, |
| 3887 } | 3887 } |
| OLD | NEW |