diff --git a/android/phoenix/docs/Building in Eclipse.md b/android/phoenix/docs/Building in Eclipse.md index 6a5a0be18f..460b463898 100644 --- a/android/phoenix/docs/Building in Eclipse.md +++ b/android/phoenix/docs/Building in Eclipse.md @@ -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. Open Eclipse, do: File->Import->Existing Projects Into Workspace. + + 2. Choose "Select root directory", and also check "Search for nested projects" + + 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.