1 LOCAL_PATH:= $(call my-dir) 2 include $(CLEAR_VARS) 3 4 LOCAL_SRC_FILES := \ 5 src/pvmp3_normalize.cpp \ 6 src/pvmp3_alias_reduction.cpp \ 7 src/pvmp3_crc.cpp \ 8 src/pvmp3_decode_header.cpp \ 9 src/pvmp3_decode_huff_cw.cpp \ 10 src/pvmp3_getbits.cpp \ 11 src/pvmp3_dequantize_sample.cpp \ 12 src/pvmp3_framedecoder.cpp \ 13 src/pvmp3_get_main_data_size.cpp \ 14 src/pvmp3_get_side_info.cpp \ 15 src/pvmp3_get_scale_factors.cpp \ 16 src/pvmp3_mpeg2_get_scale_data.cpp \ 17 src/pvmp3_mpeg2_get_scale_factors.cpp \ 18 src/pvmp3_mpeg2_stereo_proc.cpp \ 19 src/pvmp3_huffman_decoding.cpp \ 20 src/pvmp3_huffman_parsing.cpp \ 21 src/pvmp3_tables.cpp \ 22 src/pvmp3_imdct_synth.cpp \ 23 src/pvmp3_mdct_6.cpp \ 24 src/pvmp3_dct_6.cpp \ 25 src/pvmp3_poly_phase_synthesis.cpp \ 26 src/pvmp3_equalizer.cpp \ 27 src/pvmp3_seek_synch.cpp \ 28 src/pvmp3_stereo_proc.cpp \ 29 src/pvmp3_reorder.cpp \ 30 31 ifeq ($(TARGET_ARCH),arm) 32 LOCAL_SRC_FILES += \ 33 src/asm/pvmp3_polyphase_filter_window_gcc.s \ 34 src/asm/pvmp3_mdct_18_gcc.s \ 35 src/asm/pvmp3_dct_9_gcc.s \ 36 src/asm/pvmp3_dct_16_gcc.s 37 else 38 LOCAL_SRC_FILES += \ 39 src/pvmp3_polyphase_filter_window.cpp \ 40 src/pvmp3_mdct_18.cpp \ 41 src/pvmp3_dct_9.cpp \ 42 src/pvmp3_dct_16.cpp 43 endif 44 45 LOCAL_C_INCLUDES := \ 46 frameworks/av/media/libstagefright/include \ 47 $(LOCAL_PATH)/src \ 48 $(LOCAL_PATH)/include 49 50 LOCAL_CFLAGS := \ 51 -DOSCL_UNUSED_ARG= 52 53 LOCAL_CFLAGS += -Werror 54 55 LOCAL_MODULE := libstagefright_mp3dec 56 57 LOCAL_ARM_MODE := arm 58 59 include $(BUILD_STATIC_LIBRARY) 60 61 ################################################################################ 62 63 include $(CLEAR_VARS) 64 65 LOCAL_SRC_FILES := \ 66 SoftMP3.cpp 67 68 LOCAL_C_INCLUDES := \ 69 frameworks/av/media/libstagefright/include \ 70 frameworks/native/include/media/openmax \ 71 $(LOCAL_PATH)/src \ 72 $(LOCAL_PATH)/include 73 74 LOCAL_CFLAGS += -Werror 75 76 LOCAL_SHARED_LIBRARIES := \ 77 libstagefright libstagefright_omx libstagefright_foundation libutils liblog 78 79 LOCAL_STATIC_LIBRARIES := \ 80 libstagefright_mp3dec 81 82 LOCAL_MODULE := libstagefright_soft_mp3dec 83 LOCAL_MODULE_TAGS := optional 84 85 include $(BUILD_SHARED_LIBRARY) 86