-
Notifications
You must be signed in to change notification settings - Fork 41
/
binding.gyp
50 lines (50 loc) · 1.1 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
{
"variables": {
# Node.js >= 20 seems to have issues with this. Search
# "'openssl_fips' is not defined while evaluating" for many results.
"openssl_fips": 0
},
"targets": [{
"target_name": "native_metrics",
"sources": [
"src/native_metrics.cpp",
"src/GCBinder.hpp",
"src/GCBinder.cpp",
"src/LoopChecker.hpp",
"src/LoopChecker.cpp",
"src/Metric.hpp"
],
"defines": [
"NOMINMAX"
],
"include_dirs": [
"src",
"<!(node -e \"require('nan')\")"
],
"conditions": [
["OS == 'linux'", {
"cflags_cc": [
"-Wno-cast-function-type" # nan issue: https://github.com/nodejs/nan/issues/807
]
}]
]
# }, {
# "target_name": "tests",
# "sources": [
# # Test deps and setup
# "src/tests/gtest/gtest.h",
# "src/tests/gtest-all.cc",
# "src/tests/main.cpp",
#
# # Actual tests
# "src/tests/metrics_test.cpp"
# ],
# "defines": [
# "NOMINMAX"
# ],
# "include_dirs": [
# "src",
# "<!(node -e \"require('nan')\")"
# ]
}]
}