Android.mk revision b7ddcc9460f488f0b032aeb27b52a423318a97ea
1LOCAL_PATH:= $(call my-dir) 2 3AAC_LIBRARY = pv 4 5ifeq ($(AAC_LIBRARY), fraunhofer) 6 include $(CLEAR_VARS) 7 8 LOCAL_SRC_FILES := \ 9 SoftAAC2.cpp 10 11 LOCAL_C_INCLUDES := \ 12 frameworks/av/media/libstagefright/include \ 13 frameworks/native/include/media/openmax \ 14 external/aac/libAACdec/include \ 15 external/aac/libCDK/include \ 16 external/aac/libMpegTPDec/include \ 17 external/aac/libSBRdec/include \ 18 external/aac/libSYS/include 19 20 LOCAL_CFLAGS := 21 22 LOCAL_STATIC_LIBRARIES := \ 23 libAACdec libMpegTPDec libSBRdec libCDK libSYS 24 25 LOCAL_SHARED_LIBRARIES := \ 26 libstagefright_omx libstagefright_foundation libutils 27 28 LOCAL_MODULE := libstagefright_soft_aacdec 29 LOCAL_MODULE_TAGS := optional 30 31 include $(BUILD_SHARED_LIBRARY) 32 33else # pv 34 35 LOCAL_SRC_FILES := \ 36 analysis_sub_band.cpp \ 37 apply_ms_synt.cpp \ 38 apply_tns.cpp \ 39 buf_getbits.cpp \ 40 byte_align.cpp \ 41 calc_auto_corr.cpp \ 42 calc_gsfb_table.cpp \ 43 calc_sbr_anafilterbank.cpp \ 44 calc_sbr_envelope.cpp \ 45 calc_sbr_synfilterbank.cpp \ 46 check_crc.cpp \ 47 dct16.cpp \ 48 dct64.cpp \ 49 decode_huff_cw_binary.cpp \ 50 decode_noise_floorlevels.cpp \ 51 deinterleave.cpp \ 52 digit_reversal_tables.cpp \ 53 dst16.cpp \ 54 dst32.cpp \ 55 dst8.cpp \ 56 esc_iquant_scaling.cpp \ 57 extractframeinfo.cpp \ 58 fft_rx4_long.cpp \ 59 fft_rx4_short.cpp \ 60 fft_rx4_tables_fxp.cpp \ 61 find_adts_syncword.cpp \ 62 fwd_long_complex_rot.cpp \ 63 fwd_short_complex_rot.cpp \ 64 gen_rand_vector.cpp \ 65 get_adif_header.cpp \ 66 get_adts_header.cpp \ 67 get_audio_specific_config.cpp \ 68 get_dse.cpp \ 69 get_ele_list.cpp \ 70 get_ga_specific_config.cpp \ 71 get_ics_info.cpp \ 72 get_prog_config.cpp \ 73 get_pulse_data.cpp \ 74 get_sbr_bitstream.cpp \ 75 get_sbr_startfreq.cpp \ 76 get_sbr_stopfreq.cpp \ 77 get_tns.cpp \ 78 getfill.cpp \ 79 getgroup.cpp \ 80 getics.cpp \ 81 getmask.cpp \ 82 hcbtables_binary.cpp \ 83 huffcb.cpp \ 84 huffdecode.cpp \ 85 hufffac.cpp \ 86 huffspec_fxp.cpp \ 87 idct16.cpp \ 88 idct32.cpp \ 89 idct8.cpp \ 90 imdct_fxp.cpp \ 91 infoinit.cpp \ 92 init_sbr_dec.cpp \ 93 intensity_right.cpp \ 94 inv_long_complex_rot.cpp \ 95 inv_short_complex_rot.cpp \ 96 iquant_table.cpp \ 97 long_term_prediction.cpp \ 98 long_term_synthesis.cpp \ 99 lt_decode.cpp \ 100 mdct_fxp.cpp \ 101 mdct_tables_fxp.cpp \ 102 mdst.cpp \ 103 mix_radix_fft.cpp \ 104 ms_synt.cpp \ 105 pns_corr.cpp \ 106 pns_intensity_right.cpp \ 107 pns_left.cpp \ 108 ps_all_pass_filter_coeff.cpp \ 109 ps_all_pass_fract_delay_filter.cpp \ 110 ps_allocate_decoder.cpp \ 111 ps_applied.cpp \ 112 ps_bstr_decoding.cpp \ 113 ps_channel_filtering.cpp \ 114 ps_decode_bs_utils.cpp \ 115 ps_decorrelate.cpp \ 116 ps_fft_rx8.cpp \ 117 ps_hybrid_analysis.cpp \ 118 ps_hybrid_filter_bank_allocation.cpp \ 119 ps_hybrid_synthesis.cpp \ 120 ps_init_stereo_mixing.cpp \ 121 ps_pwr_transient_detection.cpp \ 122 ps_read_data.cpp \ 123 ps_stereo_processing.cpp \ 124 pulse_nc.cpp \ 125 pv_div.cpp \ 126 pv_log2.cpp \ 127 pv_normalize.cpp \ 128 pv_pow2.cpp \ 129 pv_sine.cpp \ 130 pv_sqrt.cpp \ 131 pvmp4audiodecoderconfig.cpp \ 132 pvmp4audiodecoderframe.cpp \ 133 pvmp4audiodecodergetmemrequirements.cpp \ 134 pvmp4audiodecoderinitlibrary.cpp \ 135 pvmp4audiodecoderresetbuffer.cpp \ 136 q_normalize.cpp \ 137 qmf_filterbank_coeff.cpp \ 138 sbr_aliasing_reduction.cpp \ 139 sbr_applied.cpp \ 140 sbr_code_book_envlevel.cpp \ 141 sbr_crc_check.cpp \ 142 sbr_create_limiter_bands.cpp \ 143 sbr_dec.cpp \ 144 sbr_decode_envelope.cpp \ 145 sbr_decode_huff_cw.cpp \ 146 sbr_downsample_lo_res.cpp \ 147 sbr_envelope_calc_tbl.cpp \ 148 sbr_envelope_unmapping.cpp \ 149 sbr_extract_extended_data.cpp \ 150 sbr_find_start_andstop_band.cpp \ 151 sbr_generate_high_freq.cpp \ 152 sbr_get_additional_data.cpp \ 153 sbr_get_cpe.cpp \ 154 sbr_get_dir_control_data.cpp \ 155 sbr_get_envelope.cpp \ 156 sbr_get_header_data.cpp \ 157 sbr_get_noise_floor_data.cpp \ 158 sbr_get_sce.cpp \ 159 sbr_inv_filt_levelemphasis.cpp \ 160 sbr_open.cpp \ 161 sbr_read_data.cpp \ 162 sbr_requantize_envelope_data.cpp \ 163 sbr_reset_dec.cpp \ 164 sbr_update_freq_scale.cpp \ 165 set_mc_info.cpp \ 166 sfb.cpp \ 167 shellsort.cpp \ 168 synthesis_sub_band.cpp \ 169 tns_ar_filter.cpp \ 170 tns_decode_coef.cpp \ 171 tns_inv_filter.cpp \ 172 trans4m_freq_2_time_fxp.cpp \ 173 trans4m_time_2_freq_fxp.cpp \ 174 unpack_idx.cpp \ 175 window_tables_fxp.cpp \ 176 pvmp4setaudioconfig.cpp \ 177 178 LOCAL_CFLAGS := -DAAC_PLUS -DHQ_SBR -DPARAMETRICSTEREO -DOSCL_IMPORT_REF= -DOSCL_EXPORT_REF= -DOSCL_UNUSED_ARG= 179 180 LOCAL_C_INCLUDES := \ 181 frameworks/av/media/libstagefright/include \ 182 183 LOCAL_ARM_MODE := arm 184 185 LOCAL_MODULE := libstagefright_aacdec 186 187 include $(BUILD_STATIC_LIBRARY) 188 189 ################################################################################ 190 191 include $(CLEAR_VARS) 192 193 LOCAL_SRC_FILES := \ 194 SoftAAC.cpp 195 196 LOCAL_C_INCLUDES := \ 197 frameworks/av/media/libstagefright/include \ 198 frameworks/native/include/media/openmax 199 200 LOCAL_CFLAGS := -DOSCL_IMPORT_REF= 201 202 LOCAL_STATIC_LIBRARIES := \ 203 libstagefright_aacdec 204 205 LOCAL_SHARED_LIBRARIES := \ 206 libstagefright_omx libstagefright_foundation libutils 207 208 LOCAL_MODULE := libstagefright_soft_aacdec 209 LOCAL_MODULE_TAGS := optional 210 211 include $(BUILD_SHARED_LIBRARY) 212 213endif # $(AAC_LIBRARY) 214