OLD | NEW |
| (Empty) |
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. | |
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', | |
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 '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 |