update build/install instructions

This commit is contained in:
Eric House 2015-03-03 07:12:44 -08:00
parent 7229d110a0
commit 4e7dbbfa30

View file

@ -1,19 +1,29 @@
Here's how I'm building crosswords for Android. Here's how I'm building crosswords for Android.
First, the build process requires a file called local.properties that First, cd into the directory xwords4/android/XWords4. Everything
must be generated locally. Generate it before your first build by happens there.
running ./scripts/setup_local_props.sh.
The working directory is XWords4 within this (android/) directory. IF (and it's a big if) you have all the necessary tools installed (the
Run the following commands from there. Android SDK and NDK, apache ant, and probably other stuff I've
forgotten), two commands will build it, the first a one-time deal and
the second repeated every time you made a change.
Build the jni library (the cross-platform code): The build process requires a file called local.properties that must be
# ../scripts/ndkbuild.sh generated locally. Generate it before your first build by running
# ../scripts/setup_local_props.sh
Then build using this command:
# ant debug
Or, if you have a device or emulator attached (listed by 'adb
devices'), try
Then build the app for the emulator (assuming it's running)
# ant debug install # ant debug install
Build for a device (requires you've set up your keys. I did this too Making a release build requires that you've set up your keys. (I did
long ago to remember how but the info's easy to find): this too long ago to remember how but the info's easy to find). Once
# ant release that's done, just tether your device and type
(The above command not yet verified for new SDK I installed on 11/19/11)
# ant release install