initial commit for android

This commit is contained in:
Théophyl Hoguet committed 2022-03-20 05:18:51 +01:00
1 parent 459b66b955
commit a553a86f1a
26 files changed
+1838 -1

No files matched your search

+6 -1
View File
@@ -1,4 +1,9 @@
build/
.vscode/
*.txt
!CMakeLists.txt
!CMakeLists.txt
android/bin/*
android/jni/SDL*
android/libs/*
android/obj/*
android/gen/*
+35
View File
@@ -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>
+1
View File
@@ -0,0 +1 @@
../../assets/arial.ttf
+1
View File
@@ -0,0 +1 @@
../../assets/lightbulb_red.png
+1
View File
@@ -0,0 +1 @@
../../assets/lightbulb_white.png
+1
View File
@@ -0,0 +1 @@
../../assets/redo_down.png
+1
View File
@@ -0,0 +1 @@
../../assets/redo_up.png
+1
View File
@@ -0,0 +1 @@
../../assets/restart_down.png
+1
View File
@@ -0,0 +1 @@
../../assets/restart_up.png
+1
View File
@@ -0,0 +1 @@
../../assets/solve_down.png
+1
View File
@@ -0,0 +1 @@
../../assets/solve_up.png
+1
View File
@@ -0,0 +1 @@
../../assets/undo_down.png
+1
View File
@@ -0,0 +1 @@
../../assets/undo_up.png
+11
View File
@@ -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>
+1
View File
@@ -0,0 +1 @@
include $(call all-subdir-makefiles)
+3
View File
@@ -0,0 +1,3 @@
APP_ABI := x86 armeabi-v7a
APP_PLATFORM := android-23
+21
View File
@@ -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)
+1
View File
@@ -0,0 +1 @@
../../../game.c
+1
View File
@@ -0,0 +1 @@
../../../game_aux.c
+1
View File
@@ -0,0 +1 @@
../../../game_ext.c
+1
View File
@@ -0,0 +1 @@
../../../game_private.c
+1
View File
@@ -0,0 +1 @@
../../../game_tools.c
+1
View File
@@ -0,0 +1 @@
../../../history.c
+1
View File
@@ -0,0 +1 @@
../../../main.c
+1
View File
@@ -0,0 +1 @@
../../../model.c
File diff suppressed because it is too large. Load diff