OLD | NEW |
---|---|
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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 { | 5 { |
6 'targets': [ | 6 'targets': [ |
7 { | 7 { |
8 'target_name': 'asan_dynamic_runtime', | 8 'target_name': 'asan_dynamic_runtime', |
9 'type': 'none', | 9 'type': 'none', |
10 'variables': { | 10 'variables': { |
11 # Every target is going to depend on asan_dynamic_runtime, so allow | 11 # Every target is going to depend on asan_dynamic_runtime, so allow |
12 # this one to depend on itself. | 12 # this one to depend on itself. |
13 'prune_self_dependency': 1, | 13 'prune_self_dependency': 1, |
14 # Path is relative to this GYP file. | 14 # Path is relative to this GYP file. |
15 'asan_rtl_mask_path': | 15 'asan_rtl_mask_path': |
16 '../../third_party/llvm-build/Release+Asserts/lib/clang/*/lib/darwi n/libclang_rt.asan_osx_dynamic.dylib', | 16 '../../third_party/llvm-build/Release+Asserts/lib/clang/*/lib/darwi n', |
17 'asan_osx_dynamic': | |
18 '<(asan_rtl_mask_path)/libclang_rt.asan_osx_dynamic.dylib', | |
19 'asan_iossim_dynamic': | |
20 '<(asan_rtl_mask_path)/libclang_rt.asan_iossim_dynamic.dylib', | |
17 }, | 21 }, |
18 'conditions': [ | 22 'conditions': [ |
19 ['OS=="mac"', { | 23 ['OS=="mac"', { |
20 'copies': [ | 24 'copies': [ |
21 { | 25 { |
22 'destination': '<(PRODUCT_DIR)', | 26 'destination': '<(PRODUCT_DIR)', |
23 'files': [ | 27 'files': [ |
24 '<!(/bin/ls <(asan_rtl_mask_path))', | 28 '<!(/bin/ls <(asan_osx_dynamic))', |
Nico
2014/04/05 18:40:18
Out of curiosity, why do you need the call to ls?
Alexander Potapenko
2014/04/08 08:31:10
IIUC 'copies' doesn't support wildcards, does it?
| |
25 ], | 29 ], |
26 }, | 30 }, |
27 ], | 31 ], |
28 }], | 32 }], |
33 # ASan works with iOS simulator only, not bare-metal iOS. | |
34 ['OS=="ios" and target_arch=="ia32"', { | |
35 'toolsets': ['host', 'target'], | |
36 'target_conditions': [ | |
Nico
2014/04/05 18:40:18
nit: I think you can move target_conditions inside
Alexander Potapenko
2014/04/08 08:31:10
Done.
| |
37 ['_toolset=="host"', { | |
38 'copies': [ | |
39 { | |
40 'destination': '<(PRODUCT_DIR)', | |
41 'files': [ | |
42 '<!(/bin/ls <(asan_osx_dynamic))', | |
43 ], | |
44 }, | |
45 ], | |
46 }], | |
47 ['_toolset=="target"', { | |
48 'copies': [ | |
49 { | |
50 'destination': '<(PRODUCT_DIR)', | |
51 'files': [ | |
52 '<!(/bin/ls <(asan_iossim_dynamic))', | |
53 ], | |
54 }, | |
55 ], | |
56 }], | |
57 ], | |
58 }], | |
29 ], | 59 ], |
30 }, | 60 }, |
31 ], | 61 ], |
32 } | 62 } |
OLD | NEW |