summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build-native.bat13
-rwxr-xr-xbuild-native.sh22
2 files changed, 24 insertions, 11 deletions
diff --git a/build-native.bat b/build-native.bat
new file mode 100644
index 0000000..73fc94b
--- /dev/null
+++ b/build-native.bat
@@ -0,0 +1,13 @@
+@echo on
+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 .. \ No newline at end of file
diff --git a/build-native.sh b/build-native.sh
index 2848fdd..de76737 100755
--- a/build-native.sh
+++ b/build-native.sh
@@ -1,12 +1,12 @@
-ndk-build APP_API=all -j 8
-if [ $? = 0 ]; then
- cd libs
- mkdir -p ../assets
- for i in *
- do
- cp -v $i/minivpn ../assets/minivpn.$i
- done
- # Removed compiled openssl libs, will use platform so libs
- # Reduces size of apk
- rm -v */libcrypto.so */libssl.so
+ndk-build APP_API=all -j 8
+if [ $? = 0 ]; then
+ cd libs
+ mkdir -p ../assets
+ for i in *
+ do
+ cp -v $i/minivpn ../assets/minivpn.$i
+ done
+ # Removed compiled openssl libs, will use platform so libs
+ # Reduces size of apk
+ rm -v */libcrypto.so */libssl.so
fi \ No newline at end of file