diff options
| author | Michal Idziorek <m.i@gmx.at> | 2017-09-27 12:48:05 +0200 |
|---|---|---|
| committer | Michal Idziorek <m.i@gmx.at> | 2017-09-27 12:48:05 +0200 |
| commit | 7d0068c6d2055edec21c883bbfb31d91846688e6 (patch) | |
| tree | ab28bf65103682e43074ca85dafbc830b207889a /android/app/jni | |
| parent | 44cf354f43953fff2fe34c2888b57db5adc18a4b (diff) | |
experimenting with gradle build automation for android
Diffstat (limited to 'android/app/jni')
| -rw-r--r-- | android/app/jni/Android.mk | 1 | ||||
| -rw-r--r-- | android/app/jni/Application.mk | 10 | ||||
| l--------- | android/app/jni/SDL | 1 | ||||
| -rw-r--r-- | android/app/jni/src/Android.mk | 18 | ||||
| -rw-r--r-- | android/app/jni/src/Android_static.mk | 12 |
5 files changed, 42 insertions, 0 deletions
diff --git a/android/app/jni/Android.mk b/android/app/jni/Android.mk new file mode 100644 index 0000000..5053e7d --- /dev/null +++ b/android/app/jni/Android.mk @@ -0,0 +1 @@ +include $(call all-subdir-makefiles) diff --git a/android/app/jni/Application.mk b/android/app/jni/Application.mk new file mode 100644 index 0000000..5ea0fb4 --- /dev/null +++ b/android/app/jni/Application.mk @@ -0,0 +1,10 @@ + +# Uncomment this if you're using STL in your project +# See CPLUSPLUS-SUPPORT.html in the NDK documentation for more information +# APP_STL := stlport_static + +APP_ABI := armeabi armeabi-v7a x86 + +# Min SDK level +APP_PLATFORM=android-10 + diff --git a/android/app/jni/SDL b/android/app/jni/SDL new file mode 120000 index 0000000..544ecd2 --- /dev/null +++ b/android/app/jni/SDL @@ -0,0 +1 @@ +/home/retard/SDL2-2.0.6
\ No newline at end of file diff --git a/android/app/jni/src/Android.mk b/android/app/jni/src/Android.mk new file mode 100644 index 0000000..1adcb6e --- /dev/null +++ b/android/app/jni/src/Android.mk @@ -0,0 +1,18 @@ +LOCAL_PATH := $(call my-dir) + +include $(CLEAR_VARS) + +LOCAL_MODULE := main + +SDL_PATH := ../SDL + +LOCAL_C_INCLUDES := $(LOCAL_PATH)/$(SDL_PATH)/include + +# Add your application source files here... +LOCAL_SRC_FILES := YourSourceHere.c + +LOCAL_SHARED_LIBRARIES := SDL2 + +LOCAL_LDLIBS := -lGLESv1_CM -lGLESv2 -llog + +include $(BUILD_SHARED_LIBRARY) diff --git a/android/app/jni/src/Android_static.mk b/android/app/jni/src/Android_static.mk new file mode 100644 index 0000000..faed669 --- /dev/null +++ b/android/app/jni/src/Android_static.mk @@ -0,0 +1,12 @@ +LOCAL_PATH := $(call my-dir) + +include $(CLEAR_VARS) + +LOCAL_MODULE := main + +LOCAL_SRC_FILES := YourSourceHere.c + +LOCAL_STATIC_LIBRARIES := SDL2_static + +include $(BUILD_SHARED_LIBRARY) +$(call import-module,SDL)LOCAL_PATH := $(call my-dir) |
