1// music bundle wrapper
2package {
3    default_team: "trendy_team_media_framework_audio",
4    default_applicable_licenses: [
5        "frameworks_av_media_libeffects_lvm_wrapper_license",
6    ],
7}
8
9// Added automatically by a large-scale-change
10// See: http://go/android-license-faq
11license {
12    name: "frameworks_av_media_libeffects_lvm_wrapper_license",
13    visibility: [":__subpackages__"],
14    license_kinds: [
15        "SPDX-license-identifier-Apache-2.0",
16    ],
17    license_text: [
18        "NOTICE",
19    ],
20}
21
22cc_library {
23    name: "libbundlewrapper",
24
25    arch: {
26        arm: {
27            instruction_set: "arm",
28        },
29    },
30
31    vendor: true,
32    host_supported: true,
33    srcs: ["Bundle/EffectBundle.cpp"],
34
35    cppflags: [
36        "-fvisibility=hidden",
37
38        "-Wall",
39        "-Werror",
40    ],
41
42    relative_install_path: "soundfx",
43
44    static_libs: ["libmusicbundle"],
45
46    shared_libs: [
47        "libaudioutils",
48        "libcutils",
49        "liblog",
50    ],
51
52    local_include_dirs: ["Bundle"],
53
54    header_libs: [
55        "libaudioeffects",
56        "libhardware_headers",
57    ],
58}
59
60// reverb wrapper
61cc_library {
62    name: "libreverbwrapper",
63
64    arch: {
65        arm: {
66            instruction_set: "arm",
67        },
68    },
69
70    vendor: true,
71    host_supported: true,
72    srcs: ["Reverb/EffectReverb.cpp"],
73
74    cppflags: [
75        "-fvisibility=hidden",
76
77        "-Wall",
78        "-Werror",
79    ],
80
81    relative_install_path: "soundfx",
82
83    static_libs: ["libreverb"],
84
85    shared_libs: [
86        "libaudioutils",
87        "libcutils",
88        "liblog",
89    ],
90
91    local_include_dirs: ["Reverb"],
92
93    export_include_dirs: ["Reverb"],
94
95    header_libs: [
96        "libaudioeffects",
97        "libhardware_headers",
98    ],
99
100    sanitize: {
101        integer_overflow: true,
102    },
103}
104
105cc_library_shared {
106    name: "libbundleaidl",
107    srcs: [
108        ":effectCommonFile",
109        "Aidl/BundleContext.cpp",
110        "Aidl/EffectBundleAidl.cpp",
111    ],
112    static_libs: ["libmusicbundle"],
113    defaults: [
114        "aidlaudioeffectservice_defaults",
115    ],
116    local_include_dirs: ["Aidl"],
117    header_libs: [
118        "libaudioeffects",
119        "libhardware_headers",
120    ],
121    shared_libs: [
122        "libaudio_aidl_conversion_common_ndk",
123        "libaudioutils",
124        "liblog",
125        "libstagefright_foundation",
126    ],
127    cflags: [
128        "-DBACKEND_NDK",
129        "-Wthread-safety",
130    ],
131    relative_install_path: "soundfx",
132    visibility: [
133        "//hardware/interfaces/audio/aidl/default:__subpackages__",
134    ],
135}
136
137cc_library_shared {
138    name: "libreverbaidl",
139    srcs: [
140        ":effectCommonFile",
141        "Reverb/aidl/EffectReverb.cpp",
142        "Reverb/aidl/ReverbContext.cpp",
143    ],
144    static_libs: ["libreverb"],
145    defaults: [
146        "aidlaudioeffectservice_defaults",
147    ],
148    local_include_dirs: ["Reverb/aidl"],
149    header_libs: [
150        "libaudioeffects",
151        "libhardware_headers",
152    ],
153    shared_libs: [
154        "libaudioutils",
155        "libbase",
156        "libcutils",
157        "liblog",
158    ],
159    cflags: [
160        "-Wthread-safety",
161    ],
162    relative_install_path: "soundfx",
163    visibility: [
164        "//hardware/interfaces/audio/aidl/default:__subpackages__",
165    ],
166}
167