Ray Essick | 8d82d81 | 2020-11-29 11:20:26 -0800 | [diff] [blame] | 1 | cc_library_static { |
| 2 | name: "libstagefright_amrnbdec", |
| 3 | vendor_available: true, |
| 4 | host_supported: true, |
| 5 | min_sdk_version: "29", |
| 6 | |
| 7 | srcs: [ |
| 8 | "src/a_refl.cpp", |
| 9 | "src/agc.cpp", |
| 10 | "src/amrdecode.cpp", |
| 11 | "src/b_cn_cod.cpp", |
| 12 | "src/bgnscd.cpp", |
| 13 | "src/c_g_aver.cpp", |
| 14 | "src/d1035pf.cpp", |
| 15 | "src/d2_11pf.cpp", |
| 16 | "src/d2_9pf.cpp", |
| 17 | "src/d3_14pf.cpp", |
| 18 | "src/d4_17pf.cpp", |
| 19 | "src/d8_31pf.cpp", |
| 20 | "src/d_gain_c.cpp", |
| 21 | "src/d_gain_p.cpp", |
| 22 | "src/d_plsf.cpp", |
| 23 | "src/d_plsf_3.cpp", |
| 24 | "src/d_plsf_5.cpp", |
| 25 | "src/dec_amr.cpp", |
| 26 | "src/dec_gain.cpp", |
| 27 | "src/dec_input_format_tab.cpp", |
| 28 | "src/dec_lag3.cpp", |
| 29 | "src/dec_lag6.cpp", |
| 30 | "src/dtx_dec.cpp", |
| 31 | "src/ec_gains.cpp", |
| 32 | "src/ex_ctrl.cpp", |
| 33 | "src/if2_to_ets.cpp", |
| 34 | "src/int_lsf.cpp", |
| 35 | "src/lsp_avg.cpp", |
| 36 | "src/ph_disp.cpp", |
| 37 | "src/post_pro.cpp", |
| 38 | "src/preemph.cpp", |
| 39 | "src/pstfilt.cpp", |
| 40 | "src/qgain475_tab.cpp", |
| 41 | "src/sp_dec.cpp", |
| 42 | "src/wmf_to_ets.cpp", |
| 43 | ], |
| 44 | |
| 45 | export_include_dirs: ["src"], |
| 46 | |
| 47 | cflags: [ |
| 48 | "-DOSCL_UNUSED_ARG(x)=(void)(x)", |
| 49 | "-DOSCL_IMPORT_REF=", |
| 50 | |
| 51 | "-Werror", |
| 52 | ], |
| 53 | |
| 54 | //sanitize: { |
| 55 | // misc_undefined: [ |
| 56 | // "signed-integer-overflow", |
| 57 | // ], |
| 58 | //}, |
| 59 | |
| 60 | shared_libs: [ |
| 61 | "libstagefright_amrnb_common", |
| 62 | "liblog", |
| 63 | ], |
| 64 | |
| 65 | target: { |
| 66 | darwin: { |
| 67 | enabled: false, |
| 68 | }, |
| 69 | }, |
| 70 | } |
| 71 | |
| 72 | //############################################################################### |
| 73 | cc_test { |
| 74 | name: "libstagefright_amrnbdec_test", |
| 75 | gtest: false, |
| 76 | host_supported: true, |
| 77 | |
| 78 | srcs: ["test/amrnbdec_test.cpp"], |
| 79 | |
| 80 | cflags: ["-Wall", "-Werror"], |
| 81 | |
| 82 | local_include_dirs: ["src"], |
| 83 | |
| 84 | static_libs: [ |
| 85 | "libstagefright_amrnbdec", |
| 86 | "libsndfile", |
| 87 | ], |
| 88 | |
| 89 | shared_libs: [ |
| 90 | "libstagefright_amrnb_common", |
| 91 | "libaudioutils", |
| 92 | "liblog", |
| 93 | ], |
| 94 | |
| 95 | target: { |
| 96 | darwin: { |
| 97 | enabled: false, |
| 98 | }, |
| 99 | }, |
| 100 | |
| 101 | //sanitize: { |
| 102 | // misc_undefined: [ |
| 103 | // "signed-integer-overflow", |
| 104 | // ], |
| 105 | //}, |
| 106 | } |