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 'src/algorithm.cpp', |
| 16 'src/bind.cpp', |
| 17 'src/chrono.cpp', |
| 18 'src/condition_variable.cpp', |
| 19 'src/debug.cpp', |
| 20 'src/exception.cpp', |
| 21 'src/future.cpp', |
| 22 'src/hash.cpp', |
| 23 'src/ios.cpp', |
| 24 'src/iostream.cpp', |
| 25 'src/locale.cpp', |
| 26 'src/memory.cpp', |
| 27 'src/mutex.cpp', |
| 28 'src/new.cpp', |
| 29 'src/optional.cpp', |
| 30 'src/random.cpp', |
| 31 'src/regex.cpp', |
| 32 'src/shared_mutex.cpp', |
| 33 'src/stdexcept.cpp', |
| 34 'src/string.cpp', |
| 35 'src/strstream.cpp', |
| 36 'src/system_error.cpp', |
| 37 'src/thread.cpp', |
| 38 'src/typeinfo.cpp', |
| 39 'src/utility.cpp', |
| 40 'src/valarray.cpp', |
| 41 ], |
| 42 'include_dirs': [ |
| 43 'include', |
| 44 '../libc++abi/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 '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 'ldflags!': [ |
| 81 '-pthread', |
| 82 ], |
| 83 'libraries': [ |
| 84 '-lrt', |
| 85 '-lc', |
| 86 ], |
| 87 }, |
| 88 ] |
| 89 } |
OLD | NEW |