Bob Badour | 56786ac | 2021-02-25 15:24:36 -0800 | [diff] [blame] | 1 | package { |
| 2 | default_applicable_licenses: [ |
| 3 | "frameworks_av_media_codecs_amrwb_dec_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_amrwb_dec_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 | |
Colin Cross | 6f82b4d | 2017-04-20 17:30:33 -0700 | [diff] [blame] | 33 | cc_library_static { |
| 34 | name: "libstagefright_amrwbdec", |
Jiyong Park | 308cae0 | 2017-08-07 13:17:05 +0900 | [diff] [blame] | 35 | vendor_available: true, |
Automerger Merge Worker | 110b817 | 2020-03-12 01:29:00 +0000 | [diff] [blame] | 36 | host_supported: true, |
Jooyung Han | ddd5870 | 2020-04-30 04:20:25 +0900 | [diff] [blame] | 37 | min_sdk_version: "29", |
Colin Cross | 6f82b4d | 2017-04-20 17:30:33 -0700 | [diff] [blame] | 38 | |
| 39 | srcs: [ |
| 40 | "src/agc2_amr_wb.cpp", |
| 41 | "src/band_pass_6k_7k.cpp", |
| 42 | "src/dec_acelp_2p_in_64.cpp", |
| 43 | "src/dec_acelp_4p_in_64.cpp", |
| 44 | "src/dec_alg_codebook.cpp", |
| 45 | "src/dec_gain2_amr_wb.cpp", |
| 46 | "src/deemphasis_32.cpp", |
| 47 | "src/dtx_decoder_amr_wb.cpp", |
| 48 | "src/get_amr_wb_bits.cpp", |
| 49 | "src/highpass_400hz_at_12k8.cpp", |
| 50 | "src/highpass_50hz_at_12k8.cpp", |
| 51 | "src/homing_amr_wb_dec.cpp", |
| 52 | "src/interpolate_isp.cpp", |
| 53 | "src/isf_extrapolation.cpp", |
| 54 | "src/isp_az.cpp", |
| 55 | "src/isp_isf.cpp", |
| 56 | "src/lagconceal.cpp", |
| 57 | "src/low_pass_filt_7k.cpp", |
| 58 | "src/median5.cpp", |
| 59 | "src/mime_io.cpp", |
| 60 | "src/noise_gen_amrwb.cpp", |
| 61 | "src/normalize_amr_wb.cpp", |
| 62 | "src/oversamp_12k8_to_16k.cpp", |
| 63 | "src/phase_dispersion.cpp", |
| 64 | "src/pit_shrp.cpp", |
| 65 | "src/pred_lt4.cpp", |
| 66 | "src/preemph_amrwb_dec.cpp", |
| 67 | "src/pvamrwb_math_op.cpp", |
| 68 | "src/pvamrwbdecoder.cpp", |
| 69 | "src/q_gain2_tab.cpp", |
| 70 | "src/qisf_ns.cpp", |
| 71 | "src/qisf_ns_tab.cpp", |
| 72 | "src/qpisf_2s.cpp", |
| 73 | "src/qpisf_2s_tab.cpp", |
| 74 | "src/scale_signal.cpp", |
| 75 | "src/synthesis_amr_wb.cpp", |
| 76 | "src/voice_factor.cpp", |
| 77 | "src/wb_syn_filt.cpp", |
| 78 | "src/weight_amrwb_lpc.cpp", |
| 79 | ], |
| 80 | |
Wonsik Kim | e1cf6e3 | 2018-03-15 20:11:16 -0700 | [diff] [blame] | 81 | export_include_dirs: [ |
| 82 | "src", |
| 83 | "include", |
| 84 | ], |
Colin Cross | 6f82b4d | 2017-04-20 17:30:33 -0700 | [diff] [blame] | 85 | |
| 86 | cflags: [ |
| 87 | "-DOSCL_UNUSED_ARG(x)=(void)(x)", |
| 88 | "-DOSCL_IMPORT_REF=", |
| 89 | |
| 90 | "-Werror", |
| 91 | ], |
| 92 | |
| 93 | sanitize: { |
| 94 | misc_undefined: [ |
| 95 | "signed-integer-overflow", |
| 96 | ], |
| 97 | }, |
Automerger Merge Worker | 110b817 | 2020-03-12 01:29:00 +0000 | [diff] [blame] | 98 | |
| 99 | target: { |
| 100 | darwin: { |
| 101 | enabled: false, |
| 102 | }, |
| 103 | }, |
Colin Cross | 6f82b4d | 2017-04-20 17:30:33 -0700 | [diff] [blame] | 104 | } |
| 105 | |
| 106 | //############################################################################### |
| 107 | cc_test { |
| 108 | name: "libstagefright_amrwbdec_test", |
| 109 | gtest: false, |
Automerger Merge Worker | 110b817 | 2020-03-12 01:29:00 +0000 | [diff] [blame] | 110 | host_supported: true, |
Colin Cross | 6f82b4d | 2017-04-20 17:30:33 -0700 | [diff] [blame] | 111 | |
| 112 | srcs: ["test/amrwbdec_test.cpp"], |
| 113 | |
Chih-Hung Hsieh | 5cf0751 | 2017-10-02 13:59:12 -0700 | [diff] [blame] | 114 | cflags: ["-Wall", "-Werror"], |
| 115 | |
Colin Cross | 6f82b4d | 2017-04-20 17:30:33 -0700 | [diff] [blame] | 116 | static_libs: [ |
| 117 | "libstagefright_amrwbdec", |
| 118 | "libsndfile", |
| 119 | ], |
| 120 | |
| 121 | local_include_dirs: ["src"], |
| 122 | |
Kevin Rocard | 07be14f | 2018-01-24 06:14:03 +0000 | [diff] [blame] | 123 | shared_libs: ["libaudioutils"], |
Colin Cross | 6f82b4d | 2017-04-20 17:30:33 -0700 | [diff] [blame] | 124 | |
| 125 | sanitize: { |
| 126 | misc_undefined: [ |
| 127 | "signed-integer-overflow", |
| 128 | ], |
| 129 | }, |
Automerger Merge Worker | 110b817 | 2020-03-12 01:29:00 +0000 | [diff] [blame] | 130 | |
| 131 | target: { |
| 132 | darwin: { |
| 133 | enabled: false, |
| 134 | }, |
| 135 | }, |
Colin Cross | 6f82b4d | 2017-04-20 17:30:33 -0700 | [diff] [blame] | 136 | } |