diff options
author | loki666 <simons.philippe@gmail.com> | 2017-02-16 18:13:10 +0100 |
---|---|---|
committer | loki666 <simons.philippe@gmail.com> | 2017-02-16 18:13:10 +0100 |
commit | 57911fca4a7179677174cea7449af9687232e473 (patch) | |
tree | d9ef7d0643637faebe9f4b06f98b5418015ff4c3 /android | |
parent | 687541e61b381b57d609d0c7da7882792bd02478 (diff) | |
download | libADLMIDI-57911fca4a7179677174cea7449af9687232e473.tar.gz libADLMIDI-57911fca4a7179677174cea7449af9687232e473.tar.bz2 libADLMIDI-57911fca4a7179677174cea7449af9687232e473.zip |
add android build files
Diffstat (limited to 'android')
-rw-r--r-- | android/.gitignore | 2 | ||||
-rw-r--r-- | android/Android.mk | 9 | ||||
-rw-r--r-- | android/jni/Android.mk | 17 | ||||
-rw-r--r-- | android/jni/Application.mk | 8 | ||||
-rw-r--r-- | android/project.properties | 11 |
5 files changed, 47 insertions, 0 deletions
diff --git a/android/.gitignore b/android/.gitignore new file mode 100644 index 0000000..e0c35b9 --- /dev/null +++ b/android/.gitignore @@ -0,0 +1,2 @@ +obj/ +libs/ diff --git a/android/Android.mk b/android/Android.mk new file mode 100644 index 0000000..d379b3c --- /dev/null +++ b/android/Android.mk @@ -0,0 +1,9 @@ +LOCAL_PATH := $(call my-dir) + +include $(CLEAR_VARS) +LOCAL_MODULE := adlmidi_shared +LOCAL_SRC_FILES := libs/$(TARGET_ARCH_ABI)/libADLMIDI.so +LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../src +TARGET_PLATFORM = android-10 + +include $(PREBUILT_SHARED_LIBRARY) diff --git a/android/jni/Android.mk b/android/jni/Android.mk new file mode 100644 index 0000000..92ef9a4 --- /dev/null +++ b/android/jni/Android.mk @@ -0,0 +1,17 @@ +LOCAL_PATH := $(call my-dir)/../.. +include $(CLEAR_VARS) + +LOCAL_MODULE := ADLMIDI + +LOCAL_C_INCLUDES := \ + $(LOCAL_PATH)/src + +LOCAL_ARM_MODE := arm +LOCAL_CPP_FEATURES := exceptions +LOCAL_LDLIBS := -llog +LOCAL_SRC_FILES := src/adldata.cpp src/adlmidi.cpp src/dbopl.cpp src/nukedopl3.c \ + src/adlmidi_load.cpp src/adlmidi_midiplay.cpp \ + src/adlmidi_opl3.cpp src/adlmidi_private.cpp \ + src/adlmidi_xmi2mid.c src/adlmidi_mus2mid.c + +include $(BUILD_SHARED_LIBRARY) diff --git a/android/jni/Application.mk b/android/jni/Application.mk new file mode 100644 index 0000000..40ce33a --- /dev/null +++ b/android/jni/Application.mk @@ -0,0 +1,8 @@ +APP_ABI := armeabi-v7a arm64-v8a x86 x86_64 +APP_MODULES := ADLMIDI +APP_PLATFORM := android-10 +APP_OPTIM := release +APP_CPPFLAGS += -std=c++11 +APP_STL := c++_static +APP_CFLAGS := -Ofast +NDK_TOOLCHAIN_VERSION := 4.9 diff --git a/android/project.properties b/android/project.properties new file mode 100644 index 0000000..f049142 --- /dev/null +++ b/android/project.properties @@ -0,0 +1,11 @@ +# This file is automatically generated by Android Tools. +# Do not modify this file -- YOUR CHANGES WILL BE ERASED! +# +# This file must be checked in Version Control Systems. +# +# To customize properties used by the Ant build system use, +# "ant.properties", and override values to adapt the script to your +# project structure. + +# Project target. +target=android-10 |