Skip to content

Commit a21535b

Browse files
update binding
Signed-off-by: Matheus Sampaio Queiroga <[email protected]>
1 parent c4364f9 commit a21535b

File tree

2 files changed

+74
-236
lines changed

2 files changed

+74
-236
lines changed

.github/workflows/publish.yml

Lines changed: 0 additions & 169 deletions
This file was deleted.

binding.yaml

Lines changed: 74 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,74 @@
1-
- name: wginterface
2-
ncflags:
3-
- "-fno-exceptions"
4-
nflags_cc:
5-
- "-fno-exceptions"
6-
defines:
7-
- "NAPI_DISABLE_CPP_EXCEPTIONS"
8-
- "NODE_VERSION=4"
9-
cflags:
10-
- "-fpermissive"
11-
- "-fexceptions"
12-
- "-w"
13-
- "-fpermissive"
14-
flags_cc:
15-
- "-fpermissive"
16-
- "-fexceptions"
17-
- "-w"
18-
- "-fpermissive"
19-
includes:
20-
- addons/genKey
21-
- addons/tools
22-
- node_modules/node-addon-api
23-
sources:
24-
- "addons/genKey/wgkeys.cpp"
25-
- "addons/tools/wginterface.cpp"
26-
- "addons/tools/wginterface-dummy.cpp"
27-
target:
28-
linux:
29-
sources:
30-
- "addons/tools/linux/wireguard.c"
31-
- "addons/tools/wginterface-linux.cpp"
32-
- "!addons/tools/wginterface-dummy.cpp"
33-
defines:
34-
- "LISTDEV"
35-
- "GETCONFIG"
36-
- "SETCONFIG"
37-
- "DELIFACE"
38-
cflags:
39-
- "-fPIC"
40-
flags_cc:
41-
- "-fPIC"
42-
macos:
43-
cflags_cc:
44-
- "-fexceptions"
45-
cflags:
46-
- "-fexceptions"
47-
windows:
48-
sources:
49-
- "addons/tools/wginterface-win.cpp"
50-
- "!addons/tools/wginterface-dummy.cpp"
51-
includes:
52-
- "addons/tools/win"
53-
defines:
54-
- "ONSTARTADDON"
55-
- "LISTDEV"
56-
- "GETCONFIG"
57-
- "SETCONFIG"
58-
- "DELIFACE"
59-
- "_HAS_EXCEPTIONS=1"
60-
libraries:
61-
- "bcrypt.lib"
62-
- "crypt32.lib"
63-
- "iphlpapi.lib"
64-
- "kernel32.lib"
65-
- "ntdll.lib"
66-
- "ws2_32.lib"
67-
- "setupapi.lib"
1+
name: wginterface
2+
flags:
3+
- "!-fno-exceptions"
4+
- "-fpermissive"
5+
- "-fexceptions"
6+
- "-w"
7+
- "-fpermissive"
8+
flagsCC:
9+
- "!-fno-exceptions"
10+
- "-fpermissive"
11+
- "-fexceptions"
12+
- "-w"
13+
- "-fpermissive"
14+
defines:
15+
- "NAPI_DISABLE_CPP_EXCEPTIONS"
16+
- "NODE_VERSION=4"
17+
includes:
18+
- addons/genKey
19+
- addons/tools
20+
- node_modules/node-addon-api
21+
sources:
22+
- "addons/genKey/wgkeys.cpp"
23+
- "addons/tools/wginterface.cpp"
24+
- "addons/tools/wginterface-dummy.cpp"
25+
target:
26+
linux:
27+
sources:
28+
- "addons/tools/linux/wireguard.c"
29+
- "addons/tools/wginterface-linux.cpp"
30+
- "!addons/tools/wginterface-dummy.cpp"
31+
defines:
32+
- "LISTDEV"
33+
- "GETCONFIG"
34+
- "SETCONFIG"
35+
- "DELIFACE"
36+
target:
37+
x86_64:
38+
release: true
39+
flags:
40+
- "-fPIC"
41+
flagsCC:
42+
- "-fPIC"
43+
aarch64:
44+
release: true
45+
flags:
46+
- "-fPIC"
47+
flagsCC:
48+
- "-fPIC"
49+
windows:
50+
target:
51+
x86_64:
52+
release: true
53+
aarch64:
54+
release: true
55+
sources:
56+
- "addons/tools/wginterface-win.cpp"
57+
- "!addons/tools/wginterface-dummy.cpp"
58+
includes:
59+
- "addons/tools/win"
60+
defines:
61+
- "ONSTARTADDON"
62+
- "LISTDEV"
63+
- "GETCONFIG"
64+
- "SETCONFIG"
65+
- "DELIFACE"
66+
- "_HAS_EXCEPTIONS=1"
67+
libraries:
68+
- "bcrypt.lib"
69+
- "crypt32.lib"
70+
- "iphlpapi.lib"
71+
- "kernel32.lib"
72+
- "ntdll.lib"
73+
- "ws2_32.lib"
74+
- "setupapi.lib"

0 commit comments

Comments
 (0)