diff options
Diffstat (limited to 'jni/OpenAL.mk')
-rw-r--r-- | jni/OpenAL.mk | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/jni/OpenAL.mk b/jni/OpenAL.mk new file mode 100644 index 0000000..dfd6162 --- /dev/null +++ b/jni/OpenAL.mk @@ -0,0 +1,39 @@ +include $(CLEAR_VARS) + +ifeq ($(TARGET_ARCH_ABI),armeabi) + # ARMv5, used fixed point math + LOCAL_CFLAGS += -DOPENAL_FIXED_POINT -DOPENAL_FIXED_POINT_SHIFT=16 +endif + +LOCAL_MODULE := OpenAL +MAX_SOURCES_LOW ?= 4 +MAX_SOURCES_START ?= 8 +MAX_SOURCES_HIGH ?= 64 +LOCAL_CFLAGS += -DMAX_SOURCES_LOW=$(MAX_SOURCES_LOW) -DMAX_SOURCES_START=$(MAX_SOURCES_START) -DMAX_SOURCES_HIGH=$(MAX_SOURCES_HIGH) -DAL_ALEXT_PROTOTYPES -DANDROID -DHAVE_GCC_VISIBLITY -DPOST_FROYO +LOCAL_C_INCLUDES := jni/OpenAL/include jni/OpenAL jni/OpenAL/al jni/OpenAL/alc jni/OpenAL/common +LOCAL_EXPORT_C_INCLUDES := $(LOCAL_C_INCLUDES) jni/OpenAL/include jni/OpenAL/include/AL +LOCAL_SRC_FILES := $(wildcard jni/OpenAL/al/*.cpp jni/OpenAL/common/*.cpp jni/OpenAL/alc/*.cpp jni/OpenAL/alc/filters/*.cpp \ + jni/OpenAL/alc/effects/*.cpp) jni/OpenAL/alc/mixer/mixer_c.cpp jni/OpenAL/alc/mixer/mixer_neon.cpp \ + jni/OpenAL/alc/backends/base.cpp jni/OpenAL/alc/backends/opensl.cpp jni/OpenAL/alc/backends/loopback.cpp \ + jni/OpenAL/alc/backends/null.cpp + +jni/OpenAL/native-tools/bsincgen: + cc $@.c -o $@ + +jni/OpenAL/native-tools/bin2h: + cc $@.c -o $@ + +jni/OpenAL/bsinc_inc.h: | jni/OpenAL/native-tools/bsincgen + $| $@ + +jni/OpenAL/hrtf_default.h: jni/OpenAL/hrtf/Default\ HRTF.mhr | jni/OpenAL/native-tools/bin2h + $| "$<" $@ hrtf_default + +jni/OpenAL/config.h: jni/OpenAL.config.h + cp $< $@ + +jni/OpenAL/version.h: jni/OpenAL/version.h.in + sed 's/$${LIB_VERSION}/1/;s/$${LIB_VERSION_NUM}/1,20,1,0/;s/$${GIT_BRANCH}/master/;s/${GIT_COMMIT_HASH}/nosha/' $^ > $@ + +mkxp: jni/OpenAL/config.h jni/OpenAL/version.h jni/OpenAL/bsinc_inc.h jni/OpenAL/hrtf_default.h +include $(BUILD_STATIC_LIBRARY) |