mirror of
https://github.com/libretro/libretro-super
synced 2025-01-26 03:35:36 +00:00
Build retroarch android with gradle
The gradle script builds variants separately, but inline
This commit is contained in:
parent
914b2ae380
commit
1be009ad09
@ -992,33 +992,18 @@ if [ "${PLATFORM}" = "android" ] && [ "${RA}" = "YES" ]; then
|
||||
echo "buildbot job: $jobid Building"
|
||||
echo
|
||||
cd pkg/android/phoenix$PKG_EXTRA
|
||||
rm bin/*.apk
|
||||
|
||||
cat << EOF > local.properties
|
||||
sdk.dir=/home/buildbot/tools/android/android-sdk-linux
|
||||
key.store=/home/buildbot/.android/release.keystore
|
||||
key.alias=buildbot
|
||||
key.store.password=buildbot
|
||||
key.alias.password=buildbot
|
||||
|
||||
EOF
|
||||
|
||||
git reset --hard
|
||||
if [ "${RELEASE}" == "NO" ]; then
|
||||
python ./version_increment.py
|
||||
fi
|
||||
ant clean | tee -a "$LOGFILE"
|
||||
android update project --path . --target android-26 | tee -a "$LOGFILE"
|
||||
android update project --path libs/googleplay --target android-26 | tee -a "$LOGFILE"
|
||||
android update project --path libs/appcompat --target android-26 | tee -a "$LOGFILE"
|
||||
TARGET_ABIS=${TARGET_ABIS/arm64-v8a /} ant release | tee -a "$LOGFILE"
|
||||
if [ -z "$BRANCH" ]; then
|
||||
cp -r bin/retroarch-release.apk $RARCH_DIR/retroarch-release.apk | tee -a "$LOGFILE"
|
||||
cp -r bin/retroarch-release.apk $RARCH_DIR/retroarch-release.apk
|
||||
else
|
||||
cp -r bin/retroarch-release.apk $RARCH_DIR/retroarch-$BRANCH-release.apk | tee -a "$LOGFILE"
|
||||
cp -r bin/retroarch-release.apk $RARCH_DIR/retroarch-$BRANCH-release.apk
|
||||
fi
|
||||
./gradlew clean assembleRelease
|
||||
cp -r build/outputs/apk/normal/release/phoenix-normal-release.apk $RARCH_DIR/retroarch-release.apk | tee -a "$LOGFILE"
|
||||
cp -r build/outputs/apk/normal/release/phoenix-normal-release.apk $RARCH_DIR/retroarch-release.apk
|
||||
cp -r build/outputs/apk/aarch64/release/phoenix-aarch64-release.apk $RARCH_DIR/retroarch-aarch64-release.apk | tee -a "$LOGFILE"
|
||||
cp -r build/outputs/apk/aarch64/release/phoenix-aarch64-release.apk $RARCH_DIR/retroarch-aarch64-release.apk
|
||||
cp -r build/outputs/apk/ra32/release/phoenix-ra32-release.apk $RARCH_DIR/retroarch-ra32-release.apk | tee -a "$LOGFILE"
|
||||
cp -r build/outputs/apk/ra32/release/phoenix-ra32-release.apk $RARCH_DIR/retroarch-ra32-release.apk
|
||||
|
||||
RET=$?
|
||||
buildbot_handle_message "$RET" "$ENTRY_ID" "retroarch" "$jobid" "$LOGFILE"
|
||||
|
@ -1 +0,0 @@
|
||||
|
@ -1,14 +0,0 @@
|
||||
ANDROID_HOME /home/buildbot/tools/android/android-sdk-linux
|
||||
NDK_ROOT /home/buildbot/tools/android/android-ndk-r13b/
|
||||
ANDROID_NDK /home/buildbot/tools/android/android-ndk-r13b/
|
||||
PATH /home/buildbot/tools/android/android-ndk-r13b/:/home/buildbot/tools/android/android-sdk-linux/tools
|
||||
PLATFORM android
|
||||
platform android
|
||||
MAKE make
|
||||
NDK ndk-build
|
||||
RA YES
|
||||
LIBSUFFIX _android
|
||||
JAVA_HOME /usr/lib/jvm/java-8-oracle
|
||||
TARGET_ABIS arm64-v8a
|
||||
BRANCH aarch64
|
||||
PKG_EXTRA 64
|
@ -1,7 +0,0 @@
|
||||
retroarch retroarch-aarch64 https://github.com/libretro/Retroarch.git PROJECT YES .
|
||||
overlays overlays https://github.com/libretro/common-overlays.git ASSETS YES retroarch-aarch64/media
|
||||
shaders shaders_glsl https://github.com/libretro/glsl-shaders.git ASSETS YES retroarch-aarch64/media
|
||||
autoconfig autoconfig https://github.com/libretro/retroarch-joypad-autoconfig.git ASSETS YES retroarch-aarch64/media
|
||||
assets assets https://github.com/libretro/retroarch-assets.git ASSETS YES retroarch-aarch64/media
|
||||
libretrodb libretrodb https://github.com/libretro/libretro-database.git ASSETS YES retroarch-aarch64/media
|
||||
|
@ -1,11 +1,7 @@
|
||||
ANDROID_HOME /home/buildbot/tools/android/android-sdk-linux
|
||||
NDK_ROOT /home/buildbot/tools/android/android-ndk-r13b/
|
||||
ANDROID_NDK /home/buildbot/tools/android/android-ndk-r13b/
|
||||
PATH /home/buildbot/tools/android/android-ndk-r13b/:/home/buildbot/tools/android/android-sdk-linux/tools
|
||||
PATH /home/buildbot/tools/android/android-sdk-linux/tools/bin
|
||||
PLATFORM android
|
||||
platform android
|
||||
MAKE make
|
||||
NDK ndk-build
|
||||
RA YES
|
||||
LIBSUFFIX _android
|
||||
JAVA_HOME /usr/lib/jvm/java-8-oracle
|
||||
|
Loading…
x
Reference in New Issue
Block a user