blob: dfd6162e4dfd4c0312c63f83ac22fc99a9da4a4e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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)
|