Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 # Copyright 2015 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 | |
| 5 config("config") { | |
|
earthdok
2015/05/26 16:18:46
If you want to have a common config then please mo
Sam McNally
2015/05/27 00:12:09
Done.
| |
| 6 include_dirs = [ | |
| 7 "trunk/include", | |
|
earthdok
2015/05/26 16:18:46
What is this path relative to? I.e., when libc++/B
Sam McNally
2015/05/27 00:12:09
Relative to the BUILD.gn containing the config. Wh
| |
| 8 "../libc++/trunk/include", | |
| 9 ] | |
| 10 cflags = [ | |
| 11 "-fstrict-aliasing", | |
| 12 "-nostdinc++", | |
| 13 "-std=c++11", | |
| 14 ] | |
| 15 ldflags = [ "-nodefaultlibs" ] | |
| 16 | |
| 17 # TODO(GYP): Remove "-pthread" from ldflags. It somehow causes a warning from | |
| 18 # clang about an unused compilation option. | |
| 19 # TODO(earthdok): find out what's causing the warning. | |
|
earthdok
2015/05/26 16:18:46
I'm resolving this TODO in https://codereview.chro
Sam McNally
2015/05/27 00:12:09
Done.
| |
| 20 libs = [ | |
| 21 "c", | |
| 22 "gcc_s", | |
| 23 "pthread", | |
| 24 "rt", | |
| 25 ] | |
| 26 } | |
| 27 | |
| 28 static_library("libc++abi") { | |
| 29 sources = [ | |
| 30 "trunk/src/abort_message.cpp", | |
| 31 "trunk/src/cxa_aux_runtime.cpp", | |
| 32 "trunk/src/cxa_default_handlers.cpp", | |
| 33 "trunk/src/cxa_demangle.cpp", | |
| 34 "trunk/src/cxa_exception.cpp", | |
| 35 "trunk/src/cxa_exception_storage.cpp", | |
| 36 "trunk/src/cxa_guard.cpp", | |
| 37 "trunk/src/cxa_handlers.cpp", | |
| 38 "trunk/src/cxa_new_delete.cpp", | |
| 39 "trunk/src/cxa_personality.cpp", | |
| 40 "trunk/src/cxa_unexpected.cpp", | |
| 41 "trunk/src/cxa_vector.cpp", | |
| 42 "trunk/src/cxa_virtual.cpp", | |
| 43 "trunk/src/exception.cpp", | |
| 44 "trunk/src/private_typeinfo.cpp", | |
| 45 "trunk/src/stdexcept.cpp", | |
| 46 "trunk/src/typeinfo.cpp", | |
| 47 ] | |
| 48 configs -= [ | |
| 49 "//build/config/compiler:chromium_code", | |
| 50 "//build/config/compiler:no_rtti", | |
| 51 "//build/config/gcc:no_exceptions", | |
| 52 "//build/config/gcc:symbol_visibility_hidden", | |
| 53 ] | |
| 54 configs += [ | |
| 55 ":config", | |
| 56 "//build/config/compiler:no_chromium_code", | |
| 57 "//build/config/compiler:rtti", | |
| 58 ] | |
| 59 } | |
| OLD | NEW |