• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1package {
2    // See: http://go/android-license-faq
3    // A large-scale-change added 'default_applicable_licenses' to import
4    // all of the 'license_kinds' from "frameworks_av_license"
5    // to get the below license kinds:
6    //   SPDX-license-identifier-Apache-2.0
7    default_applicable_licenses: ["frameworks_av_license"],
8}
9
10cc_defaults {
11    name: "libaudioprocessing_defaults",
12
13    export_include_dirs: ["include"],
14
15    header_libs: ["libaudioclient_headers"],
16
17    shared_libs: [
18        "libaudioutils",
19        "libcutils",
20        "liblog",
21        "libutils",
22    ],
23
24    cflags: [
25        "-Wall",
26
27        // uncomment to disable NEON on architectures that actually do support NEON, for benchmarking
28
29        "-Werror",
30        // "-DUSE_NEON=false",
31    ],
32
33    arch: {
34        x86: {
35            avx2: {
36                cflags: [
37                    "-mavx2",
38                    "-mfma",
39                ],
40            },
41        },
42        x86_64: {
43            avx2: {
44                cflags: [
45                    "-mavx2",
46                    "-mfma",
47                ],
48            },
49        },
50    },
51}
52
53cc_library_shared {
54    name: "libaudioprocessing",
55    defaults: ["libaudioprocessing_defaults"],
56
57    srcs: [
58        "AudioMixer.cpp",
59        "BufferProviders.cpp",
60        "RecordBufferConverter.cpp",
61    ],
62
63    header_libs: [
64        "libaudiohal_headers",
65        "libbase_headers",
66        "libmedia_headers",
67    ],
68
69    shared_libs: [
70        "libaudiohal",
71        "libsonic",
72        "libvibrator",
73    ],
74
75    whole_static_libs: ["libaudioprocessing_base"],
76
77    export_shared_lib_headers: [
78        "libvibrator",
79    ],
80}
81
82cc_library_static {
83    name: "libaudioprocessing_base",
84    defaults: ["libaudioprocessing_defaults"],
85    vendor_available: true,
86
87    srcs: [
88        "AudioMixerBase.cpp",
89        "AudioResampler.cpp",
90        "AudioResamplerCubic.cpp",
91        "AudioResamplerDyn.cpp",
92        "AudioResamplerSinc.cpp",
93    ],
94
95    arch: {
96        arm: {
97            instruction_set: "arm",
98        },
99    },
100}
101