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