TerryCavanagh / VVVVVV

The source code to VVVVVV! http://thelettervsixtim.es/
Other
6.94k stars 556 forks source link

Use Android SDL2 via Maven #1047

Closed leo60228 closed 10 months ago

leo60228 commented 10 months ago

Changes:

The recommended way to use SDL2 in Android projects is via symlinking the SDL source tree into the project. However, this allegedly causes strange issues with Git for Windows. This PR switches the build process to the more recently added alternative of installing SDL2 via Maven and having Gradle handle the dependency management. This also avoids the need to vendor the Java code.

However, SDL currently does not publish Maven packages, meaning they have to be built manually. This can be done by running build-scripts/android-prefab.sh in the SDL repository and then ensuring that the built package is available to Gradle. The cleanest way to do this is by running mvn install:install-file -Dfile=build-android-prefab/prefab-2.28.5/SDL2-2.28.5.aar -DpomFile=build-android-prefab/prefab-2.28.5/SDL2-2.28.5.pom to install it to Maven Local, but other methods are possible as well.

Legal Stuff:

By submitting this pull request, I confirm that...

InfoTeddy commented 10 months ago

However, this allegedly causes strange issues with Git for Windows.

For context, Ally on Discord reported that symlinks to Git repos on Windows behave very strangely.