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 17 cc_library_shared { 18 name: "libspeexresampler", 19 20 vendor_available: true, 21 vndk: { 22 enabled: true, 23 }, 24 double_loadable: true, 25 arch: { 26 arm: { 27 instruction_set: "arm", 28 29 neon: { 30 cflags: ["-D_USE_NEON"], 31 }, 32 }, 33 }, 34 srcs: ["libspeexdsp/resample.c"], 35 36 cflags: [ 37 "-DEXPORT=__attribute__((visibility(\"default\")))", 38 "-DFIXED_POINT", 39 "-DHAVE_STDINT_H", 40 "-DRESAMPLE_FULL_SINC_TABLE", 41 "-O3", 42 "-fstrict-aliasing", 43 "-fprefetch-loop-arrays", 44 "-Wall", 45 "-Werror", 46 "-Wno-sign-compare", 47 "-Wno-unused-parameter", 48 ], 49 50 local_include_dirs: ["include"], 51 export_include_dirs: ["include"], 52 sanitize: { 53 integer_overflow: true, 54 misc_undefined: ["bounds"], 55 }, 56 } 57