-
Notifications
You must be signed in to change notification settings - Fork 13
/
binding.gyp
62 lines (62 loc) · 1.54 KB
/
binding.gyp
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
{
"targets": [{
"target_name": "metrics",
"variables": {
"cppstd_ver": "<!(node -pe \"(() => {let v = parseInt(process.versions.node.split('.')[0]); if (v >= 23) return 20; else if (v >= 20) return 17; else return 11;})()\")"
},
"sources": [
"src/native_ext/util/arena.cpp",
"src/native_ext/util/hex.cpp",
"src/native_ext/module.cpp",
"src/native_ext/metrics.cpp",
"src/native_ext/memory_profiling.cpp",
"src/native_ext/profiling.cpp",
"src/native_ext/util/modp_numtoa.cpp",
"src/native_ext/util/platform.cpp"
],
"include_dirs": [
"<!(node -e \"require('nan')\")"
],
"conditions": [
["OS == 'linux'", {
"cflags": [
"-std=c++<(cppstd_ver)",
"-Wall",
"-Werror"
],
"cflags_cc": [
"-Wno-attributes",
"-Wno-deprecated-declarations"
]
}],
["OS == 'win'", {
"cflags": [
"/WX"
],
"defines": [
"NOMINMAX",
"_WIN32_WINNT=0x0602"
],
"msvs_settings": {
"VCCLCompilerTool": {
"AdditionalOptions": [
"-std:c++<(cppstd_ver)"
]
}
}
}],
["OS == 'mac'", {
"xcode_settings": {
"MACOSX_DEPLOYMENT_TARGET": "10.10",
"OTHER_CFLAGS": [
"-std=c++20",
"-stdlib=libc++",
"-Wall",
"-Werror",
"-Wno-deprecated-declarations"
]
},
}],
]
}]
}