Bob Badour | 56786ac | 2021-02-25 15:24:36 -0800 | [diff] [blame] | 1 | package { |
| 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 |
| 21 | license { |
| 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 | |
Ray Essick | 8d82d81 | 2020-11-29 11:20:26 -0800 | [diff] [blame] | 33 | cc_library_static { |
| 34 | name: "libstagefright_amrnbenc", |
| 35 | vendor_available: true, |
| 36 | min_sdk_version: "29", |
| 37 | |
| 38 | srcs: [ |
| 39 | "src/amrencode.cpp", |
| 40 | "src/autocorr.cpp", |
| 41 | "src/c1035pf.cpp", |
| 42 | "src/c2_11pf.cpp", |
| 43 | "src/c2_9pf.cpp", |
| 44 | "src/c3_14pf.cpp", |
| 45 | "src/c4_17pf.cpp", |
| 46 | "src/c8_31pf.cpp", |
| 47 | "src/calc_cor.cpp", |
| 48 | "src/calc_en.cpp", |
| 49 | "src/cbsearch.cpp", |
| 50 | "src/cl_ltp.cpp", |
| 51 | "src/cod_amr.cpp", |
| 52 | "src/convolve.cpp", |
| 53 | "src/cor_h.cpp", |
| 54 | "src/cor_h_x.cpp", |
| 55 | "src/cor_h_x2.cpp", |
| 56 | "src/corrwght_tab.cpp", |
| 57 | "src/dtx_enc.cpp", |
| 58 | "src/enc_lag3.cpp", |
| 59 | "src/enc_lag6.cpp", |
| 60 | "src/enc_output_format_tab.cpp", |
| 61 | "src/ets_to_if2.cpp", |
| 62 | "src/ets_to_wmf.cpp", |
| 63 | "src/g_adapt.cpp", |
| 64 | "src/g_code.cpp", |
| 65 | "src/g_pitch.cpp", |
| 66 | "src/gain_q.cpp", |
| 67 | "src/hp_max.cpp", |
| 68 | "src/inter_36.cpp", |
| 69 | "src/inter_36_tab.cpp", |
| 70 | "src/l_comp.cpp", |
| 71 | "src/l_extract.cpp", |
| 72 | "src/l_negate.cpp", |
| 73 | "src/lag_wind.cpp", |
| 74 | "src/lag_wind_tab.cpp", |
| 75 | "src/levinson.cpp", |
| 76 | "src/lpc.cpp", |
| 77 | "src/ol_ltp.cpp", |
| 78 | "src/p_ol_wgh.cpp", |
| 79 | "src/pitch_fr.cpp", |
| 80 | "src/pitch_ol.cpp", |
| 81 | "src/pre_big.cpp", |
| 82 | "src/pre_proc.cpp", |
| 83 | "src/prm2bits.cpp", |
| 84 | "src/q_gain_c.cpp", |
| 85 | "src/q_gain_p.cpp", |
| 86 | "src/qgain475.cpp", |
| 87 | "src/qgain795.cpp", |
| 88 | "src/qua_gain.cpp", |
| 89 | "src/s10_8pf.cpp", |
| 90 | "src/set_sign.cpp", |
| 91 | "src/sid_sync.cpp", |
| 92 | "src/sp_enc.cpp", |
| 93 | "src/spreproc.cpp", |
| 94 | "src/spstproc.cpp", |
| 95 | "src/ton_stab.cpp", |
| 96 | ], |
| 97 | |
| 98 | header_libs: ["libstagefright_headers"], |
| 99 | export_include_dirs: ["src"], |
| 100 | |
| 101 | cflags: [ |
| 102 | "-DOSCL_UNUSED_ARG(x)=(void)(x)", |
| 103 | "-Werror", |
| 104 | ], |
| 105 | |
| 106 | //addressing b/25409744 |
| 107 | //sanitize: { |
| 108 | // misc_undefined: [ |
| 109 | // "signed-integer-overflow", |
| 110 | // ], |
| 111 | //}, |
| 112 | |
| 113 | shared_libs: ["libstagefright_amrnb_common"], |
| 114 | |
| 115 | host_supported: true, |
| 116 | target: { |
| 117 | darwin: { |
| 118 | enabled: false, |
| 119 | }, |
| 120 | }, |
| 121 | } |
| 122 | |
| 123 | //############################################################################### |
| 124 | |
| 125 | cc_test { |
| 126 | name: "libstagefright_amrnbenc_test", |
| 127 | gtest: false, |
| 128 | |
| 129 | srcs: ["test/amrnb_enc_test.cpp"], |
| 130 | |
| 131 | cflags: ["-Wall", "-Werror"], |
| 132 | |
| 133 | local_include_dirs: ["src"], |
| 134 | |
| 135 | static_libs: ["libstagefright_amrnbenc"], |
| 136 | |
| 137 | shared_libs: ["libstagefright_amrnb_common"], |
| 138 | |
| 139 | //addressing b/25409744 |
| 140 | //sanitize: { |
| 141 | // misc_undefined: [ |
| 142 | // "signed-integer-overflow", |
| 143 | // ], |
| 144 | //}, |
| 145 | } |