1// Visualizer library
2package {
3    default_applicable_licenses: [
4        "frameworks_av_media_libeffects_visualizer_license",
5    ],
6}
7
8// Added automatically by a large-scale-change
9// See: http://go/android-license-faq
10license {
11    name: "frameworks_av_media_libeffects_visualizer_license",
12    visibility: [":__subpackages__"],
13    license_kinds: [
14        "SPDX-license-identifier-Apache-2.0",
15    ],
16    license_text: [
17        "NOTICE",
18    ],
19}
20
21cc_defaults {
22    name: "visualizer_defaults",
23    vendor: true,
24    cflags: [
25        "-DBUILD_FLOAT", // TODO: remove BUILD_FLOAT and SUPPORT_MC in lvm libs
26        "-DSUPPORT_MC",
27        "-Wall",
28        "-Werror",
29    ],
30    shared_libs: [
31        "liblog",
32    ],
33    header_libs: [
34        "libaudioeffects",
35        "libaudioutils_headers",
36    ],
37}
38
39cc_library_shared {
40    name: "libvisualizer",
41    defaults: [
42        "visualizer_defaults",
43    ],
44    srcs: [
45        "EffectVisualizer.cpp",
46    ],
47    relative_install_path: "soundfx",
48    cflags: [
49        "-O2",
50        "-fvisibility=hidden",
51    ],
52}
53
54cc_library_shared {
55    name: "libvisualizeraidl",
56    srcs: [
57        ":effectCommonFile",
58        "aidl/Visualizer.cpp",
59        "aidl/VisualizerContext.cpp",
60    ],
61    defaults: [
62        "aidlaudioeffectservice_defaults",
63        "visualizer_defaults",
64    ],
65    cflags: [
66        "-Wthread-safety",
67    ],
68    shared_libs: [
69        "libcutils",
70    ],
71    relative_install_path: "soundfx",
72    visibility: [
73        "//hardware/interfaces/audio/aidl/default:__subpackages__",
74    ],
75}
76