[go: nahoru, domu]

blob: 290835f336989acc54aa6ac432d0943cc6430a69 [file] [log] [blame]
Dan Willemsen1418c822016-08-26 17:39:37 -07001//
2// Copyright (C) 2010 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
Dan Willemsen1418c822016-08-26 17:39:37 -070017cc_library_shared {
18 name: "libspeexresampler",
19
Vijay Venkatraman338925a2017-05-15 12:45:14 -070020 vendor_available: true,
Justin Yun90cbedc2017-07-24 15:19:44 +090021 vndk: {
22 enabled: true,
23 },
Jooyung Hanc6bfa252019-01-18 15:46:12 +090024 double_loadable: true,
Jooyung Hanf11c3bb2020-05-21 22:44:13 +090025 apex_available: [
26 "//apex_available:platform",
27 "com.android.media",
28 "com.android.media.swcodec",
29 ],
30 min_sdk_version: "29",
31
Dan Willemsen1418c822016-08-26 17:39:37 -070032 arch: {
33 arm: {
34 instruction_set: "arm",
35
Isaac Chenc1e9d192017-09-12 17:03:09 +080036 neon: {
Dan Willemsen1418c822016-08-26 17:39:37 -070037 cflags: ["-D_USE_NEON"],
38 },
39 },
40 },
Elliott Hughesaf8bb902018-06-26 16:57:59 -070041 srcs: ["libspeexdsp/resample.c"],
Dan Willemsen1418c822016-08-26 17:39:37 -070042
43 cflags: [
Elliott Hughesaf8bb902018-06-26 16:57:59 -070044 "-DEXPORT=__attribute__((visibility(\"default\")))",
Dan Willemsen1418c822016-08-26 17:39:37 -070045 "-DFIXED_POINT",
Elliott Hughesaf8bb902018-06-26 16:57:59 -070046 "-DHAVE_STDINT_H",
47 "-DRESAMPLE_FULL_SINC_TABLE",
Dan Willemsen1418c822016-08-26 17:39:37 -070048 "-O3",
49 "-fstrict-aliasing",
50 "-fprefetch-loop-arrays",
Chih-Hung Hsieh13db9822017-09-29 11:20:06 -070051 "-Wall",
52 "-Werror",
Elliott Hughes6f971cb2018-03-29 22:00:08 -070053 "-Wno-sign-compare",
Elliott Hughesaf8bb902018-06-26 16:57:59 -070054 "-Wno-unused-parameter",
Dan Willemsen1418c822016-08-26 17:39:37 -070055 ],
56
57 local_include_dirs: ["include"],
58 export_include_dirs: ["include"],
Ivan Lozano305f9622018-07-10 13:23:52 -070059 sanitize: {
60 integer_overflow: true,
Ivan Lozano3f8778f2018-10-04 14:55:56 -070061 misc_undefined: ["bounds"],
Ivan Lozano305f9622018-07-10 13:23:52 -070062 },
Dan Willemsen1418c822016-08-26 17:39:37 -070063}