• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_av_license"
5    // to get the below license kinds:
6    //   SPDX-license-identifier-Apache-2.0
7    default_applicable_licenses: ["frameworks_av_license"],
8}
9
10filegroup {
11    name: "audio_core_hal_client_sources",
12    srcs: [
13        "CoreConversionHelperHidl.cpp",
14        "DeviceHalHidl.cpp",
15        "DevicesFactoryHalHidl.cpp",
16        "StreamHalHidl.cpp",
17    ],
18}
19
20filegroup {
21    name: "audio_effect_hal_client_sources",
22    srcs: [
23        "EffectBufferHalHidl.cpp",
24        "EffectConversionHelperHidl.cpp",
25        "EffectHalHidl.cpp",
26        "EffectsFactoryHalHidl.cpp",
27    ],
28}
29
30cc_defaults {
31    name: "libaudiohal_default",
32
33    cflags: [
34        "-Wall",
35        "-Wextra",
36        "-Werror",
37        "-fvisibility=hidden",
38    ],
39    shared_libs: [
40        "android.hardware.audio.common-util",
41        "android.hidl.allocator@1.0",
42        "android.hidl.memory@1.0",
43        "av-types-aidl-cpp",
44        "libaudiofoundation",
45        "libaudiohal_deathhandler",
46        "libaudioutils",
47        "libbase",
48        "libbinder",
49        "libcutils",
50        "libfmq",
51        "libhardware",
52        "libhidlbase",
53        "libhidlmemory",
54        "liblog",
55        "libmedia_helper",
56        "libmediautils",
57        "libutils",
58        "audioclient-types-aidl-cpp",
59    ],
60    header_libs: [
61        "android.hardware.audio.common.util@all-versions",
62        "libaudioclient_headers",
63        "libaudiohal_headers"
64    ],
65
66    export_shared_lib_headers: [
67        "libfmq",
68    ],
69}
70
71cc_library_shared {
72    name: "libaudiohal@4.0",
73    defaults: ["libaudiohal_default"],
74    srcs: [
75        ":audio_core_hal_client_sources",
76        ":audio_effect_hal_client_sources",
77        "EffectsFactoryHalHidlEntry.cpp",
78    ],
79    shared_libs: [
80        "android.hardware.audio.common@4.0",
81        "android.hardware.audio.common@4.0-util",
82        "android.hardware.audio.effect@4.0",
83        "android.hardware.audio.effect@4.0-util",
84        "android.hardware.audio@4.0",
85        "android.hardware.audio@4.0-util",
86    ],
87    cflags: [
88        "-DMAJOR_VERSION=4",
89        "-DMINOR_VERSION=0",
90        "-include common/all-versions/VersionMacro.h",
91    ]
92}
93
94cc_library_shared {
95    name: "libaudiohal@5.0",
96    defaults: ["libaudiohal_default"],
97    srcs: [
98        ":audio_core_hal_client_sources",
99        ":audio_effect_hal_client_sources",
100        "EffectsFactoryHalHidlEntry.cpp",
101    ],
102    shared_libs: [
103        "android.hardware.audio.common@5.0",
104        "android.hardware.audio.common@5.0-util",
105        "android.hardware.audio.effect@5.0",
106        "android.hardware.audio.effect@5.0-util",
107        "android.hardware.audio@5.0",
108        "android.hardware.audio@5.0-util",
109    ],
110    cflags: [
111        "-DMAJOR_VERSION=5",
112        "-DMINOR_VERSION=0",
113        "-include common/all-versions/VersionMacro.h",
114    ]
115}
116
117cc_library_shared {
118    name: "libaudiohal@6.0",
119    defaults: ["libaudiohal_default"],
120    srcs: [
121        ":audio_core_hal_client_sources",
122        ":audio_effect_hal_client_sources",
123        "EffectsFactoryHalHidlEntry.cpp",
124    ],
125    shared_libs: [
126        "android.hardware.audio.common@6.0",
127        "android.hardware.audio.common@6.0-util",
128        "android.hardware.audio.effect@6.0",
129        "android.hardware.audio.effect@6.0-util",
130        "android.hardware.audio@6.0",
131        "android.hardware.audio@6.0-util",
132    ],
133    cflags: [
134        "-DMAJOR_VERSION=6",
135        "-DMINOR_VERSION=0",
136        "-include common/all-versions/VersionMacro.h",
137    ]
138}
139
140cc_library_static {
141    name: "libaudiohal.effect@7.0",
142    defaults: ["libaudiohal_default"],
143    srcs: [
144        ":audio_effect_hal_client_sources",
145    ],
146    static_libs: [
147        "android.hardware.audio.common@7.0",
148        "android.hardware.audio.common@7.0-util",
149        "android.hardware.audio.effect@7.0",
150        "android.hardware.audio.effect@7.0-util",
151    ],
152    cflags: [
153        "-DMAJOR_VERSION=7",
154        "-DMINOR_VERSION=0",
155        "-include common/all-versions/VersionMacro.h",
156    ]
157}
158
159cc_library_shared {
160    name: "libaudiohal@7.0",
161    defaults: ["libaudiohal_default"],
162    srcs: [
163        ":audio_core_hal_client_sources",
164        "EffectsFactoryHalHidlEntry.cpp",
165    ],
166    static_libs: [
167        "android.hardware.audio.common@7.0",
168        "android.hardware.audio.common@7.0-enums",
169        "android.hardware.audio.common@7.0-util",
170        "android.hardware.audio.effect@7.0",
171        "android.hardware.audio.effect@7.0-util",
172        "android.hardware.audio@7.0",
173        "android.hardware.audio@7.0-util",
174        "libaudiohal.effect@7.0",
175    ],
176    cflags: [
177        "-DMAJOR_VERSION=7",
178        "-DMINOR_VERSION=0",
179        "-include common/all-versions/VersionMacro.h",
180    ]
181}
182
183cc_library_shared {
184    name: "libaudiohal@7.1",
185    defaults: ["libaudiohal_default"],
186    srcs: [
187        ":audio_core_hal_client_sources",
188        "EffectsFactoryHalHidlEntry.cpp",
189    ],
190    static_libs: [
191        "android.hardware.audio.common@7.0",
192        "android.hardware.audio.common@7.0-util",
193        "android.hardware.audio.common@7.1-enums",
194        "android.hardware.audio.common@7.1-util",
195        "android.hardware.audio.effect@7.0",
196        "android.hardware.audio.effect@7.0-util",
197        "android.hardware.audio@7.0",
198        "android.hardware.audio@7.1",
199        "android.hardware.audio@7.1-util",
200        "libaudiohal.effect@7.0",
201    ],
202    cflags: [
203        "-DMAJOR_VERSION=7",
204        "-DMINOR_VERSION=1",
205        "-DCOMMON_TYPES_MINOR_VERSION=0",
206        "-DCORE_TYPES_MINOR_VERSION=0",
207        "-include common/all-versions/VersionMacro.h",
208    ]
209}
210