Blink roll 173193:173208
[chromium-blink-merge.git] / third_party / libc++abi / libc++abi.gyp
blob3d97735abce695f0beaa1811d70513373d75cfae
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.
6   'targets': [
7     {
8       'target_name': 'libc++abi',
9       'type': 'shared_library',
10       'variables': {
11         'prune_self_dependency': 1,
12         # Don't add this target to the dependencies of targets with type=none.
13         'link_dependency': 1,
14       },
15       'dependencies=': [],
16       'sources': [
17         'trunk/src/abort_message.cpp',
18         'trunk/src/cxa_aux_runtime.cpp',
19         'trunk/src/cxa_default_handlers.cpp',
20         'trunk/src/cxa_demangle.cpp',
21         'trunk/src/cxa_exception.cpp',
22         'trunk/src/cxa_exception_storage.cpp',
23         'trunk/src/cxa_guard.cpp',
24         'trunk/src/cxa_handlers.cpp',
25         'trunk/src/cxa_new_delete.cpp',
26         'trunk/src/cxa_personality.cpp',
27         'trunk/src/cxa_unexpected.cpp',
28         'trunk/src/cxa_vector.cpp',
29         'trunk/src/cxa_virtual.cpp',
30         'trunk/src/exception.cpp',
31         'trunk/src/private_typeinfo.cpp',
32         'trunk/src/stdexcept.cpp',
33         'trunk/src/typeinfo.cpp',
34       ],
35       'include_dirs': [
36         'trunk/include',
37         '../libc++/trunk/include'
38       ],
39       'cflags': [
40         '-g', '-O3', '-fPIC',
41         '-std=c++11',
42         '-fstrict-aliasing',
43         '-Wsign-conversion',
44         '-Wshadow',
45         '-Wconversion',
46         '-Wunused-variable',
47         '-Wmissing-field-initializers',
48         '-Wchar-subscripts',
49         '-Wmismatched-tags',
50         '-Wmissing-braces',
51         '-Wshorten-64-to-32',
52         '-Wsign-compare',
53         '-Wstrict-aliasing=2',
54         '-Wstrict-overflow=4',
55         '-Wunused-parameter',
56         '-Wnewline-eof',
57         '-nostdinc++',
58       ],
59       'direct_dependent_settings': {
60         'target_conditions': [
61           ['_type!="none"', {
62             'include_dirs': [
63               'trunk/include',
64             ],
65             'cflags_cc': [
66               '-nostdinc++',
67             ],
68             'ldflags': [
69               '-L<(PRODUCT_DIR)/lib/',
70             ],
71           }],
72         ],
73       },
74       'cflags_cc!': [
75         '-fno-rtti',
76       ],
77       'cflags!': [
78         '-fno-exceptions',
79         '-fvisibility=hidden',
80       ],
81       'ldflags': [
82         '-nodefaultlibs',
83       ],
84       'ldflags!': [
85         '-pthread',
86       ],
87       'libraries': [
88         '-lrt',
89         '-lgcc_s',
90         '-lpthread',
91         '-lc',
92       ]
93     },
94   ]