Merge pull request #354 from lioncash/master

[Android] Update documentation to explain how to build the JNI portions of the Android front-end.
This commit is contained in:
Toad King 2013-10-21 19:32:52 -07:00
commit fc105c919b

View File

@ -1,16 +1,32 @@
## How to import the project:
## Building the JNI-related files for Phoenix.
1. - Open Eclipse, do: File->Import->Existing Projects Into Workspace.
1. If you haven't already, install the Android NDK (http://developer.android.com/tools/sdk/ndk/index.html)
2. - Choose "Select root directory", and also check "Search for nested projects"
2. In the Phoenix root directory you should notice the folder named "jni".
3. - Browse to the location of the folder named "phoenix" in the RetroArch repository and select it as the root dir. (as of writing, it is /android/phoenix).
3. Open Command Prompt/Terminal and cd into this directory.
4. - You should see two projects have been found, "RetroArch" and "android-support-v7-appcompat". Import both of these.
4. Run ndk-build within this directory (just type "ndk-build" and hit Enter) and wait for everything to finish building.
5. - Let Eclipse finish building the workspace, or whatever.
5. All built libraries should now reside within the "libs" directory.
6. - You should now be able to build it normally like any application.
6. Continue to the next section of this document.
## How to import the project into Eclipse and build the front-end:
1. Install the Android ADT plugin for Eclipse if you haven't. (http://developer.android.com/sdk/installing/installing-adt.html)
2. In Eclipse, do: File->Import->Existing Android Code Into Workspace.
3. Browse to the location of the folder named "phoenix" in the RetroArch repository and select it as the root dir. (as of writing, it is /android/phoenix).
4. You should see two projects have been found, "RetroArch" and "android-support-v7-appcompat". Import both of these.
5. Let Eclipse finish building the workspace, or whatever.
6. You should now be able to build it normally like any application.