[go: nahoru, domu]

blob: 2c5b0899cdc8c7bc2ce05f85f18416bd15e5ffe3 [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,
Dan Willemsen1418c822016-08-26 17:39:37 -070025 arch: {
26 arm: {
27 instruction_set: "arm",
28
Isaac Chenc1e9d192017-09-12 17:03:09 +080029 neon: {
Dan Willemsen1418c822016-08-26 17:39:37 -070030 cflags: ["-D_USE_NEON"],
31 },
32 },
33 },
Paul Duffin74d23b52020-03-30 18:34:09 +010034 apex_available: [
35 "//apex_available:platform",
36 "com.android.media.swcodec",
37 ],
Elliott Hughesaf8bb902018-06-26 16:57:59 -070038 srcs: ["libspeexdsp/resample.c"],
Dan Willemsen1418c822016-08-26 17:39:37 -070039
40 cflags: [
Elliott Hughesaf8bb902018-06-26 16:57:59 -070041 "-DEXPORT=__attribute__((visibility(\"default\")))",
Dan Willemsen1418c822016-08-26 17:39:37 -070042 "-DFIXED_POINT",
Elliott Hughesaf8bb902018-06-26 16:57:59 -070043 "-DHAVE_STDINT_H",
44 "-DRESAMPLE_FULL_SINC_TABLE",
Dan Willemsen1418c822016-08-26 17:39:37 -070045 "-O3",
46 "-fstrict-aliasing",
47 "-fprefetch-loop-arrays",
Chih-Hung Hsieh13db9822017-09-29 11:20:06 -070048 "-Wall",
49 "-Werror",
Elliott Hughes6f971cb2018-03-29 22:00:08 -070050 "-Wno-sign-compare",
Elliott Hughesaf8bb902018-06-26 16:57:59 -070051 "-Wno-unused-parameter",
Dan Willemsen1418c822016-08-26 17:39:37 -070052 ],
53
54 local_include_dirs: ["include"],
55 export_include_dirs: ["include"],
Ivan Lozano305f9622018-07-10 13:23:52 -070056 sanitize: {
57 integer_overflow: true,
Ivan Lozano3f8778f2018-10-04 14:55:56 -070058 misc_undefined: ["bounds"],
Ivan Lozano305f9622018-07-10 13:23:52 -070059 },
Dan Willemsen1418c822016-08-26 17:39:37 -070060}