From 57911fca4a7179677174cea7449af9687232e473 Mon Sep 17 00:00:00 2001 From: loki666 Date: Thu, 16 Feb 2017 18:13:10 +0100 Subject: add android build files --- android/.gitignore | 2 ++ android/Android.mk | 9 +++++++++ android/jni/Android.mk | 17 +++++++++++++++++ android/jni/Application.mk | 8 ++++++++ android/project.properties | 11 +++++++++++ 5 files changed, 47 insertions(+) create mode 100644 android/.gitignore create mode 100644 android/Android.mk create mode 100644 android/jni/Android.mk create mode 100644 android/jni/Application.mk create mode 100644 android/project.properties (limited to 'android') 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 -- cgit v1.2.3