Skip to content

Commit

Permalink
Always build all the archs for android
Browse files Browse the repository at this point in the history
  • Loading branch information
edo9300 committed Aug 8, 2024
1 parent 66a4bf3 commit b1007d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion jni/Application.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
APP_ABI := armeabi-v7a arm64-v8a x86
APP_ABI := all
APP_PLATFORM := android-16
APP_STL := c++_static
APP_CPPFLAGS := -std=c++1z
Expand Down
6 changes: 3 additions & 3 deletions scripts/predeploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ if [[ "$TARGET_OS" == "windows" ]]; then
strip $DEPLOY_DIR/ocgcore.dll
fi
elif [[ "$TARGET_OS" == "android" ]]; then
ARCH=("armeabi-v7a" "arm64-v8a" "x86" "x86_64" )
OUTPUT=("libocgcorev7.so" "libocgcorev8.so" "libocgcorex86.so" "libocgcorex64.so")
for i in {0..3}; do
ARCH=("armeabi-v7a" "arm64-v8a" "x86" "x86_64" "armeabi" "mips" "mips64")
OUTPUT=("libocgcorev7.so" "libocgcorev8.so" "libocgcorex86.so" "libocgcorex64.so" "libocgcoreeabi.so" "libocgcoremips.so" "libocgcoremips64.so")
for i in {0..6}; do
CORE="libs/${ARCH[i]}/libocgcore.so"
if [[ -f "$CORE" ]]; then
mv $CORE "$DEPLOY_DIR/${OUTPUT[i]}"
Expand Down

0 comments on commit b1007d3

Please sign in to comment.