James Dong | 17299ab | 2010-05-14 15:45:22 -0700 | [diff] [blame] | 1 | LOCAL_PATH := $(call my-dir) |
| 2 | include $(CLEAR_VARS) |
| 3 | include frameworks/base/media/libstagefright/codecs/common/Config.mk |
| 4 | |
Iliyan Malchev | 3070af0 | 2011-03-14 14:02:13 -0700 | [diff] [blame] | 5 | |
Mans Rullgard | 62a62ef | 2011-04-05 17:40:06 +0300 | [diff] [blame] | 6 | |
James Dong | 17299ab | 2010-05-14 15:45:22 -0700 | [diff] [blame] | 7 | LOCAL_SRC_FILES := \ |
| 8 | AMRWBEncoder.cpp \ |
| 9 | src/autocorr.c \ |
| 10 | src/az_isp.c \ |
| 11 | src/bits.c \ |
| 12 | src/c2t64fx.c \ |
| 13 | src/c4t64fx.c \ |
| 14 | src/convolve.c \ |
| 15 | src/cor_h_x.c \ |
| 16 | src/decim54.c \ |
| 17 | src/deemph.c \ |
| 18 | src/dtx.c \ |
| 19 | src/g_pitch.c \ |
| 20 | src/gpclip.c \ |
| 21 | src/homing.c \ |
| 22 | src/hp400.c \ |
| 23 | src/hp50.c \ |
| 24 | src/hp6k.c \ |
| 25 | src/hp_wsp.c \ |
| 26 | src/int_lpc.c \ |
| 27 | src/isp_az.c \ |
| 28 | src/isp_isf.c \ |
| 29 | src/lag_wind.c \ |
| 30 | src/levinson.c \ |
| 31 | src/log2.c \ |
| 32 | src/lp_dec2.c \ |
| 33 | src/math_op.c \ |
| 34 | src/oper_32b.c \ |
| 35 | src/p_med_ol.c \ |
| 36 | src/pit_shrp.c \ |
| 37 | src/pitch_f4.c \ |
| 38 | src/pred_lt4.c \ |
| 39 | src/preemph.c \ |
| 40 | src/q_gain2.c \ |
| 41 | src/q_pulse.c \ |
| 42 | src/qisf_ns.c \ |
| 43 | src/qpisf_2s.c \ |
| 44 | src/random.c \ |
| 45 | src/residu.c \ |
| 46 | src/scale.c \ |
| 47 | src/stream.c \ |
| 48 | src/syn_filt.c \ |
| 49 | src/updt_tar.c \ |
| 50 | src/util.c \ |
| 51 | src/voAMRWBEnc.c \ |
| 52 | src/voicefac.c \ |
| 53 | src/wb_vad.c \ |
| 54 | src/weight_a.c \ |
| 55 | src/mem_align.c |
| 56 | |
| 57 | |
| 58 | ifeq ($(VOTT), v5) |
| 59 | LOCAL_SRC_FILES += \ |
| 60 | src/asm/ARMV5E/convolve_opt.s \ |
| 61 | src/asm/ARMV5E/cor_h_vec_opt.s \ |
| 62 | src/asm/ARMV5E/Deemph_32_opt.s \ |
| 63 | src/asm/ARMV5E/Dot_p_opt.s \ |
| 64 | src/asm/ARMV5E/Filt_6k_7k_opt.s \ |
| 65 | src/asm/ARMV5E/Norm_Corr_opt.s \ |
| 66 | src/asm/ARMV5E/pred_lt4_1_opt.s \ |
| 67 | src/asm/ARMV5E/residu_asm_opt.s \ |
| 68 | src/asm/ARMV5E/scale_sig_opt.s \ |
| 69 | src/asm/ARMV5E/Syn_filt_32_opt.s \ |
| 70 | src/asm/ARMV5E/syn_filt_opt.s |
| 71 | |
| 72 | endif |
| 73 | |
| 74 | ifeq ($(VOTT), v7) |
| 75 | LOCAL_SRC_FILES += \ |
| 76 | src/asm/ARMV7/convolve_neon.s \ |
| 77 | src/asm/ARMV7/cor_h_vec_neon.s \ |
| 78 | src/asm/ARMV7/Deemph_32_neon.s \ |
| 79 | src/asm/ARMV7/Dot_p_neon.s \ |
| 80 | src/asm/ARMV7/Filt_6k_7k_neon.s \ |
| 81 | src/asm/ARMV7/Norm_Corr_neon.s \ |
| 82 | src/asm/ARMV7/pred_lt4_1_neon.s \ |
| 83 | src/asm/ARMV7/residu_asm_neon.s \ |
| 84 | src/asm/ARMV7/scale_sig_neon.s \ |
| 85 | src/asm/ARMV7/Syn_filt_32_neon.s \ |
| 86 | src/asm/ARMV7/syn_filt_neon.s |
| 87 | |
| 88 | endif |
| 89 | |
| 90 | LOCAL_MODULE := libstagefright_amrwbenc |
| 91 | |
| 92 | LOCAL_ARM_MODE := arm |
| 93 | |
Mans Rullgard | 62a62ef | 2011-04-05 17:40:06 +0300 | [diff] [blame] | 94 | LOCAL_STATIC_LIBRARIES := |
James Dong | 17299ab | 2010-05-14 15:45:22 -0700 | [diff] [blame] | 95 | |
| 96 | LOCAL_SHARED_LIBRARIES := |
| 97 | |
| 98 | LOCAL_C_INCLUDES := \ |
| 99 | frameworks/base/media/libstagefright/include \ |
| 100 | frameworks/base/media/libstagefright/codecs/common/include \ |
| 101 | frameworks/base/include \ |
| 102 | $(LOCAL_PATH)/src \ |
| 103 | $(LOCAL_PATH)/inc |
| 104 | |
| 105 | LOCAL_CFLAGS := $(VO_CFLAGS) |
| 106 | |
| 107 | ifeq ($(VOTT), v5) |
| 108 | LOCAL_CFLAGS += -DARM -DASM_OPT |
| 109 | LOCAL_C_INCLUDES += $(LOCAL_PATH)/src/asm/ARMV5E |
| 110 | endif |
| 111 | |
| 112 | ifeq ($(VOTT), v7) |
| 113 | LOCAL_CFLAGS += -DARM -DARMV7 -DASM_OPT |
| 114 | LOCAL_C_INCLUDES += $(LOCAL_PATH)/src/asm/ARMV5E |
| 115 | LOCAL_C_INCLUDES += $(LOCAL_PATH)/src/asm/ARMV7 |
| 116 | endif |
| 117 | |
| 118 | include $(BUILD_STATIC_LIBRARY) |
| 119 | |
Andreas Huber | ca97d6b | 2012-02-01 11:47:54 -0800 | [diff] [blame] | 120 | ################################################################################ |
James Dong | 17299ab | 2010-05-14 15:45:22 -0700 | [diff] [blame] | 121 | |
Andreas Huber | ca97d6b | 2012-02-01 11:47:54 -0800 | [diff] [blame] | 122 | include $(CLEAR_VARS) |
| 123 | |
| 124 | LOCAL_SRC_FILES := \ |
| 125 | SoftAMRWBEncoder.cpp |
| 126 | |
| 127 | LOCAL_C_INCLUDES := \ |
| 128 | frameworks/base/media/libstagefright/include \ |
| 129 | frameworks/base/include/media/stagefright/openmax \ |
| 130 | frameworks/base/media/libstagefright/codecs/common/include \ |
| 131 | |
| 132 | LOCAL_STATIC_LIBRARIES := \ |
| 133 | libstagefright_amrwbenc |
| 134 | |
| 135 | LOCAL_SHARED_LIBRARIES := \ |
| 136 | libstagefright_omx libstagefright_foundation libutils \ |
| 137 | libstagefright_enc_common |
| 138 | |
| 139 | LOCAL_MODULE := libstagefright_soft_amrwbenc |
| 140 | LOCAL_MODULE_TAGS := optional |
| 141 | |
| 142 | include $(BUILD_SHARED_LIBRARY) |