-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathcommon.gypi
99 lines (99 loc) · 3.09 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
{
'includes': [
'node/common.gypi',
],
'variables': {
'component': 'static_library',
'icu_gyp_path': 'node/tools/icu/icu-generic.gyp',
},
'target_defaults': {
'includes': [
'deps/filename_rules.gypi',
],
'include_dirs': [
'node/deps/v8/include',
],
'target_conditions': [
['_target_name=="libnode"', {
'defines': [
'DISABLE_SINGLE_EXECUTABLE_APPLICATION',
],
}],
['_target_name=="libnode" and OS=="win"', {
# Force loading all objects of node, otherwise some built-in modules
# won't load.
'sources': [
'deps/node.def',
],
'defines': [
# We want to export Node's symbols but do not wish to change its
# vc runtime settings.
'NODE_SHARED_MODE',
# ICU is built as static library and this has to be defined for its
# users on Windows.
'U_STATIC_IMPLEMENTATION=1',
],
}],
['_target_name in ["v8_base_without_compiler", "v8_initializers"] and OS=="win"', {
# Required for avoiding LINK error:
# fatal error LNK1248: image size exceeds maximum allowable size
'msvs_shard': 4,
}],
['_target_name in ["genrb", "genccode"] or _target_name.startswith("libnode") or _target_name.startswith("icu")', {
# Somehow Node's gyp files are not adding the include dirs.
'include_dirs': [
'node/deps/icu-small/source/common',
'node/deps/icu-small/source/i18n',
'node/deps/icu-small/source/tools/toolutil',
],
}],
['_target_name in ["libuv", "http_parser", "openssl", "openssl-cli", "cares", "libnode", "nghttp2", "zlib", "mksnapshot", "genrb", "genccode", "simdutf"] or _target_name.startswith("v8") or _target_name.startswith("icu") or _target_name.startswith("node") or _target_name.startswith("torque")', {
# Suppress all the warnings in Node.
'msvs_settings': {
'VCCLCompilerTool': {
'WarningLevel': 0,
},
},
'msvs_disabled_warnings': [
4003,
4146,
4244,
4251,
4996,
],
'xcode_settings': {
'WARNING_CFLAGS': [
'-Wno-deprecated-declarations',
'-Wno-undefined-var-template',
'-Wno-switch',
'-Wno-unused-function',
'-Wno-sign-compare',
'-Wno-implicit-function-declaration',
'-Wno-inconsistent-missing-override',
],
'WARNING_CFLAGS!': [
'-W',
'-Wall',
],
},
'cflags': [
'-Wno-deprecated-declarations',
'-Wno-switch',
'-Wno-unused-function',
'-Wno-sign-compare',
'-Wno-unused-but-set-variable',
'-Wno-maybe-uninitialized',
'-Wno-inconsistent-missing-override',
],
'cflags_c': [
'-Wno-deprecated-non-prototype',
'-Wno-implicit-function-declaration',
],
'cflags!': [
'-Wall',
'-Wextra',
],
}],
],
},
}