1package { 2 default_applicable_licenses: [ 3 "frameworks_av_media_codecs_amrnb_enc_license", 4 ], 5} 6 7// Added automatically by a large-scale-change that took the approach of 8// 'apply every license found to every target'. While this makes sure we respect 9// every license restriction, it may not be entirely correct. 10// 11// e.g. GPL in an MIT project might only apply to the contrib/ directory. 12// 13// Please consider splitting the single license below into multiple licenses, 14// taking care not to lose any license_kind information, and overriding the 15// default license using the 'licenses: [...]' property on targets as needed. 16// 17// For unused files, consider creating a 'fileGroup' with "//visibility:private" 18// to attach the license to, and including a comment whether the files may be 19// used in the current project. 20// See: http://go/android-license-faq 21license { 22 name: "frameworks_av_media_codecs_amrnb_enc_license", 23 visibility: [":__subpackages__"], 24 license_kinds: [ 25 "SPDX-license-identifier-Apache-2.0", 26 "SPDX-license-identifier-BSD", 27 ], 28 license_text: [ 29 "NOTICE", 30 ], 31} 32 33cc_library_static { 34 name: "libstagefright_amrnbenc", 35 vendor_available: true, 36 min_sdk_version: "29", 37 apex_available: [ 38 "//apex_available:platform", 39 "com.android.media.swcodec", 40 ], 41 42 srcs: [ 43 "src/amrencode.cpp", 44 "src/autocorr.cpp", 45 "src/c1035pf.cpp", 46 "src/c2_11pf.cpp", 47 "src/c2_9pf.cpp", 48 "src/c3_14pf.cpp", 49 "src/c4_17pf.cpp", 50 "src/c8_31pf.cpp", 51 "src/calc_cor.cpp", 52 "src/calc_en.cpp", 53 "src/cbsearch.cpp", 54 "src/cl_ltp.cpp", 55 "src/cod_amr.cpp", 56 "src/convolve.cpp", 57 "src/cor_h.cpp", 58 "src/cor_h_x.cpp", 59 "src/cor_h_x2.cpp", 60 "src/corrwght_tab.cpp", 61 "src/dtx_enc.cpp", 62 "src/enc_lag3.cpp", 63 "src/enc_lag6.cpp", 64 "src/enc_output_format_tab.cpp", 65 "src/ets_to_if2.cpp", 66 "src/ets_to_wmf.cpp", 67 "src/g_adapt.cpp", 68 "src/g_code.cpp", 69 "src/g_pitch.cpp", 70 "src/gain_q.cpp", 71 "src/hp_max.cpp", 72 "src/inter_36.cpp", 73 "src/inter_36_tab.cpp", 74 "src/l_comp.cpp", 75 "src/l_extract.cpp", 76 "src/l_negate.cpp", 77 "src/lag_wind.cpp", 78 "src/lag_wind_tab.cpp", 79 "src/levinson.cpp", 80 "src/lpc.cpp", 81 "src/ol_ltp.cpp", 82 "src/p_ol_wgh.cpp", 83 "src/pitch_fr.cpp", 84 "src/pitch_ol.cpp", 85 "src/pre_big.cpp", 86 "src/pre_proc.cpp", 87 "src/prm2bits.cpp", 88 "src/q_gain_c.cpp", 89 "src/q_gain_p.cpp", 90 "src/qgain475.cpp", 91 "src/qgain795.cpp", 92 "src/qua_gain.cpp", 93 "src/s10_8pf.cpp", 94 "src/set_sign.cpp", 95 "src/sid_sync.cpp", 96 "src/sp_enc.cpp", 97 "src/spreproc.cpp", 98 "src/spstproc.cpp", 99 "src/ton_stab.cpp", 100 ], 101 102 header_libs: ["libstagefright_headers"], 103 export_include_dirs: ["src"], 104 105 cflags: [ 106 "-DOSCL_UNUSED_ARG(x)=(void)(x)", 107 "-Werror", 108 ], 109 110 //addressing b/25409744 111 //sanitize: { 112 // misc_undefined: [ 113 // "signed-integer-overflow", 114 // ], 115 //}, 116 117 shared_libs: ["libstagefright_amrnb_common"], 118 119 host_supported: true, 120 target: { 121 darwin: { 122 enabled: false, 123 }, 124 }, 125} 126 127//############################################################################### 128 129cc_test { 130 name: "libstagefright_amrnbenc_test", 131 gtest: false, 132 133 srcs: ["test/amrnb_enc_test.cpp"], 134 135 cflags: ["-Wall", "-Werror"], 136 137 local_include_dirs: ["src"], 138 139 static_libs: ["libstagefright_amrnbenc"], 140 141 shared_libs: ["libstagefright_amrnb_common"], 142 143 //addressing b/25409744 144 //sanitize: { 145 // misc_undefined: [ 146 // "signed-integer-overflow", 147 // ], 148 //}, 149} 150