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', '-Wextra', '-Wshadow', '-Wconversion', '-Wnewline-eof', '-Wpadd
ed', |
| 51 '-Wmissing-prototypes', '-Wstrict-aliasing=2', '-Wstrict-overflow=4', |
| 52 '-nostdinc++', |
| 53 ], |
| 54 'direct_dependent_settings': { |
| 55 'target_conditions': [ |
| 56 ['_type!="none"', { |
| 57 'include_dirs': [ |
| 58 'trunk/include', |
| 59 ], |
| 60 'cflags_cc': [ |
| 61 '-nostdinc++', |
| 62 ], |
| 63 'ldflags': [ |
| 64 '-stdlib=libc++', |
| 65 '-L<(PRODUCT_DIR)/lib/', |
| 66 ], |
| 67 }], |
| 68 ], |
| 69 }, |
| 70 'cflags_cc!': [ |
| 71 '-fno-rtti', |
| 72 ], |
| 73 'cflags!': [ |
| 74 '-fno-exceptions', |
| 75 '-fvisibility=hidden', |
| 76 ], |
| 77 'ldflags': [ |
| 78 '-nodefaultlibs', |
| 79 ], |
| 80 'libraries': [ |
| 81 '-lrt', |
| 82 '-lc', |
| 83 ], |
| 84 }, |
| 85 ] |
| 86 } |
OLD | NEW |