Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libSDL
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
libSDL
Commits
6000ffe2
Commit
6000ffe2
authored
Jan 07, 2011
by
Sam Lantinga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added some more information on how the port works
parent
ca871fdc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
README.android
README.android
+13
-2
No files found.
README.android
View file @
6000ffe2
...
@@ -10,6 +10,7 @@ http://developer.android.com/sdk/index.html
...
@@ -10,6 +10,7 @@ http://developer.android.com/sdk/index.html
Android NDK r4 or later
Android NDK r4 or later
http://developer.android.com/sdk/ndk/index.html
http://developer.android.com/sdk/ndk/index.html
================================================================================
================================================================================
How the port works
How the port works
================================================================================
================================================================================
...
@@ -21,6 +22,16 @@ the SDL library
...
@@ -21,6 +22,16 @@ the SDL library
Java project, along with some C support code that communicates with Java
Java project, along with some C support code that communicates with Java
- This eventually produces a standard Android .apk package
- This eventually produces a standard Android .apk package
The Android Java code implements an "activity" and can be found in:
android-project/src/org/libsdl/app/SDLActivity.java
The Java code loads your game code, the SDL shared library, and
dispatches to native functions implemented in the SDL library:
src/SDL_android.cpp
Your project must include some glue code that starts your main() routine:
src/main/android/SDL_android_main.cpp
================================================================================
================================================================================
Building an app
Building an app
...
@@ -48,11 +59,11 @@ android-project/
...
@@ -48,11 +59,11 @@ android-project/
build.xml - build description file, used by ant
build.xml - build description file, used by ant
default.properties - holds the ABI for the application, currently android-4 which corresponds to the Android 1.6 system image
default.properties - holds the ABI for the application, currently android-4 which corresponds to the Android 1.6 system image
local.properties - holds the SDK path, you should change this to the path to your SDK
local.properties - holds the SDK path, you should change this to the path to your SDK
jni/ - directory holding native code
and Android.mk
jni/ - directory holding native code
jni/Android.mk - Android makefile that includes all subdirectories
jni/Android.mk - Android makefile that includes all subdirectories
jni/SDL/ - directory holding the SDL library files
jni/SDL/ - directory holding the SDL library files
jni/SDL/Android.mk - Android makefile for creating the SDL shared library
jni/SDL/Android.mk - Android makefile for creating the SDL shared library
jni/src/ - directory holding your
application
source
jni/src/ - directory holding your
C/C++
source
jni/src/Android.mk - Android makefile that you should customize to include your source code and any library references
jni/src/Android.mk - Android makefile that you should customize to include your source code and any library references
res/ - directory holding resources for your application
res/ - directory holding resources for your application
res/drawable-* - directories holding icons for different phone hardware
res/drawable-* - directories holding icons for different phone hardware
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment