-
Notifications
You must be signed in to change notification settings - Fork 0
/
binding.gyp
84 lines (84 loc) · 2.14 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
{
"variables" : {
"openssl_fips": ""
},
"targets": [
{
"target_name": "native",
"sources": [
"binding.cc"
],
"ldflags": [
],
"cflags!": [
"-fno-exceptions"
],
"cflags_cc!": ["-fno-exceptions"],
"defines": ["NAPI_CPP_EXCEPTIONS"],
"conditions": [
[
"OS=='linux'",
{
"libraries": [
"-L<(module_root_dir)/libraries/ -l:libself_omemo.a",
],
"copies": [
{
"destination": "<(module_root_dir)/build/Release/",
"files": [ "<(module_root_dir)/libraries/libself_omemo.a" ]
}
],
"link_settings": {
"libraries": [ "-Wl,-rpath=\\$$ORIGIN"],
"include_dirs": [
"<!(node -p \"require('node-addon-api').include_dir\")",
"includes"
]
}
}
],
[
"OS=='mac'",
{
"libraries": [
"-L<(module_root_dir)/libraries/ -lself_omemo",
],
"copies": [
{
"destination": "<(module_root_dir)/build/Release/",
"files": [ "<(module_root_dir)/libraries/libself_omemo.a" ]
}
],
"link_settings": {
"include_dirs": [
"<!(node -p \"require('node-addon-api').include_dir\")",
"includes"
]
}
}
],
[
"OS=='win'",
{
"libraries": [
"-l<(module_root_dir)/libraries/self_omemo.lib",
"-lmincore.lib"
],
"copies": [
{
"destination": "<(module_root_dir)/build/Release/",
"files": [ "<(module_root_dir)/libraries/self_omemo.lib" ]
}
],
"link_settings": {
"include_dirs": [
"<!(node -p \"require('node-addon-api').include_dir\")",
"includes"
]
}
}
]
]
}
]
}