xref: /aosp_15_r20/hardware/interfaces/audio/effect/all-versions/default/util/Android.bp (revision 4d7e907c777eeecc4c5bd7cf640a754fac206ff7)
1package {
2    default_team: "trendy_team_android_media_audio_framework",
3    // 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
11cc_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: "[email protected]",
41    defaults: ["android.hardware.audio.effect-util_default"],
42    shared_libs: [
43        "[email protected]",
44        "[email protected]",
45        "[email protected]",
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: "[email protected]",
56    defaults: ["android.hardware.audio.effect-util_default"],
57    shared_libs: [
58        "[email protected]",
59        "[email protected]",
60        "[email protected]",
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: "[email protected]",
71    defaults: ["android.hardware.audio.effect-util_default"],
72    shared_libs: [
73        "[email protected]",
74        "[email protected]",
75        "[email protected]",
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: "[email protected]",
86    defaults: ["android.hardware.audio.effect-util_default"],
87    shared_libs: [
88        "[email protected]",
89        "[email protected]",
90        "[email protected]",
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: "[email protected]",
101    defaults: ["android.hardware.audio.effect-util_default"],
102    shared_libs: [
103        "[email protected]",
104        "[email protected]",
105        "[email protected]",
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: "[email protected]_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        "[email protected]",
126        "[email protected]",
127        "[email protected]",
128        "[email protected]",
129        "[email protected]",
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}
147