This repository has been archived by the owner on Aug 9, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
common.gypi
164 lines (164 loc) · 5.18 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
{
'includes': [
'node/common.gypi',
],
'variables': {
# Reflects node's config.gypi.
'library%': 'static_library',
'component': 'static_library',
'python': 'python',
'coverage': 'false',
'llvm_version': '3.3',
'debug_nghttp2': 'false',
'debug_node': 'false',
'enable_lto': 'false',
'enable_pgo_generate': 'false',
'enable_pgo_use': 'false',
'force_dynamic_crt': 0,
'openssl_fips': '',
'openssl_is_fips': 'false',
'openssl_no_asm': 1,
'openssl_quic': 'true',
'OPENSSL_PRODUCT': 'libopenssl.a',
'node_release_urlbase': '',
'node_byteorder': '<!(node -e "console.log(require(\'os\').endianness() === \'BE\' ? \'big\' : \'little\')")',
'node_target_type': 'static_library',
'node_lib_target_name': 'libnode',
'node_install_npm': 'false',
'node_prefix': '',
'node_shared': 'false',
'node_shared_brotli': 'false',
'node_shared_cares': 'false',
'node_shared_http_parser': 'false',
'node_shared_libuv': 'false',
'node_shared_nghttp2': 'false',
'node_shared_nghttp3': 'false',
'node_shared_ngtcp2': 'false',
'node_shared_openssl': 'false',
'node_shared_v8': 'false',
'node_shared_zlib': 'false',
'node_tag': '',
'node_use_dtrace': 'false',
'node_use_etw': 'false',
'node_use_mdb': 'false',
'node_use_openssl': 'true',
'node_use_perfctr': 'false',
'node_use_v8_platform': 'true',
'node_use_bundled_v8': 'false',
'node_enable_d8': 'false',
'node_use_large_pages': 'false',
'node_debug_lib': 'false',
'node_with_ltcg': 'false',
'node_report': 'false',
'node_use_node_code_cache': 'false',
'uv_library': 'static_library',
'uv_parent_path': 'node/deps/uv',
'uv_use_dtrace': 'false',
'V8_BASE': '',
'v8_enable_31bit_smis_on_64bit_arch': 0,
'v8_enable_gdbjit': 0,
'v8_enable_i18n_support': 1,
'v8_enable_inspector': 1,
'v8_enable_lite_mode': 0,
'v8_enable_object_print': 1,
'v8_enable_pointer_compression': 0,
'v8_enable_webassembly': 1,
'v8_no_strict_aliasing': 1,
'v8_optimized_debug': 0,
'v8_promise_internal_field_count': 1,
'v8_random_seed': 0,
'v8_trace_maps': 0,
'v8_use_siphash': 1,
'v8_use_snapshot': 1,
'icu_data_file': 'icudt69l.dat',
'icu_data_in': '../../deps/icu-tmp/icudt69l.dat',
'icu_default_data': '',
'icu_endianness': 'l',
'icu_gyp_path': 'node/tools/icu/icu-generic.gyp',
'icu_locales': 'en,root',
'icu_path': '../../deps/icu-small',
'icu_small': 'true',
'icu_ver_major': '69',
},
'target_defaults': {
'include_dirs': [
'node/deps/v8/include',
],
'target_conditions': [
['_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 ["libnode", "genrb", "genccode"] 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"] or _target_name.startswith("v8") or _target_name.startswith("icu") or _target_name.startswith("node")', {
# 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-implicit-function-declaration',
],
'cflags!': [
'-Wall',
'-Wextra',
],
}],
],
},
}