Update builder and migrate to ESM #3

Merged
Sirherobrine23 merged 7 commits from ci_zig into main 2024-02-17 16:41:50 +00:00
2 changed files with 63 additions and 21157 deletions
Showing only changes of commit 82eb63f064 - Show all commits

63
binding.yaml Normal file
View File

@@ -0,0 +1,63 @@
- name: wginterface
nflags_CCX:
- "-fno-exceptions"
nflags_CC:
- "-fno-exceptions"
defines:
- "NAPI_DISABLE_CPP_EXCEPTIONS"
- "NODE_VERSION=4"
flags_CCX:
- "-fpermissive"
- "-fexceptions"
- "-w"
- "-fpermissive"
- "-fPIC"
- "-static"
flags_CC:
- "-fpermissive"
- "-fexceptions"
- "-w"
- "-fpermissive"
- "-fPIC"
- "-static"
includes:
- "addons/genKey"
- "addons/tools"
sources:
- "addons/genKey/wgkeys.cpp"
- "addons/tools/wginterface.cpp"
targets:
linux:
sources:
- "addons/tools/linux/wireguard.c"
- "addons/tools/wginterface-linux.cpp"
defines:
- "LISTDEV"
- "GETCONFIG"
- "SETCONFIG"
- "DELIFACE"
macos:
cflags_cc:
- "-fexceptions"
cflags:
- "-fexceptions"
windows:
sources:
- "addons/tools/wginterface-win.cpp"
includes:
- "addons/tools/win"
defines:
- "ONSTARTADDON"
- "LISTDEV"
- "GETCONFIG"
- "SETCONFIG"
- "DELIFACE"
- "_HAS_EXCEPTIONS=1"
libraries:
- "bcrypt.lib"
- "crypt32.lib"
- "iphlpapi.lib"
- "kernel32.lib"
- "ntdll.lib"
- "ws2_32.lib"
- "setupapi.lib"

File diff suppressed because it is too large Load Diff