summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--misc/build-native.bat32
1 files changed, 18 insertions, 14 deletions
diff --git a/misc/build-native.bat b/misc/build-native.bat
index f84f911a..2af86c5b 100644
--- a/misc/build-native.bat
+++ b/misc/build-native.bat
@@ -1,14 +1,18 @@
-@echo on
-call ndk-build -j 8
-
-cd libs
-mkdir ..\assets
-
-
-for /D %%f in (*) do (
- copy %%f\minivpn ..\assets\minivpn.%%f
- del %%f\libcrypto.so
- del %%f\libssl.so
-)
-
-cd ..
+
+@echo on
+call ndk-build APP_API=all -j 8
+
+cd libs
+mkdir ..\assets
+mkdir ..\build\
+
+for /D %%f in (*) do (
+ copy %%f\minivpn ..\assets\minivpn.%%f
+ del %%f\libcrypto.so
+ del %%f\libssl.so
+
+ mkdir ..\build\native-libs\%%f\
+ copy %%f\*.so ..\build\native-libs\%%f\
+)
+
+cd ..