blob: e2d8beaca8a44a8149042f7a6e9d0ecb69d6cb12 [file] [log] [blame]
maruel@chromium.org6bde8112014-01-22 18:05:59 +09001# 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.
4{
maruel@chromium.org6bde8112014-01-22 18:05:59 +09005 'includes': [
maruel@chromium.org4b87b3e2014-02-06 08:33:48 +09006 # 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 (?).
maruel@chromium.org6bde8112014-01-22 18:05:59 +09009 '../third_party/icu/icu.isolate',
earthdok59029672015-03-25 00:05:42 +090010 # Sanitizer-instrumented third-party libraries (if enabled).
11 '../third_party/instrumented_libraries/instrumented_libraries.isolate',
sebmarchand754495e2015-08-15 05:38:21 +090012 # MSVS runtime libraries.
13 '../build/config/win/msvs_dependencies.isolate',
maruel@chromium.org6bde8112014-01-22 18:05:59 +090014 ],
kbr@chromium.org93b32652014-05-29 04:05:35 +090015 'conditions': [
earthdok05f8aa32015-02-05 03:18:04 +090016 ['use_custom_libcxx==1', {
Paweł Hajdan, Jrb47ee132014-09-25 03:01:01 +090017 'variables': {
maruel6f596622014-10-01 22:21:42 +090018 'files': [
Paweł Hajdan, Jrb47ee132014-09-25 03:01:01 +090019 '<(PRODUCT_DIR)/lib/libc++.so',
20 ],
21 },
22 }],
John Abd-El-Malek5b841152014-10-07 04:45:01 +090023 ['OS=="mac" and asan==1', {
24 'variables': {
25 'files': [
26 '<(PRODUCT_DIR)/libclang_rt.asan_osx_dynamic.dylib',
27 ],
28 },
29 }],
Scott Grahamda2934b2015-02-24 06:13:40 +090030 ['OS=="win"', {
31 # Required for base/stack_trace_win.cc to symbolize correctly.
32 'variables': {
33 'files': [
scottmg84458d92015-02-25 09:17:30 +090034 '<(PRODUCT_DIR)/dbghelp.dll',
Scott Grahamda2934b2015-02-24 06:13:40 +090035 ],
36 },
37 }],
thakiscfe3d062015-01-28 22:12:51 +090038 ['OS=="win" and asan==1 and component=="shared_library"', {
Nico Webera3d1f192015-01-25 04:47:21 +090039 'variables': {
40 'files': [
hans64b216b2015-07-16 08:06:57 +090041 # We only need x.y.z/lib/windows/clang_rt.asan_dynamic-i386.dll,
42 # but since the version (x.y.z) changes, just grab the whole dir.
43 '../third_party/llvm-build/Release+Asserts/lib/clang/',
Nico Webera3d1f192015-01-25 04:47:21 +090044 ],
45 },
46 }],
earthdok05f8aa32015-02-05 03:18:04 +090047 ['OS=="linux" and (asan==1 or lsan==1 or msan==1 or tsan==1)', {
John Abd-El-Malek026fa8b2014-10-16 03:28:37 +090048 'variables': {
49 'files': [
Nico Webera3d1f192015-01-25 04:47:21 +090050 # For llvm-symbolizer.
John Abd-El-Malek026fa8b2014-10-16 03:28:37 +090051 '../third_party/llvm-build/Release+Asserts/lib/libstdc++.so.6',
52 ],
53 },
54 }],
earthdok05f8aa32015-02-05 03:18:04 +090055 ['asan==1 or lsan==1 or msan==1 or tsan==1', {
John Abd-El-Malek54c7e472014-10-09 14:10:53 +090056 'variables': {
57 'files': [
58 '../tools/valgrind/asan/',
Nico Weber36fff902015-01-24 08:40:06 +090059 '../third_party/llvm-build/Release+Asserts/bin/llvm-symbolizer<(EXECUTABLE_SUFFIX)',
John Abd-El-Malek84795742014-10-16 02:52:31 +090060 ],
61 },
62 }],
earthdokcf106f32015-02-06 03:33:58 +090063 # Workaround for https://code.google.com/p/swarming/issues/detail?id=211
64 ['asan==0 or lsan==0 or msan==0 or tsan==0', {
65 'variables': {},
66 }],
kbr@chromium.org93b32652014-05-29 04:05:35 +090067 ],
maruel@chromium.org6bde8112014-01-22 18:05:59 +090068}