OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 'includes': [ | 5 'includes': [ |
6 # While the target 'base' doesn't depend on ../third_party/icu/icu.gyp | 6 # While the target 'base' doesn't depend on ../third_party/icu/icu.gyp |
7 # itself, virtually all targets using it has to include icu. The only | 7 # itself, virtually all targets using it has to include icu. The only |
8 # exception is the Windows sandbox (?). | 8 # exception is the Windows sandbox (?). |
9 '../third_party/icu/icu.isolate', | 9 '../third_party/icu/icu.isolate', |
10 ], | 10 ], |
11 'conditions': [ | 11 'conditions': [ |
12 ['OS=="linux" and asan==1 and chromeos==0', { | 12 ['use_custom_libcxx==1', { |
13 'variables': { | 13 'variables': { |
14 'files': [ | 14 'files': [ |
15 '<(PRODUCT_DIR)/lib/libc++.so', | 15 '<(PRODUCT_DIR)/lib/libc++.so', |
16 ], | 16 ], |
17 }, | 17 }, |
18 }], | 18 }], |
| 19 ['use_instrumented_libraries==1', { |
| 20 'variables': { |
| 21 'files': [ |
| 22 '<(PRODUCT_DIR)/instrumented_libraries/', |
| 23 ], |
| 24 }, |
| 25 }], |
19 ['OS=="mac" and asan==1', { | 26 ['OS=="mac" and asan==1', { |
20 'variables': { | 27 'variables': { |
21 'files': [ | 28 'files': [ |
22 '<(PRODUCT_DIR)/libclang_rt.asan_osx_dynamic.dylib', | 29 '<(PRODUCT_DIR)/libclang_rt.asan_osx_dynamic.dylib', |
23 ], | 30 ], |
24 }, | 31 }, |
25 }], | 32 }], |
26 ['OS=="win" and asan==1 and component=="shared_library"', { | 33 ['OS=="win" and asan==1 and component=="shared_library"', { |
27 'variables': { | 34 'variables': { |
28 'files': [ | 35 'files': [ |
29 '../third_party/llvm-build/Release+Asserts/lib/clang/3.7.0/lib/windows
/clang_rt.asan_dynamic-i386.dll', | 36 '../third_party/llvm-build/Release+Asserts/lib/clang/3.7.0/lib/windows
/clang_rt.asan_dynamic-i386.dll', |
30 ], | 37 ], |
31 }, | 38 }, |
32 }], | 39 }], |
33 ['OS=="linux" and asan==1', { | 40 ['OS=="linux" and (asan==1 or lsan==1 or msan==1 or tsan==1)', { |
34 'variables': { | 41 'variables': { |
35 'files': [ | 42 'files': [ |
36 # For llvm-symbolizer. | 43 # For llvm-symbolizer. |
37 '../third_party/llvm-build/Release+Asserts/lib/libstdc++.so.6', | 44 '../third_party/llvm-build/Release+Asserts/lib/libstdc++.so.6', |
38 ], | 45 ], |
39 }, | 46 }, |
40 }], | 47 }], |
41 ['asan==1', { | 48 ['asan==1 or lsan==1 or msan==1 or tsan==1', { |
42 'variables': { | 49 'variables': { |
43 'files': [ | 50 'files': [ |
44 '../tools/valgrind/asan/', | 51 '../tools/valgrind/asan/', |
45 '../third_party/llvm-build/Release+Asserts/bin/llvm-symbolizer<(EXECUT
ABLE_SUFFIX)', | 52 '../third_party/llvm-build/Release+Asserts/bin/llvm-symbolizer<(EXECUT
ABLE_SUFFIX)', |
46 ], | 53 ], |
47 }, | 54 }, |
48 }], | 55 }], |
49 ['lsan==1', { | 56 ['lsan==1', { |
50 'variables': { | 57 'variables': { |
51 'files': [ | 58 'files': [ |
52 '../tools/lsan/suppressions.txt', | 59 '../tools/lsan/suppressions.txt', |
53 ], | 60 ], |
54 }, | 61 }, |
55 }], | 62 }], |
| 63 # Copy the VS runtime DLLs into the isolate so that they |
| 64 # don't have to be preinstalled on the target machine. |
| 65 ['OS=="win" and component=="shared_library" and CONFIGURATION_NAME=="Debug"'
, { |
| 66 'variables': { |
| 67 'files': [ |
| 68 '<(PRODUCT_DIR)/x64/msvcp120d.dll', |
| 69 '<(PRODUCT_DIR)/x64/msvcr120d.dll', |
| 70 ], |
| 71 }, |
| 72 }], |
| 73 ['OS=="win" and component=="shared_library" and CONFIGURATION_NAME=="Release
"', { |
| 74 'variables': { |
| 75 'files': [ |
| 76 '<(PRODUCT_DIR)/x64/msvcp120.dll', |
| 77 '<(PRODUCT_DIR)/x64/msvcr120.dll', |
| 78 ], |
| 79 }, |
| 80 }], |
56 ['OS=="win" and component=="shared_library" and (CONFIGURATION_NAME=="Debug"
or CONFIGURATION_NAME=="Debug_x64")', { | 81 ['OS=="win" and component=="shared_library" and (CONFIGURATION_NAME=="Debug"
or CONFIGURATION_NAME=="Debug_x64")', { |
57 'variables': { | 82 'variables': { |
58 'files': [ | 83 'files': [ |
59 # Copy the VS runtime DLLs into the isolate so that they | |
60 # don't have to be preinstalled on the target machine. | |
61 '<(PRODUCT_DIR)/msvcp120d.dll', | 84 '<(PRODUCT_DIR)/msvcp120d.dll', |
62 '<(PRODUCT_DIR)/msvcr120d.dll', | 85 '<(PRODUCT_DIR)/msvcr120d.dll', |
63 '<(PRODUCT_DIR)/x64/msvcp120d.dll', | |
64 '<(PRODUCT_DIR)/x64/msvcr120d.dll', | |
65 ], | 86 ], |
66 }, | 87 }, |
67 }], | 88 }], |
68 ['OS=="win" and component=="shared_library" and (CONFIGURATION_NAME=="Releas
e" or CONFIGURATION_NAME=="Release_x64")', { | 89 ['OS=="win" and component=="shared_library" and (CONFIGURATION_NAME=="Releas
e" or CONFIGURATION_NAME=="Release_x64")', { |
69 'variables': { | 90 'variables': { |
70 'files': [ | 91 'files': [ |
71 # Copy the VS runtime DLLs into the isolate so that they | |
72 # don't have to be preinstalled on the target machine. | |
73 '<(PRODUCT_DIR)/msvcp120.dll', | 92 '<(PRODUCT_DIR)/msvcp120.dll', |
74 '<(PRODUCT_DIR)/msvcr120.dll', | 93 '<(PRODUCT_DIR)/msvcr120.dll', |
75 ], | 94 ], |
76 }, | 95 }, |
77 }], | 96 }], |
| 97 # Workaround for https://code.google.com/p/swarming/issues/detail?id=211 |
| 98 ['asan==0 or lsan==0 or msan==0 or tsan==0', { |
| 99 'variables': {}, |
| 100 }], |
78 ], | 101 ], |
79 } | 102 } |
OLD | NEW |