1LOCAL_PATH := $(call my-dir) 2include $(CLEAR_VARS) 3 4LOCAL_SRC_FILES = \ 5 lib_src/eas_chorus.c \ 6 lib_src/eas_chorusdata.c \ 7 lib_src/eas_data.c \ 8 lib_src/eas_dlssynth.c \ 9 lib_src/eas_flog.c \ 10 lib_src/eas_ima_tables.c \ 11 lib_src/eas_imaadpcm.c \ 12 lib_src/eas_imelody.c \ 13 lib_src/eas_imelodydata.c \ 14 lib_src/eas_math.c \ 15 lib_src/eas_mdls.c \ 16 lib_src/eas_midi.c \ 17 lib_src/eas_mididata.c \ 18 lib_src/eas_mixbuf.c \ 19 lib_src/eas_mixer.c \ 20 lib_src/eas_ota.c \ 21 lib_src/eas_otadata.c \ 22 lib_src/eas_pan.c \ 23 lib_src/eas_pcm.c \ 24 lib_src/eas_pcmdata.c \ 25 lib_src/eas_public.c \ 26 lib_src/eas_reverb.c \ 27 lib_src/eas_reverbdata.c \ 28 lib_src/eas_rtttl.c \ 29 lib_src/eas_rtttldata.c \ 30 lib_src/eas_smf.c \ 31 lib_src/eas_smfdata.c \ 32 lib_src/eas_voicemgt.c \ 33 lib_src/eas_wtengine.c \ 34 lib_src/eas_wtsynth.c \ 35 lib_src/eas_xmf.c \ 36 lib_src/eas_xmfdata.c \ 37 lib_src/wt_22khz.c \ 38 lib_src/jet.c \ 39 host_src/eas_config.c \ 40 host_src/eas_hostmm.c \ 41 host_src/eas_report.c 42 43# not using these modules 44# host_src/eas_main.c \ 45# host_src/eas_wave.c \ 46# lib_src/eas_wavefile.c \ 47# lib_src/eas_wavefiledata.c \ 48 49LOCAL_CFLAGS+= -O2 -D UNIFIED_DEBUG_MESSAGES -D EAS_WT_SYNTH \ 50 -D _IMELODY_PARSER -D _RTTTL_PARSER -D _OTA_PARSER \ 51 -D _XMF_PARSER -D NUM_OUTPUT_CHANNELS=2 \ 52 -D _SAMPLE_RATE_22050 -D MAX_SYNTH_VOICES=64 \ 53 -D _8_BIT_SAMPLES -D _FILTER_ENABLED \ 54 -D DLS_SYNTHESIZER \ 55 -D _REVERB_ENABLED 56 57# not using these options 58# -D _WAVE_PARSER 59# -D _IMA_DECODER (needed for IMA-ADPCM wave files) 60# -D _CHORUS_ENABLED 61 62LOCAL_C_INCLUDES:= \ 63 $(LOCAL_PATH)/host_src \ 64 $(LOCAL_PATH)/lib_src 65 66LOCAL_ARM_MODE := arm 67 68LOCAL_MODULE := libsonivox 69 70LOCAL_COPY_HEADERS_TO := libsonivox 71LOCAL_COPY_HEADERS := \ 72 host_src/eas.h \ 73 host_src/eas_types.h \ 74 host_src/eas_reverb.h \ 75 host_src/jet.h 76 77ifeq ($(TARGET_ARCH),arm) 78LOCAL_SRC_FILES+= \ 79 lib_src/ARM-E_filter_gnu.s \ 80 lib_src/ARM-E_interpolate_loop_gnu.s \ 81 lib_src/ARM-E_interpolate_noloop_gnu.s \ 82 lib_src/ARM-E_mastergain_gnu.s \ 83 lib_src/ARM-E_voice_gain_gnu.s 84 85asm_flags := \ 86 -I $(LOCAL_PATH)/lib_src \ 87 --defsym SAMPLE_RATE_22050=1 \ 88 --defsym STEREO_OUTPUT=1 \ 89 --defsym FILTER_ENABLED=1 \ 90 --defsym SAMPLES_8_BIT=1 91 92LOCAL_ASFLAGS := \ 93 $(foreach f,$(asm_flags),-Wa,"$(f)") 94 95# .s files not ported for Clang assembler yet. 96LOCAL_CLANG_ASFLAGS += -no-integrated-as 97 98asm_flags := 99 100LOCAL_CFLAGS += -D NATIVE_EAS_KERNEL 101 102LOCAL_COPY_HEADERS += lib_src/ARM_synth_constants_gnu.inc 103endif 104 105LOCAL_SHARED_LIBRARIES := \ 106 libutils libcutils 107 108include $(BUILD_SHARED_LIBRARY) 109