Browse Source

Clean up Android build instructions

master
Macoy Madson 2 years ago
parent
commit
3d061dc11e
  1. 4
      Build_Android.sh
  2. 6
      ReadMe.org
  3. 7
      Setup_Android.sh

4
Build_Android.sh

@ -3,9 +3,5 @@
echo "Building normally (important for copying files)"
sh ./Build.sh || exit $?
# Uncomment for first run
# echo "Creating symlink to SDL in Android/app/jni"
# ln -s $(pwd)/Dependencies/gamelib/Dependencies/SDL $(pwd)/Android/app/jni/SDL || exit $?
cd Android
./gradlew installDebug || exit $?

6
ReadMe.org

@ -20,9 +20,11 @@ Build:
See [[file:Dependencies/gamelib/Dependencies/SDL/docs/README-android.md][SDL's README-android.md]] for instructions I followed for setting up Android. You need to download Android Studio. (You could get away with only the SDK and build tools, but you'll probably want the debugger when things don't work out of the box anyways.)
*** Building
Run ~Build_Android.sh~ to create the proper files and symlink to SDL.
Run ~Setup_Android.sh~ to create the proper files and symlink to SDL.
I then opened Android Studio, browsed to the Android directory, and hit Debug, Run, etc.
Then, run ~Build_Android.sh~. This will fail if you don't have an Android device connected via USB (and in Developer mode). Once it succeeds, the connected Android device will have Kitty Gridlock installed!
You can also open Android Studio, browsed to the Android directory, and hit Debug, Run, etc.
*** Per-user setup
Open ~Android/local.properties~ and set these variables to the ones you have set up (mine, for reference):
#+BEGIN_SRC properties

7
Setup_Android.sh

@ -0,0 +1,7 @@
#!/bin/sh
echo "Building normally (important for copying files)"
sh ./Build.sh || exit $?
echo "Creating symlink to SDL in Android/app/jni"
ln -s $(pwd)/Dependencies/gamelib/Dependencies/SDL $(pwd)/Android/app/jni/SDL || exit $?
Loading…
Cancel
Save