Embded compiled WireGuard lib for Android

This commit is contained in:
pokamest 2021-10-02 15:09:20 +03:00
parent edbfcda197
commit 535e628eba
14 changed files with 12 additions and 5 deletions

View file

@ -129,9 +129,9 @@ android {
} }
} }
externalNativeBuild { // externalNativeBuild {
cmake { // cmake {
path 'wireguard/CMakeLists.txt' // path 'wireguard/CMakeLists.txt'
} // }
} // }
} }

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -195,6 +195,13 @@ android {
android/res/values/libs.xml android/res/values/libs.xml
ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android
for (abi, ANDROID_ABIS): {
ANDROID_EXTRA_LIBS += $$PWD/android/lib/wireguard/$${abi}/libwg.so
ANDROID_EXTRA_LIBS += $$PWD/android/lib/wireguard/$${abi}/libwg-go.so
ANDROID_EXTRA_LIBS += $$PWD/android/lib/wireguard/$${abi}/libwg-quick.so
}
} }
REPC_REPLICA += ../ipc/ipc_interface.rep REPC_REPLICA += ../ipc/ipc_interface.rep