Mark //testing/perf target testonly.
[chromium-blink-merge.git] / base / base.isolate
blobf67f45fce5ec88331b6125e1efe02c25125b4016
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
3 # found in the LICENSE file.
5   'includes': [
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
8     # exception is the Windows sandbox (?).
9     '../third_party/icu/icu.isolate',
10   ],
11   'conditions': [
12     ['use_custom_libcxx==1', {
13       'variables': {
14         'files': [
15           '<(PRODUCT_DIR)/lib/libc++.so',
16         ],
17       },
18     }],
19     ['use_instrumented_libraries==1', {
20       'variables': {
21         'files': [
22           '<(PRODUCT_DIR)/instrumented_libraries/',
23         ],
24       },
25     }],
26     ['OS=="mac" and asan==1', {
27       'variables': {
28         'files': [
29           '<(PRODUCT_DIR)/libclang_rt.asan_osx_dynamic.dylib',
30         ],
31       },
32     }],
33     ['OS=="win"', {
34       # Required for base/stack_trace_win.cc to symbolize correctly.
35       'variables': {
36         'files': [
37           '../build/win/dbghelp_xp/dbghelp.dll',
38         ],
39       },
40     }],
41     ['OS=="win" and asan==1 and component=="shared_library"', {
42       'variables': {
43         'files': [
44           '../third_party/llvm-build/Release+Asserts/lib/clang/3.7.0/lib/windows/clang_rt.asan_dynamic-i386.dll',
45         ],
46       },
47     }],
48     ['OS=="linux" and (asan==1 or lsan==1 or msan==1 or tsan==1)', {
49       'variables': {
50         'files': [
51           # For llvm-symbolizer.
52           '../third_party/llvm-build/Release+Asserts/lib/libstdc++.so.6',
53         ],
54       },
55     }],
56     ['asan==1 or lsan==1 or msan==1 or tsan==1', {
57       'variables': {
58         'files': [
59           '../tools/valgrind/asan/',
60           '../third_party/llvm-build/Release+Asserts/bin/llvm-symbolizer<(EXECUTABLE_SUFFIX)',
61         ],
62       },
63     }],
64     ['lsan==1', {
65       'variables': {
66         'files': [
67           '../tools/lsan/suppressions.txt',
68         ],
69       },
70     }],
71     # Copy the VS runtime DLLs into the isolate so that they
72     # don't have to be preinstalled on the target machine.
73     ['OS=="win" and component=="shared_library" and CONFIGURATION_NAME=="Debug"', {
74       'variables': {
75         'files': [
76           '<(PRODUCT_DIR)/x64/msvcp120d.dll',
77           '<(PRODUCT_DIR)/x64/msvcr120d.dll',
78         ],
79       },
80     }],
81     ['OS=="win" and component=="shared_library" and CONFIGURATION_NAME=="Release"', {
82       'variables': {
83         'files': [
84           '<(PRODUCT_DIR)/x64/msvcp120.dll',
85           '<(PRODUCT_DIR)/x64/msvcr120.dll',
86         ],
87       },
88     }],
89     ['OS=="win" and component=="shared_library" and (CONFIGURATION_NAME=="Debug" or CONFIGURATION_NAME=="Debug_x64")', {
90       'variables': {
91         'files': [
92           '<(PRODUCT_DIR)/msvcp120d.dll',
93           '<(PRODUCT_DIR)/msvcr120d.dll',
94         ],
95       },
96     }],
97     ['OS=="win" and component=="shared_library" and (CONFIGURATION_NAME=="Release" or CONFIGURATION_NAME=="Release_x64")', {
98       'variables': {
99         'files': [
100           '<(PRODUCT_DIR)/msvcp120.dll',
101           '<(PRODUCT_DIR)/msvcr120.dll',
102         ],
103       },
104     }],
105     # Workaround for https://code.google.com/p/swarming/issues/detail?id=211
106     ['asan==0 or lsan==0 or msan==0 or tsan==0', {
107       'variables': {},
108     }],
109   ],