mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 21:32:45 +00:00
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:
commit
fc105c919b
@ -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.
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user