-
Notifications
You must be signed in to change notification settings - Fork 55
/
common.gypi
62 lines (60 loc) · 1.6 KB
/
common.gypi
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
56
57
58
59
60
61
62
{
'variables': {
'component%': 'static_library',
'visibility%': 'hidden',
'library%': 'static_library',
},
'conditions': [
['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \
or OS=="netbsd" or OS=="android"', {
'target_defaults': {
'cflags': [ '-pthread' ],
'cflags_cc': [ '-fno-rtti', '-std=c++14', '-fexceptions', '-stdlib=libc++', '-DV8_REVERSE_JSARGS' ],
'ldflags': [ '-pthread'],
},
}],
['OS=="linux"', {
'target_defaults': {
'ldflags': ['-lc++']
}
}],
['OS=="mac"', {
'xcode_settings': {
'CLANG_CXX_LANGUAGE_STANDARD': 'c++14',
'CLANG_CXX_LIBRARY': 'libc++',
},
}],
],
'target_conditions': [
['OS=="android" and not "host" in toolsets', {
'target_defaults': {
'cflags!': [
'-pthread', # Not fully supported by Android toolchain. Built-in suport of major functions, no need to link with it.
],
'ldflags!': [
'-llog'
'-pthread', # Not fully supported by Android toolchain. Built-in suport of major functions, no need to link with it.
],
},
}],
],
'target_defaults': {
'configurations': {
'Debug': {
'cflags_cc': [ '-g', '-Werror', '-Wall', '-Wextra', '-Wno-unused-parameter', '-Wshadow' ],
},
'Release': {}
},
'msvs_cygwin_shell': 0,
'msvs_settings': {
'VCCLCompilerTool': {
'WarningLevel': '3',
}
},
'target_conditions': [
['_type=="static_library"', {
'standalone_static_library': 1
}]
]
}
}