blob: bd24c84dbc7c00402c651a4d602c8a9b7f8c7734 [file] [log] [blame]
Bob Badour56786ac2021-02-25 15:24:36 -08001package {
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
Kevin Rocard7588ff42018-01-08 11:11:30 -080010cc_library_shared {
11 name: "libaudiohal",
12
13 srcs: [
14 "DevicesFactoryHalInterface.cpp",
15 "EffectsFactoryHalInterface.cpp",
Mikhail Naganovd7b2ff02020-02-07 13:51:04 -080016 "FactoryHalHidl.cpp",
Kevin Rocard7588ff42018-01-08 11:11:30 -080017 ],
18
19 cflags: [
20 "-Wall",
Kevin Rocard070e7512018-05-22 09:29:13 -070021 "-Wextra",
Kevin Rocard7588ff42018-01-08 11:11:30 -080022 "-Werror",
23 ],
24
Mikhail Naganovd7b2ff02020-02-07 13:51:04 -080025 required: [
Kevin Rocard4a7484bd2018-02-23 19:11:06 -080026 "libaudiohal@4.0",
Kevin Rocard3d48dce2018-11-08 17:16:57 -080027 "libaudiohal@5.0",
Kevin Rocardf22253b2019-09-30 19:59:31 +010028 "libaudiohal@6.0",
Mikhail Naganov247b5f92021-01-15 19:16:12 +000029 "libaudiohal@7.0",
Mikhail Naganovd7b2ff02020-02-07 13:51:04 -080030 ],
31
32 shared_libs: [
33 "libdl",
34 "libhidlbase",
35 "liblog",
Kevin Rocard7588ff42018-01-08 11:11:30 -080036 "libutils",
37 ],
38
39 header_libs: [
Kevin Rocard00538f12019-06-25 14:26:29 -070040 "libaudiohal_headers",
41 "libbase_headers",
Andy Hung638f45b2021-01-18 20:02:56 -080042 "libmediautils_headers",
Kevin Rocard7588ff42018-01-08 11:11:30 -080043 ]
44}
45
46cc_library_shared {
47 name: "libaudiohal_deathhandler",
48
49 srcs: [
50 "HalDeathHandlerHidl.cpp",
51 ],
52
53 cflags: [
54 "-Wall",
55 "-Werror",
56 ],
57
58 shared_libs: [
59 "libhidlbase",
60 "libutils",
61 "liblog",
62 ],
63
64 header_libs: [
65 "libaudiohal_headers"
66 ]
67}
68
Kevin Rocard51ac5422017-12-15 14:22:34 -080069cc_library_headers {
70 name: "libaudiohal_headers",
Dan Willemsenf33e4b82017-10-23 17:41:46 -070071
Dan Willemsenf33e4b82017-10-23 17:41:46 -070072 export_include_dirs: ["include"],
Mikhail Naganov9f3c02d2019-08-12 11:36:05 -070073
74 // This is needed because the stream interface includes media/MicrophoneInfo.h
Ytai Ben-Tsvi71109da2020-11-03 15:11:13 -080075 header_libs: ["av-headers"],
76 export_header_lib_headers: ["av-headers"],
Dan Willemsenf33e4b82017-10-23 17:41:46 -070077}