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 'include_dirs': [ |
| 56 'include', |
| 57 ], |
| 58 'cflags_cc': [ |
| 59 '-nostdinc++', |
| 60 ], |
| 61 'ldflags': [ |
| 62 '-stdlib=libc++', |
| 63 '-L<(PRODUCT_DIR)/lib/', |
| 64 ], |
| 65 }, |
| 66 'cflags_cc!': [ |
| 67 '-fno-rtti', |
| 68 ], |
| 69 'cflags!': [ |
| 70 '-fno-exceptions', |
| 71 '-fvisibility=hidden', |
| 72 ], |
| 73 'ldflags': [ |
| 74 '-nodefaultlibs', |
| 75 ], |
| 76 'libraries': [ |
| 77 '-lrt', |
| 78 '-lc', |
| 79 ], |
| 80 }, |
| 81 ] |
| 82 } |
OLD | NEW |