LOCAL_PATH := $( call my-dir) /../../cpp/src
i n c l u d e $( CLEAR_VARS )
LOCAL_MODULE := synth
LOCAL_CPP_EXTENSION := .cc
LOCAL_SRC_FILES := android_glue.cc \
dx7note.cc \
env.cc \
exp2.cc \
fir.cc \
fm_core.cc \
fm_op_kernel.cc \
freqlut.cc \
lfo.cc \
patch.cc \
pitchenv.cc \
resofilter.cc \
ringbuffer.cc \
sawtooth.cc \
sin.cc \
synth_unit.cc
i f e q ( $( TARGET_ARCH_ABI ) , a r m e a b i - v 7 a )
LOCAL_ARM_NEON := true
LOCAL_CFLAGS := -DHAVE_NEON= 1
LOCAL_SRC_FILES += neon_fm_kernel.s \
neon_ladder.s \
neon_fir.s
e n d i f
# for native audio
LOCAL_LDLIBS += -lOpenSLES
# for logging
LOCAL_LDLIBS += -llog
LOCAL_STATIC_LIBRARIES += cpufeatures
LOCAL_CFLAGS += -O3
i n c l u d e $( BUILD_SHARED_LIBRARY )
i n c l u d e $( CLEAR_VARS )
LOCAL_SRC_FILES := test_neon.cc \
resofilter.cc
i f e q ( $( TARGET_ARCH_ABI ) , a r m e a b i - v 7 a )
LOCAL_ARM_NEON := true
LOCAL_CFLAGS := -DHAVE_NEON= 1
LOCAL_SRC_FILES += neon_fm_kernel.s \
neon_ladder.s \
neon_fir.s
e n d i f
LOCAL_CFLAGS += -O3
LOCAL_STATIC_LIBRARIES += cpufeatures
LOCAL_MODULE := test_neon
i n c l u d e $( BUILD_EXECUTABLE )
i n c l u d e $( CLEAR_VARS )
LOCAL_SRC_FILES := test_fir.cc \
fir.cc
i f e q ( $( TARGET_ARCH_ABI ) , a r m e a b i - v 7 a )
LOCAL_ARM_NEON := true
LOCAL_CFLAGS := -DHAVE_NEON= 1
LOCAL_SRC_FILES += neon_fir.s
e n d i f
LOCAL_CFLAGS += -O3
LOCAL_STATIC_LIBRARIES += cpufeatures
LOCAL_MODULE := test_fir
i n c l u d e $( BUILD_EXECUTABLE )
$( call import -module ,android /cpufeatures )