LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_SRC_FILES = \
lib_src/eas_chorus.c \
lib_src/eas_chorusdata.c \
lib_src/eas_data.c \
lib_src/eas_fmengine.c \
lib_src/eas_fmsynth.c \
lib_src/eas_fmtables.c \
lib_src/eas_ima_tables.c \
lib_src/eas_imaadpcm.c \
lib_src/eas_imelody.c \
lib_src/eas_imelodydata.c \
lib_src/eas_math.c \
lib_src/eas_midi.c \
lib_src/eas_mididata.c \
lib_src/eas_mixbuf.c \
lib_src/eas_mixer.c \
lib_src/eas_ota.c \
lib_src/eas_otadata.c \
lib_src/eas_pan.c \
lib_src/eas_pcm.c \
lib_src/eas_pcmdata.c \
lib_src/eas_public.c \
lib_src/eas_reverb.c \
lib_src/eas_reverbdata.c \
lib_src/eas_rtttl.c \
lib_src/eas_rtttldata.c \
lib_src/eas_smf.c \
lib_src/eas_smfdata.c \
lib_src/eas_voicemgt.c \
lib_src/eas_wavefile.c \
lib_src/eas_wavefiledata.c \
lib_src/eas_wtengine.c \
lib_src/eas_wtsynth.c \
lib_src/hybrid_22khz_mcu.c \
host_src/eas_config.c \
host_src/eas_hostmm.c \
host_src/eas_main.c \
host_src/eas_report.c \
host_src/eas_wave.c
LOCAL_CFLAGS+= -O2 -D UNIFIED_DEBUG_MESSAGES -D EAS_HYBRID_SYNTH \
-D _IMELODY_PARSER -D _RTTTL_PARSER -D _OTA_PARSER \
-D _WAVE_PARSER -D _REVERB_ENABLED \
-D _CHORUS_ENABLED -D NUM_OUTPUT_CHANNELS=2 \
-D _SAMPLE_RATE_22050 -D MAX_SYNTH_VOICES=32 \
-D NUM_PRIMARY_VOICES=8 \
-D _8_BIT_SAMPLES -D _FILTER_ENABLED -D _IMELODY_PARSER \
-D _IMA_DECODER
LOCAL_C_INCLUDES:= \
$(LOCAL_PATH)/host_src/ \
$(LOCAL_PATH)/lib_src/
LOCAL_ARM_MODE := arm
LOCAL_MODULE := libsonivox
LOCAL_COPY_HEADERS_TO := libsonivox
LOCAL_COPY_HEADERS := \
host_src/eas.h \
host_src/eas_types.h
include $(BUILD_SHARED_LIBRARY)