Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
|
kjellander_chromium
2014/06/25 12:27:12
I think you want to make a .gypi instead of .gyp,
kjellander_chromium
2014/06/25 12:27:12
Nit: 2014 + remove the (c)
https://code.google.co
Alexander Potapenko
2014/06/25 12:46:33
Doesn't seem to work that way (at least easily), G
Alexander Potapenko
2014/06/25 12:46:33
Done.
kjellander_chromium
2014/06/25 14:17:08
OK, just make sure someone with more GYP expertise
| |
| 2 # Use of this source code is governed by a BSD-style license that can be | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 { | |
| 6 'targets': [ | |
| 7 { | |
| 8 'target_name': 'sanitizer_options', | |
| 9 'type': 'static_library', | |
| 10 'toolsets': ['host', 'target'], | |
| 11 'variables': { | |
| 12 # Every target is going to depend on sanitizer_options, so allow | |
| 13 # this one to depend on itself. | |
| 14 'prune_self_dependency': 1, | |
| 15 # Do not let 'none' targets depend on this one, they don't need to. | |
| 16 'link_dependency': 1, | |
| 17 }, | |
| 18 'sources': [ | |
| 19 'sanitizer_options.cc', | |
| 20 ], | |
| 21 'include_dirs': [ | |
| 22 '../..', | |
| 23 ], | |
| 24 # Some targets may want to opt-out from ASan, TSan and MSan and link | |
| 25 # without the corresponding runtime libraries. We drop the libc++ | |
| 26 # dependency and omit the compiler flags to avoid bringing instrumented | |
| 27 # code to those targets. | |
| 28 'conditions': [ | |
| 29 ['use_custom_libcxx==1', { | |
| 30 'dependencies!': [ | |
| 31 '../../third_party/libc++/libc++.gyp:libcxx_proxy', | |
| 32 ], | |
| 33 }], | |
| 34 ['tsan==1', { | |
| 35 'sources': [ | |
| 36 'tsan_suppressions.cc', | |
| 37 ], | |
| 38 }], | |
| 39 ], | |
| 40 'cflags/': [ | |
| 41 ['exclude', '-fsanitize='], | |
| 42 ['exclude', '-fsanitize-'], | |
| 43 ], | |
| 44 'direct_dependent_settings': { | |
| 45 'ldflags': [ | |
| 46 '-Wl,-u_sanitizer_options_link_helper', | |
| 47 ], | |
| 48 }, | |
| 49 }, | |
| 50 ], | |
| 51 } | |
| 52 | |
| OLD | NEW |