OLD | NEW |
(Empty) | |
| 1 # Copyright (c) 2012 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 { |
| 6 'targets': [ |
| 7 { |
| 8 'target_name': 'libc++', |
| 9 'type': 'shared_library', |
| 10 'variables': { |
| 11 'prune_self_dependency': 1, |
| 12 }, |
| 13 'dependencies=': [], |
| 14 'sources': [ |
| 15 'trunk/src/algorithm.cpp', |
| 16 'trunk/src/bind.cpp', |
| 17 'trunk/src/chrono.cpp', |
| 18 'trunk/src/condition_variable.cpp', |
| 19 'trunk/src/debug.cpp', |
| 20 'trunk/src/exception.cpp', |
| 21 'trunk/src/future.cpp', |
| 22 'trunk/src/hash.cpp', |
| 23 'trunk/src/ios.cpp', |
| 24 'trunk/src/iostream.cpp', |
| 25 'trunk/src/locale.cpp', |
| 26 'trunk/src/memory.cpp', |
| 27 'trunk/src/mutex.cpp', |
| 28 'trunk/src/new.cpp', |
| 29 'trunk/src/optional.cpp', |
| 30 'trunk/src/random.cpp', |
| 31 'trunk/src/regex.cpp', |
| 32 'trunk/src/shared_mutex.cpp', |
| 33 'trunk/src/stdexcept.cpp', |
| 34 'trunk/src/string.cpp', |
| 35 'trunk/src/strstream.cpp', |
| 36 'trunk/src/system_error.cpp', |
| 37 'trunk/src/thread.cpp', |
| 38 'trunk/src/typeinfo.cpp', |
| 39 'trunk/src/utility.cpp', |
| 40 'trunk/src/valarray.cpp', |
| 41 ], |
| 42 'include_dirs': [ |
| 43 'trunk/include', |
| 44 '../libc++abi/trunk/include', |
| 45 ], |
| 46 'cflags': [ |
| 47 '-g', '-Os', '-fPIC', |
| 48 '-std=c++11', |
| 49 '-fstrict-aliasing', |
| 50 '-Wall', |
| 51 '-Wextra', |
| 52 '-Wshadow', |
| 53 '-Wconversion', |
| 54 '-Wnewline-eof', |
| 55 '-Wpadded', |
| 56 '-Wmissing-prototypes', |
| 57 '-Wstrict-aliasing=2', |
| 58 '-Wstrict-overflow=4', |
| 59 '-nostdinc++', |
| 60 ], |
| 61 'direct_dependent_settings': { |
| 62 'target_conditions': [ |
| 63 ['_type!="none"', { |
| 64 'include_dirs': [ |
| 65 'trunk/include', |
| 66 ], |
| 67 'cflags_cc': [ |
| 68 '-nostdinc++', |
| 69 ], |
| 70 'ldflags': [ |
| 71 '-stdlib=libc++', |
| 72 '-L<(PRODUCT_DIR)/lib/', |
| 73 ], |
| 74 }], |
| 75 ], |
| 76 }, |
| 77 'cflags_cc!': [ |
| 78 '-fno-rtti', |
| 79 ], |
| 80 'cflags!': [ |
| 81 '-fno-exceptions', |
| 82 '-fvisibility=hidden', |
| 83 ], |
| 84 'ldflags': [ |
| 85 '-nodefaultlibs', |
| 86 ], |
| 87 'ldflags!': [ |
| 88 '-pthread', |
| 89 ], |
| 90 'libraries': [ |
| 91 '-lrt', |
| 92 '-lc', |
| 93 ], |
| 94 }, |
| 95 ] |
| 96 } |
OLD | NEW |