mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-11-15 00:41:41 +00:00
daa037b0d3
This set of changes implements audio drivers for Android, OpenSLES and Oboe. The changes in the original sources are kept minimal so that it should be easily maintained.
44 lines
1 KiB
Makefile
44 lines
1 KiB
Makefile
LOCAL_PATH := $(call my-dir)
|
|
TARGET_PLATFORM := android-27
|
|
|
|
GLIB_LIB = ../dep/$(APP_ABI)/
|
|
|
|
include $(CLEAR_VARS)
|
|
LOCAL_MODULE := glib-2.0
|
|
LOCAL_SRC_FILES := $(GLIB_LIB)/libglib-2.0.a
|
|
include $(PREBUILT_STATIC_LIBRARY)
|
|
|
|
include $(CLEAR_VARS)
|
|
LOCAL_MODULE := iconv
|
|
LOCAL_SRC_FILES := $(GLIB_LIB)/libiconv.a
|
|
include $(PREBUILT_STATIC_LIBRARY)
|
|
|
|
include $(CLEAR_VARS)
|
|
LOCAL_MODULE := intl
|
|
LOCAL_SRC_FILES := $(GLIB_LIB)/libintl.a
|
|
include $(PREBUILT_STATIC_LIBRARY)
|
|
|
|
include $(CLEAR_VARS)
|
|
LOCAL_MODULE := oboe
|
|
LOCAL_SRC_FILES := $(GLIB_LIB)/liboboe.a
|
|
include $(PREBUILT_STATIC_LIBRARY)
|
|
|
|
include $(CLEAR_VARS)
|
|
LOCAL_MODULE := fluidsynth_static
|
|
LOCAL_SRC_FILES := ../dep/$(APP_ABI)/libfluidsynth.a
|
|
include $(PREBUILT_STATIC_LIBRARY)
|
|
|
|
LOCAL_MODULE := fluidsynth
|
|
|
|
ifeq ($(NDK_DEBUG),1)
|
|
cmd-strip :=
|
|
endif
|
|
|
|
LOCAL_STATIC_LIBRARIES := glib-2.0 iconv intl oboe
|
|
|
|
LOCAL_WHOLE_STATIC_LIBRARIES := fluidsynth_static
|
|
|
|
LOCAL_LDLIBS := -lc -lOpenSLES -ldl -llog -landroid -L$(LOCAL_PATH)/../dist/$(APP_ABI) -loboe-c
|
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
|
|