Andreas Huber | 250f243 | 2009-12-07 14:22:35 -0800 | [diff] [blame] | 1 | LOCAL_PATH:= $(call my-dir) |
| 2 | include $(CLEAR_VARS) |
| 3 | |
| 4 | LOCAL_SRC_FILES := \ |
Andreas Huber | 250f243 | 2009-12-07 14:22:35 -0800 | [diff] [blame] | 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 \ |
Andreas Huber | 250f243 | 2009-12-07 14:22:35 -0800 | [diff] [blame] | 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 |
Andreas Huber | 7c55c3f | 2009-12-08 10:07:22 -0800 | [diff] [blame] | 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 |
Andreas Huber | 250f243 | 2009-12-07 14:22:35 -0800 | [diff] [blame] | 43 | endif |
| 44 | |
| 45 | LOCAL_C_INCLUDES := \ |
| 46 | frameworks/base/media/libstagefright/include \ |
| 47 | $(LOCAL_PATH)/src \ |
| 48 | $(LOCAL_PATH)/include |
| 49 | |
| 50 | LOCAL_CFLAGS := \ |
| 51 | -DOSCL_UNUSED_ARG= |
| 52 | |
Andreas Huber | 250f243 | 2009-12-07 14:22:35 -0800 | [diff] [blame] | 53 | LOCAL_MODULE := libstagefright_mp3dec |
| 54 | |
James Wylder | d285415 | 2010-11-11 16:09:45 -0600 | [diff] [blame] | 55 | LOCAL_ARM_MODE := arm |
| 56 | |
Andreas Huber | 250f243 | 2009-12-07 14:22:35 -0800 | [diff] [blame] | 57 | include $(BUILD_STATIC_LIBRARY) |
| 58 | |
Andreas Huber | 4b3913a | 2011-05-11 14:13:42 -0700 | [diff] [blame] | 59 | ################################################################################ |
| 60 | |
| 61 | include $(CLEAR_VARS) |
| 62 | |
| 63 | LOCAL_SRC_FILES := \ |
| 64 | SoftMP3.cpp |
| 65 | |
| 66 | LOCAL_C_INCLUDES := \ |
| 67 | frameworks/base/media/libstagefright/include \ |
| 68 | frameworks/base/include/media/stagefright/openmax \ |
| 69 | $(LOCAL_PATH)/src \ |
| 70 | $(LOCAL_PATH)/include |
| 71 | |
| 72 | LOCAL_SHARED_LIBRARIES := \ |
| 73 | libstagefright libstagefright_omx libstagefright_foundation libutils |
| 74 | |
| 75 | LOCAL_STATIC_LIBRARIES := \ |
| 76 | libstagefright_mp3dec |
| 77 | |
| 78 | LOCAL_MODULE := libstagefright_soft_mp3dec |
Andreas Huber | 6521ec7 | 2011-05-16 09:41:06 -0700 | [diff] [blame] | 79 | LOCAL_MODULE_TAGS := optional |
Andreas Huber | 4b3913a | 2011-05-11 14:13:42 -0700 | [diff] [blame] | 80 | |
| 81 | include $(BUILD_SHARED_LIBRARY) |