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