-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbinding.gyp
More file actions
66 lines (66 loc) · 1.59 KB
/
binding.gyp
File metadata and controls
66 lines (66 loc) · 1.59 KB
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
{
"target_defaults": {
'conditions': [
['OS=="win"', {
'defines': [
'_WINDOWS',
],
}]
],
},
"targets": [
{
"variables": {
"CURRENT_DIR": "<(PRODUCT_DIR)/../..",
},
# "cflags": [
# "-std=c99",
# "-Wall",
# "-O2",
# "-g",
# ],
"cflags!": [
"-fno-exceptions"
],
"cflags_cc!": [
"-fno-exceptions"
],
"include_dirs" : [
"<!@(node -p \"require('node-addon-api').include\")",
"deps/picotls/lib/cifra",
"deps/picotls/deps/cifra/src/ext",
"deps/picotls/deps/cifra/src",
"deps/picotls/deps/micro-ecc",
"deps/picotls/deps/picotest",
"deps/picotls/picotlsvs/picotls",
"deps/picotls/include",
"deps/picotls/include/picotls",
],
"target_name": "picotls",
"conditions": [
[
'OS=="win"',
{
"libraries": [
"<(CURRENT_DIR)/deps/picotls/picotlsvs/x64/Release/picotls-minicrypto-deps.lib",
"<(CURRENT_DIR)/deps/picotls/picotlsvs/x64/Release/picotls-minicrypto.lib",
"<(CURRENT_DIR)/deps/picotls/picotlsvs/x64/Release/picotls-core.lib",
],
},
{
"libraries": [
"<(CURRENT_DIR)/deps/picotls/libpicotls-core.a",
"<(CURRENT_DIR)/deps/picotls/libpicotls-minicrypto.a",
],
}
]
],
"sources": [
"src/main.cc"
],
"defines": [
"NAPI_DISABLE_CPP_EXCEPTIONS"
],
}
]
}