forked from adblockplus/libadblockplus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommon.gypi
More file actions
55 lines (53 loc) · 1.56 KB
/
Copy pathcommon.gypi
File metadata and controls
55 lines (53 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{
'variables': {
'visibility%': 'hidden',
'library%': 'static_library',
'component%': '',
'want_separate_host_toolset': 0,
'v8_optimized_debug': 0,
'v8_enable_i18n_support': 0,
},
'conditions': [
['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \
or OS=="netbsd" or OS=="android"', {
'target_defaults': {
# V8 headers cause a build error on recent gcc.
# Adding -fpermissive to solve this.
# See https://issues.adblockplus.org/ticket/4950
# We might be able to do without after upgrading V8.
'cflags': [ '-Wall', '-W', '-Wno-unused-parameter',
'-Wnon-virtual-dtor', '-pthread', '-fno-rtti',
'-pedantic', '-std=c++0x', '-fexceptions', '-fpermissive' ],
'cflags!': [ '-Werror', ],
'ldflags': [ '-pthread', ],
},
}],
['OS=="mac"', {
'xcode_settings': {
'CLANG_CXX_LANGUAGE_STANDARD': 'c++11',
'CLANG_CXX_LIBRARY': 'libc++',
'OTHER_CPLUSPLUSFLAGS' : ['-std=c++11', '-stdlib=libc++'],
},
}],
['OS=="android"', {
'target_defaults': {
'cflags!': [
'-pthread', # Not supported by Android toolchain.
],
'ldflags!': [
'-pthread', # Not supported by Android toolchain.
],
},
}],
],
'target_defaults': {
'msvs_cygwin_shell': 0,
'target_conditions': [[
'OS=="mac" and _type=="executable"', {
'xcode_settings': {
'OTHER_LDFLAGS': ['-stdlib=libc++'],
},
}
]],
}
}