README: Update build instructions

This commit is contained in:
kichikuou
2020-12-05 14:08:03 +09:00
parent 0b729b62e3
commit 8808dec847
2 changed files with 9 additions and 2 deletions
+2
View File
@@ -36,6 +36,8 @@ This is a SDL2 port of [System3 for Win32](http://takeda-toshiya.my.coocan.jp/al
### Emscripten
$ git submodule init
$ git submodule update
$ mkdir -p out/wasm
$ cd out/wasm
$ emcmake cmake -DCMAKE_BUILD_TYPE=MinSizeRel ../../src/
+7 -2
View File
@@ -10,7 +10,12 @@ Prerequisites:
- Android NDK >=r15c
### Using Android Studio
Open this directory as an Android Studio project.
Clone this repository and its submodules:
```sh
git clone --recurse-submodules https://github.com/kichikuou/system3-sdl2.git
```
Then open `system3-sdl2/android` directory as an Android Studio project.
### Command line build
Configure environment variables and run the `gradlew` script in this folder.
@@ -30,7 +35,7 @@ $ANDROID_SDK_ROOT/cmdline-tools/tools/bin/sdkmanager ndk-bundle
export ANDROID_NDK_HOME=$ANDROID_SDK_ROOT/ndk-bundle
# Check out and build system3-sdl2
git clone https://github.com/kichikuou/system3-sdl2.git
git clone --recurse-submodules https://github.com/kichikuou/system3-sdl2.git
cd system3-sdl2/android
./gradlew build # or ./gradlew installDebug if you have a connected device
```