blob: 53dd9ac9414dda10f7893d0e95af87b4fba0c0a5 [file] [log] [blame]
Bob Badourb224b362021-02-12 20:13:01 -08001package {
Aditya Choudharyc5c6c622024-01-31 11:06:17 +00002 default_team: "trendy_team_android_media_audio_framework",
Bob Badourb224b362021-02-12 20:13:01 -08003 // See: http://go/android-license-faq
4 // A large-scale-change added 'default_applicable_licenses' to import
5 // all of the 'license_kinds' from "hardware_interfaces_license"
6 // to get the below license kinds:
7 // SPDX-license-identifier-Apache-2.0
8 default_applicable_licenses: ["hardware_interfaces_license"],
9}
10
Mikhail Naganova9ac8892021-01-15 19:05:04 +000011cc_defaults {
12 name: "android.hardware.audio.effect-util_default",
13 defaults: ["hidl_defaults"],
14
15 vendor_available: true,
16
17 export_include_dirs: ["include"],
18
19 srcs: [
20 "EffectUtils.cpp",
21 ],
22
23 shared_libs: [
24 "liblog",
25 "libutils",
26 "libhidlbase",
27 "android.hardware.audio.common-util",
28 ],
29 export_shared_lib_headers: [
30 "android.hardware.audio.common-util",
31 ],
32
33 header_libs: [
34 "libaudio_system_headers",
35 "libhardware_headers",
36 ],
37}
38
39cc_library_shared {
40 name: "android.hardware.audio.effect@2.0-util",
41 defaults: ["android.hardware.audio.effect-util_default"],
42 shared_libs: [
43 "android.hardware.audio.common@2.0",
44 "android.hardware.audio.common@2.0-util",
45 "android.hardware.audio.effect@2.0",
46 ],
47 cflags: [
48 "-DMAJOR_VERSION=2",
49 "-DMINOR_VERSION=0",
50 "-include common/all-versions/VersionMacro.h",
51 ],
52}
53
54cc_library_shared {
55 name: "android.hardware.audio.effect@4.0-util",
56 defaults: ["android.hardware.audio.effect-util_default"],
57 shared_libs: [
58 "android.hardware.audio.common@4.0",
59 "android.hardware.audio.common@4.0-util",
60 "android.hardware.audio.effect@4.0",
61 ],
62 cflags: [
63 "-DMAJOR_VERSION=4",
64 "-DMINOR_VERSION=0",
65 "-include common/all-versions/VersionMacro.h",
66 ],
67}
68
69cc_library_shared {
70 name: "android.hardware.audio.effect@5.0-util",
71 defaults: ["android.hardware.audio.effect-util_default"],
72 shared_libs: [
73 "android.hardware.audio.common@5.0",
74 "android.hardware.audio.common@5.0-util",
75 "android.hardware.audio.effect@5.0",
76 ],
77 cflags: [
78 "-DMAJOR_VERSION=5",
79 "-DMINOR_VERSION=0",
80 "-include common/all-versions/VersionMacro.h",
81 ],
82}
83
84cc_library_shared {
85 name: "android.hardware.audio.effect@6.0-util",
86 defaults: ["android.hardware.audio.effect-util_default"],
87 shared_libs: [
88 "android.hardware.audio.common@6.0",
89 "android.hardware.audio.common@6.0-util",
90 "android.hardware.audio.effect@6.0",
91 ],
92 cflags: [
93 "-DMAJOR_VERSION=6",
94 "-DMINOR_VERSION=0",
95 "-include common/all-versions/VersionMacro.h",
96 ],
97}
98
99cc_library {
100 name: "android.hardware.audio.effect@7.0-util",
101 defaults: ["android.hardware.audio.effect-util_default"],
102 shared_libs: [
103 "android.hardware.audio.common@7.0",
104 "android.hardware.audio.common@7.0-util",
105 "android.hardware.audio.effect@7.0",
106 ],
107 cflags: [
108 "-DMAJOR_VERSION=7",
109 "-DMINOR_VERSION=0",
110 "-include common/all-versions/VersionMacro.h",
111 ],
112}
113
114// Note: this isn't a VTS test, but rather a unit test
115// to verify correctness of conversion utilities.
116cc_test {
117 name: "android.hardware.audio.effect@7.0-util_tests",
118 defaults: ["android.hardware.audio.effect-util_default"],
119
120 srcs: ["tests/effectutils_tests.cpp"],
121
122 // Use static linking to allow running in presubmit on
123 // targets that don't have HAL V7.
124 static_libs: [
125 "android.hardware.audio.common@7.0",
126 "android.hardware.audio.common@7.0-enums",
127 "android.hardware.audio.common@7.0-util",
128 "android.hardware.audio.effect@7.0",
129 "android.hardware.audio.effect@7.0-util",
130 ],
131
132 shared_libs: [
133 "libbase",
134 "libxml2",
135 ],
136
137 cflags: [
138 "-Werror",
139 "-Wall",
140 "-DMAJOR_VERSION=7",
141 "-DMINOR_VERSION=0",
142 "-include common/all-versions/VersionMacro.h",
143 ],
144
145 test_suites: ["device-tests"],
146}