Dan Willemsen | 1418c82 | 2016-08-26 17:39:37 -0700 | [diff] [blame] | 1 | // |
| 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 Willemsen | 1418c82 | 2016-08-26 17:39:37 -0700 | [diff] [blame] | 17 | cc_library_shared { |
| 18 | name: "libspeexresampler", |
| 19 | |
Vijay Venkatraman | 338925a | 2017-05-15 12:45:14 -0700 | [diff] [blame] | 20 | vendor_available: true, |
Justin Yun | 90cbedc | 2017-07-24 15:19:44 +0900 | [diff] [blame] | 21 | vndk: { |
| 22 | enabled: true, |
| 23 | }, |
Jooyung Han | c6bfa25 | 2019-01-18 15:46:12 +0900 | [diff] [blame] | 24 | double_loadable: true, |
Jooyung Han | e5a8734 | 2020-05-21 22:44:13 +0900 | [diff] [blame] | 25 | apex_available: [ |
| 26 | "//apex_available:platform", |
| 27 | "com.android.media", |
| 28 | "com.android.media.swcodec", |
| 29 | ], |
| 30 | min_sdk_version: "29", |
| 31 | |
Dan Willemsen | 1418c82 | 2016-08-26 17:39:37 -0700 | [diff] [blame] | 32 | arch: { |
| 33 | arm: { |
| 34 | instruction_set: "arm", |
| 35 | |
Isaac Chen | c1e9d19 | 2017-09-12 17:03:09 +0800 | [diff] [blame] | 36 | neon: { |
Dan Willemsen | 1418c82 | 2016-08-26 17:39:37 -0700 | [diff] [blame] | 37 | cflags: ["-D_USE_NEON"], |
| 38 | }, |
| 39 | }, |
| 40 | }, |
Elliott Hughes | af8bb90 | 2018-06-26 16:57:59 -0700 | [diff] [blame] | 41 | srcs: ["libspeexdsp/resample.c"], |
Dan Willemsen | 1418c82 | 2016-08-26 17:39:37 -0700 | [diff] [blame] | 42 | |
| 43 | cflags: [ |
Elliott Hughes | af8bb90 | 2018-06-26 16:57:59 -0700 | [diff] [blame] | 44 | "-DEXPORT=__attribute__((visibility(\"default\")))", |
Dan Willemsen | 1418c82 | 2016-08-26 17:39:37 -0700 | [diff] [blame] | 45 | "-DFIXED_POINT", |
Elliott Hughes | af8bb90 | 2018-06-26 16:57:59 -0700 | [diff] [blame] | 46 | "-DHAVE_STDINT_H", |
| 47 | "-DRESAMPLE_FULL_SINC_TABLE", |
Dan Willemsen | 1418c82 | 2016-08-26 17:39:37 -0700 | [diff] [blame] | 48 | "-O3", |
| 49 | "-fstrict-aliasing", |
| 50 | "-fprefetch-loop-arrays", |
Chih-Hung Hsieh | 13db982 | 2017-09-29 11:20:06 -0700 | [diff] [blame] | 51 | "-Wall", |
| 52 | "-Werror", |
Elliott Hughes | 6f971cb | 2018-03-29 22:00:08 -0700 | [diff] [blame] | 53 | "-Wno-sign-compare", |
Elliott Hughes | af8bb90 | 2018-06-26 16:57:59 -0700 | [diff] [blame] | 54 | "-Wno-unused-parameter", |
Dan Willemsen | 1418c82 | 2016-08-26 17:39:37 -0700 | [diff] [blame] | 55 | ], |
| 56 | |
| 57 | local_include_dirs: ["include"], |
| 58 | export_include_dirs: ["include"], |
Ivan Lozano | 305f962 | 2018-07-10 13:23:52 -0700 | [diff] [blame] | 59 | sanitize: { |
| 60 | integer_overflow: true, |
Ivan Lozano | 3f8778f | 2018-10-04 14:55:56 -0700 | [diff] [blame] | 61 | misc_undefined: ["bounds"], |
Ivan Lozano | 305f962 | 2018-07-10 13:23:52 -0700 | [diff] [blame] | 62 | }, |
Dan Willemsen | 1418c82 | 2016-08-26 17:39:37 -0700 | [diff] [blame] | 63 | } |