initial commit for android
This commit is contained in:
1 parent
459b66b955
commit
a553a86f1a
26 files changed
+1838
-1
No files matched your search
+6
-1
@@ -1,4 +1,9 @@
|
||||
build/
|
||||
.vscode/
|
||||
*.txt
|
||||
!CMakeLists.txt
|
||||
!CMakeLists.txt
|
||||
android/bin/*
|
||||
android/jni/SDL*
|
||||
android/libs/*
|
||||
android/obj/*
|
||||
android/gen/*
|
||||
@@ -0,0 +1,35 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="org.libsdl.app"
|
||||
android:versionCode="1"
|
||||
android:versionName="1.0"
|
||||
android:installLocation="auto">
|
||||
|
||||
<uses-sdk android:minSdkVersion="23" android:targetSdkVersion="23" />
|
||||
|
||||
<!-- OpenGL ES 2.0 -->
|
||||
<uses-feature android:glEsVersion="0x00020000" />
|
||||
|
||||
<!-- Allow writing to external storage -->
|
||||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
|
||||
|
||||
<application android:label="SDL2 Demo"
|
||||
android:icon="@drawable/icon"
|
||||
android:allowBackup="true"
|
||||
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
|
||||
android:hardwareAccelerated="true" >
|
||||
|
||||
<activity android:name="SDLActivity"
|
||||
android:configChanges="keyboardHidden|orientation">
|
||||
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
|
||||
</activity>
|
||||
|
||||
</application>
|
||||
|
||||
</manifest>
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../assets/arial.ttf
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../assets/lightbulb_red.png
|
||||
+1
@@ -0,0 +1 @@
|
||||
../../assets/lightbulb_white.png
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../assets/redo_down.png
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../assets/redo_up.png
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../assets/restart_down.png
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../assets/restart_up.png
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../assets/solve_down.png
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../assets/solve_up.png
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../assets/undo_down.png
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../assets/undo_up.png
|
||||
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project name="sdl2-demo" default="help">
|
||||
|
||||
<property name="target" value="android-23" />
|
||||
|
||||
<property environment="env" />
|
||||
<property name="sdk.dir" value="${env.ANDROID_HOME}" />
|
||||
|
||||
<import file="${sdk.dir}/tools/ant/build.xml" />
|
||||
|
||||
</project>
|
||||
@@ -0,0 +1 @@
|
||||
include $(call all-subdir-makefiles)
|
||||
@@ -0,0 +1,3 @@
|
||||
APP_ABI := x86 armeabi-v7a
|
||||
APP_PLATFORM := android-23
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE := main
|
||||
|
||||
SDL_PATH := ../SDL
|
||||
|
||||
LOCAL_CFLAGS += -g -std=c99
|
||||
|
||||
LOCAL_C_INCLUDES := $(LOCAL_PATH)/$(SDL_PATH)/include
|
||||
|
||||
YOUR_SRC_FILES= main.c model.c
|
||||
|
||||
LOCAL_SRC_FILES := $(SDL_PATH)/src/main/android/SDL_android_main.c $(YOUR_SRC_FILES)
|
||||
|
||||
LOCAL_SHARED_LIBRARIES := SDL2 SDL2_ttf SDL2_image
|
||||
|
||||
LOCAL_LDLIBS := -lGLESv1_CM -lGLESv2 -llog -lgame
|
||||
|
||||
include $(BUILD_SHARED_LIBRARY)
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../../game.c
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../../game_aux.c
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../../game_ext.c
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../../game_private.c
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../../game_tools.c
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../../history.c
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../../main.c
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../../model.c
|
||||
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user