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_base_media_jni_license"
5    // to get the below license kinds:
6    //   SPDX-license-identifier-Apache-2.0
7    default_applicable_licenses: ["frameworks_base_media_jni_license"],
8}
9
10cc_library_shared {
11    name: "libaudioeffect_jni",
12
13    srcs: [
14        "android_media_AudioEffect.cpp",
15        "android_media_SourceDefaultEffect.cpp",
16        "android_media_StreamDefaultEffect.cpp",
17        "android_media_Visualizer.cpp",
18        "Visualizer.cpp",
19    ],
20
21    shared_libs: [
22        "framework-permission-aidl-cpp",
23        "liblog",
24        "libcutils",
25        "libutils",
26        "libandroid_runtime",
27        "libnativehelper",
28        "libaudioclient",
29        "libaudioutils",
30        "libaudiofoundation",
31        "libbinder",
32    ],
33
34    export_shared_lib_headers: [
35        "framework-permission-aidl-cpp",
36    ],
37
38    version_script: "exports.lds",
39
40    cflags: [
41        "-Wall",
42        "-Werror",
43        "-Wunused",
44        "-Wunreachable-code",
45        "-DANDROID_UTILS_REF_BASE_DISABLE_IMPLICIT_CONSTRUCTION",
46    ],
47
48    // TODO(b/330503129) Workaround LTO build breakage.
49    lto_O0: true,
50}
51