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