Skip to content

Commit

Permalink
update binding
Browse files Browse the repository at this point in the history
Signed-off-by: Matheus Sampaio Queiroga <[email protected]>
  • Loading branch information
Sirherobrine23 committed Feb 19, 2024
1 parent c4364f9 commit a21535b
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 236 deletions.
169 changes: 0 additions & 169 deletions .github/workflows/publish.yml

This file was deleted.

141 changes: 74 additions & 67 deletions binding.yaml
Original file line number Diff line number Diff line change
@@ -1,67 +1,74 @@
- name: wginterface
ncflags:
- "-fno-exceptions"
nflags_cc:
- "-fno-exceptions"
defines:
- "NAPI_DISABLE_CPP_EXCEPTIONS"
- "NODE_VERSION=4"
cflags:
- "-fpermissive"
- "-fexceptions"
- "-w"
- "-fpermissive"
flags_cc:
- "-fpermissive"
- "-fexceptions"
- "-w"
- "-fpermissive"
includes:
- addons/genKey
- addons/tools
- node_modules/node-addon-api
sources:
- "addons/genKey/wgkeys.cpp"
- "addons/tools/wginterface.cpp"
- "addons/tools/wginterface-dummy.cpp"
target:
linux:
sources:
- "addons/tools/linux/wireguard.c"
- "addons/tools/wginterface-linux.cpp"
- "!addons/tools/wginterface-dummy.cpp"
defines:
- "LISTDEV"
- "GETCONFIG"
- "SETCONFIG"
- "DELIFACE"
cflags:
- "-fPIC"
flags_cc:
- "-fPIC"
macos:
cflags_cc:
- "-fexceptions"
cflags:
- "-fexceptions"
windows:
sources:
- "addons/tools/wginterface-win.cpp"
- "!addons/tools/wginterface-dummy.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"
name: wginterface
flags:
- "!-fno-exceptions"
- "-fpermissive"
- "-fexceptions"
- "-w"
- "-fpermissive"
flagsCC:
- "!-fno-exceptions"
- "-fpermissive"
- "-fexceptions"
- "-w"
- "-fpermissive"
defines:
- "NAPI_DISABLE_CPP_EXCEPTIONS"
- "NODE_VERSION=4"
includes:
- addons/genKey
- addons/tools
- node_modules/node-addon-api
sources:
- "addons/genKey/wgkeys.cpp"
- "addons/tools/wginterface.cpp"
- "addons/tools/wginterface-dummy.cpp"
target:
linux:
sources:
- "addons/tools/linux/wireguard.c"
- "addons/tools/wginterface-linux.cpp"
- "!addons/tools/wginterface-dummy.cpp"
defines:
- "LISTDEV"
- "GETCONFIG"
- "SETCONFIG"
- "DELIFACE"
target:
x86_64:
release: true
flags:
- "-fPIC"
flagsCC:
- "-fPIC"
aarch64:
release: true
flags:
- "-fPIC"
flagsCC:
- "-fPIC"
windows:
target:
x86_64:
release: true
aarch64:
release: true
sources:
- "addons/tools/wginterface-win.cpp"
- "!addons/tools/wginterface-dummy.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"

0 comments on commit a21535b

Please sign in to comment.