Ray Essick | 8d82d81 | 2020-11-29 11:20:26 -0800 | [diff] [blame] | 1 | cc_library_static { |
| 2 | name: "libstagefright_amrnbenc", |
| 3 | vendor_available: true, |
| 4 | min_sdk_version: "29", |
| 5 | |
| 6 | srcs: [ |
| 7 | "src/amrencode.cpp", |
| 8 | "src/autocorr.cpp", |
| 9 | "src/c1035pf.cpp", |
| 10 | "src/c2_11pf.cpp", |
| 11 | "src/c2_9pf.cpp", |
| 12 | "src/c3_14pf.cpp", |
| 13 | "src/c4_17pf.cpp", |
| 14 | "src/c8_31pf.cpp", |
| 15 | "src/calc_cor.cpp", |
| 16 | "src/calc_en.cpp", |
| 17 | "src/cbsearch.cpp", |
| 18 | "src/cl_ltp.cpp", |
| 19 | "src/cod_amr.cpp", |
| 20 | "src/convolve.cpp", |
| 21 | "src/cor_h.cpp", |
| 22 | "src/cor_h_x.cpp", |
| 23 | "src/cor_h_x2.cpp", |
| 24 | "src/corrwght_tab.cpp", |
| 25 | "src/dtx_enc.cpp", |
| 26 | "src/enc_lag3.cpp", |
| 27 | "src/enc_lag6.cpp", |
| 28 | "src/enc_output_format_tab.cpp", |
| 29 | "src/ets_to_if2.cpp", |
| 30 | "src/ets_to_wmf.cpp", |
| 31 | "src/g_adapt.cpp", |
| 32 | "src/g_code.cpp", |
| 33 | "src/g_pitch.cpp", |
| 34 | "src/gain_q.cpp", |
| 35 | "src/hp_max.cpp", |
| 36 | "src/inter_36.cpp", |
| 37 | "src/inter_36_tab.cpp", |
| 38 | "src/l_comp.cpp", |
| 39 | "src/l_extract.cpp", |
| 40 | "src/l_negate.cpp", |
| 41 | "src/lag_wind.cpp", |
| 42 | "src/lag_wind_tab.cpp", |
| 43 | "src/levinson.cpp", |
| 44 | "src/lpc.cpp", |
| 45 | "src/ol_ltp.cpp", |
| 46 | "src/p_ol_wgh.cpp", |
| 47 | "src/pitch_fr.cpp", |
| 48 | "src/pitch_ol.cpp", |
| 49 | "src/pre_big.cpp", |
| 50 | "src/pre_proc.cpp", |
| 51 | "src/prm2bits.cpp", |
| 52 | "src/q_gain_c.cpp", |
| 53 | "src/q_gain_p.cpp", |
| 54 | "src/qgain475.cpp", |
| 55 | "src/qgain795.cpp", |
| 56 | "src/qua_gain.cpp", |
| 57 | "src/s10_8pf.cpp", |
| 58 | "src/set_sign.cpp", |
| 59 | "src/sid_sync.cpp", |
| 60 | "src/sp_enc.cpp", |
| 61 | "src/spreproc.cpp", |
| 62 | "src/spstproc.cpp", |
| 63 | "src/ton_stab.cpp", |
| 64 | ], |
| 65 | |
| 66 | header_libs: ["libstagefright_headers"], |
| 67 | export_include_dirs: ["src"], |
| 68 | |
| 69 | cflags: [ |
| 70 | "-DOSCL_UNUSED_ARG(x)=(void)(x)", |
| 71 | "-Werror", |
| 72 | ], |
| 73 | |
| 74 | //addressing b/25409744 |
| 75 | //sanitize: { |
| 76 | // misc_undefined: [ |
| 77 | // "signed-integer-overflow", |
| 78 | // ], |
| 79 | //}, |
| 80 | |
| 81 | shared_libs: ["libstagefright_amrnb_common"], |
| 82 | |
| 83 | host_supported: true, |
| 84 | target: { |
| 85 | darwin: { |
| 86 | enabled: false, |
| 87 | }, |
| 88 | }, |
| 89 | } |
| 90 | |
| 91 | //############################################################################### |
| 92 | |
| 93 | cc_test { |
| 94 | name: "libstagefright_amrnbenc_test", |
| 95 | gtest: false, |
| 96 | |
| 97 | srcs: ["test/amrnb_enc_test.cpp"], |
| 98 | |
| 99 | cflags: ["-Wall", "-Werror"], |
| 100 | |
| 101 | local_include_dirs: ["src"], |
| 102 | |
| 103 | static_libs: ["libstagefright_amrnbenc"], |
| 104 | |
| 105 | shared_libs: ["libstagefright_amrnb_common"], |
| 106 | |
| 107 | //addressing b/25409744 |
| 108 | //sanitize: { |
| 109 | // misc_undefined: [ |
| 110 | // "signed-integer-overflow", |
| 111 | // ], |
| 112 | //}, |
| 113 | } |