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 3403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3414 }, | 3414 }, |
3415 ], | 3415 ], |
3416 'conditions': [ | 3416 'conditions': [ |
3417 ['asan==1', { | 3417 ['asan==1', { |
3418 'variables': { | 3418 'variables': { |
3419 'asan_saves_file': 'asan.saves', | 3419 'asan_saves_file': 'asan.saves', |
3420 }, | 3420 }, |
3421 'xcode_settings': { | 3421 'xcode_settings': { |
3422 'CHROMIUM_STRIP_SAVE_FILE': '<(asan_saves_file)', | 3422 'CHROMIUM_STRIP_SAVE_FILE': '<(asan_saves_file)', |
3423 }, | 3423 }, |
3424 'postbuilds': [ | |
3425 { | |
3426 # For executables built with ASan, copies the runtime lib | |
3427 # (libclang_rt.asan_osx_dynamic.dylib) on which they depend | |
3428 # from the compiler installation path to the build dir and | |
3429 # fixes the dylib's install name in the binary to be | |
3430 # relative to @executable_path. This is needed if the | |
3431 # executables are copied to a different machine (the ASan | |
3432 # runtime library must be copied in this case as well). | |
3433 'variables': { | |
3434 # Define change_mach_o_flags in a variable ending in _path | |
Mark Mentovai
2012/12/19 13:53:38
If you’re using this, fix the comment.
| |
3435 # so that GYP understands it's a path and performs proper | |
3436 # relativization during dict merging. | |
3437 'copy_asan_runtime_dylib_path': | |
3438 'mac/copy_asan_runtime_dylib.sh', | |
3439 'copy_asan_runtime_dylib_options%': [ | |
3440 ], | |
3441 }, | |
3442 'postbuild_name': 'Copy ASan runtime dylib', | |
3443 'action': [ | |
3444 '<(copy_asan_runtime_dylib_path)', | |
3445 '>@(copy_asan_runtime_dylib_options)', | |
3446 ], | |
3447 }, | |
3448 ], | |
3424 }], | 3449 }], |
3425 ], | 3450 ], |
3426 'target_conditions': [ | 3451 'target_conditions': [ |
3427 ['mac_pie==1 and release_valgrind_build==0', { | 3452 ['mac_pie==1 and release_valgrind_build==0', { |
3428 # Turn on position-independence (ASLR) for executables. When | 3453 # Turn on position-independence (ASLR) for executables. When |
3429 # PIE is on for the Chrome executables, the framework will | 3454 # PIE is on for the Chrome executables, the framework will |
3430 # also be subject to ASLR. | 3455 # also be subject to ASLR. |
3431 # Don't do this when building for Valgrind, because Valgrind | 3456 # Don't do this when building for Valgrind, because Valgrind |
3432 # doesn't understand slide. TODO: Make Valgrind on Mac OS X | 3457 # doesn't understand slide. TODO: Make Valgrind on Mac OS X |
3433 # understand slide, and get rid of the Valgrind check. | 3458 # understand slide, and get rid of the Valgrind check. |
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3920 # settings in target dicts. SYMROOT is a special case, because many other | 3945 # settings in target dicts. SYMROOT is a special case, because many other |
3921 # Xcode variables depend on it, including variables such as | 3946 # Xcode variables depend on it, including variables such as |
3922 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 3947 # 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 | 3948 # 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 | 3949 # 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, | 3950 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
3926 # and therefore SYMROOT, needs to be set at the project level. | 3951 # and therefore SYMROOT, needs to be set at the project level. |
3927 'SYMROOT': '<(DEPTH)/xcodebuild', | 3952 'SYMROOT': '<(DEPTH)/xcodebuild', |
3928 }, | 3953 }, |
3929 } | 3954 } |
OLD | NEW |