Create a functional CMake project using androidbuild.sh

This commit is contained in:
Anonymous Maarten
2024-06-17 23:46:08 +02:00
parent 8ab1ffca8a
commit 1a68d846de
4 changed files with 31 additions and 10 deletions

View File

@@ -37,16 +37,28 @@ jobs:
with:
distribution: 'temurin'
java-version: '17'
- name: Build app (Gradle)
- name: Create Gradle project
if: ${{ matrix.platform.gradle }}
run: |
ln -s ${{ github.workspace }} ${{ github.workspace }}/android-project/app/jni/SDL
cd android-project
build-scripts/androidbuild.sh org.libsdl.testcontroller src/test/SDL_test_* test/testcontroller.c test/gamepad* test/testutils*
echo ""
echo "Project contents:"
echo ""
find "build/org.libsdl.testcontroller"
- name: Build app (Gradle & ndk-build)
if: ${{ matrix.platform.gradle }}
run: |
cd build/org.libsdl.testcontroller
./gradlew -i assembleRelease
- name: Build app (Gradle & CMake)
if: ${{ matrix.platform.gradle }}
run: |
cd build/org.libsdl.testcontroller
./gradlew -i assembleRelease -PBUILD_WITH_CMAKE=1
# - name: Build library (Gradle)
# if: ${{ matrix.platform.gradle }}
# run: |
# cd android-project
# cd build/org.libsdl.testcontroller
# ./gradlew -i assembleRelease -PBUILD_AS_LIBRARY=1
- name: Setup (CMake)
if: ${{ matrix.platform.cmake }}