1 # Copyright 2013 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.
8 'target_name': 'libcxx_proxy',
13 # Do not add dependency on libc++.so to dependents of this target. We
14 # don't want to pass libc++.so on the command line to the linker, as that
15 # would cause it to be linked into C executables which don't need it.
16 # Instead, we supply -stdlib=libc++ and let the clang driver decide.
17 'dependencies_traverse': 0,
19 # Don't add this target to the dependencies of targets with type=none.
22 'all_dependent_settings': {
23 'target_conditions': [
27 '../libc++abi/trunk/include',
34 # Normally the generator takes care of RPATH. Our case is special
35 # because the generator is unaware of the libc++.so dependency.
36 # Note that setting RPATH here is a potential security issue. See:
37 # https://code.google.com/p/gyp/issues/detail?id=315
38 '-Wl,-R,\$$ORIGIN/lib/',
41 '<(PRODUCT_DIR)/lib/',
48 'target_name': 'libc++',
49 'type': 'shared_library',
51 # libc++abi is linked statically into libc++.so. This allows us to get
52 # both libc++ and libc++abi by passing '-stdlib=libc++'. If libc++abi
53 # was a separate DSO, we'd have to link against it explicitly.
54 '../libc++abi/libc++abi.gyp:libc++abi',
57 'trunk/src/algorithm.cpp',
59 'trunk/src/chrono.cpp',
60 'trunk/src/condition_variable.cpp',
61 'trunk/src/debug.cpp',
62 'trunk/src/exception.cpp',
63 'trunk/src/future.cpp',
66 'trunk/src/iostream.cpp',
67 'trunk/src/locale.cpp',
68 'trunk/src/memory.cpp',
69 'trunk/src/mutex.cpp',
71 'trunk/src/optional.cpp',
72 'trunk/src/random.cpp',
73 'trunk/src/regex.cpp',
74 'trunk/src/shared_mutex.cpp',
75 'trunk/src/stdexcept.cpp',
76 'trunk/src/string.cpp',
77 'trunk/src/strstream.cpp',
78 'trunk/src/system_error.cpp',
79 'trunk/src/thread.cpp',
80 'trunk/src/typeinfo.cpp',
81 'trunk/src/utility.cpp',
82 'trunk/src/valarray.cpp',
86 '../libc++abi/trunk/include',
98 '-Wmissing-prototypes',
99 '-Wstrict-aliasing=2',
100 '-Wstrict-overflow=4',
108 '-fvisibility=hidden',
114 # This somehow causes a warning from clang about an unused compilation
115 # option. Use '-lpthread' instead.
116 # TODO(earthdok): find out what's causing the warning.