blob: 75e2c11aba771b1997dc0c9a1b687f1bf1bce00a [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",
Shunkai Yaodca65ce2022-12-02 05:35:41 +000016 "FactoryHal.cpp",
Kevin Rocard7588ff42018-01-08 11:11:30 -080017 ],
18
19 cflags: [
20 "-Wall",
21 "-Werror",
Andy Hunge59246e2024-03-15 11:48:57 -070022 "-Wextra",
Kevin Rocard7588ff42018-01-08 11:11:30 -080023 ],
24
Mikhail Naganovd7b2ff02020-02-07 13:51:04 -080025 required: [
Kevin Rocard3d48dce2018-11-08 17:16:57 -080026 "libaudiohal@5.0",
Kevin Rocardf22253b2019-09-30 19:59:31 +010027 "libaudiohal@6.0",
Mikhail Naganov247b5f92021-01-15 19:16:12 +000028 "libaudiohal@7.0",
Mikhail Naganov6718c392022-01-27 22:17:21 +000029 "libaudiohal@7.1",
Shunkai Yaodca65ce2022-12-02 05:35:41 +000030 "libaudiohal@aidl",
Mikhail Naganovd7b2ff02020-02-07 13:51:04 -080031 ],
32
33 shared_libs: [
Jiabin Huangebe64102021-09-07 20:01:07 +000034 "audioclient-types-aidl-cpp",
Shunkai Yaodca65ce2022-12-02 05:35:41 +000035 "libbinder_ndk",
Mikhail Naganovd7b2ff02020-02-07 13:51:04 -080036 "libdl",
37 "libhidlbase",
38 "liblog",
Kevin Rocard7588ff42018-01-08 11:11:30 -080039 "libutils",
40 ],
41
42 header_libs: [
Kevin Rocard00538f12019-06-25 14:26:29 -070043 "libaudiohal_headers",
44 "libbase_headers",
Shunkai Yao51202502022-12-12 06:11:46 +000045 "liberror_headers",
Andy Hung638f45b2021-01-18 20:02:56 -080046 "libmediautils_headers",
Andy Hunge59246e2024-03-15 11:48:57 -070047 ],
Andy Hung7b188ed2024-07-31 17:07:24 -070048
49 export_include_dirs: ["include"],
Kevin Rocard7588ff42018-01-08 11:11:30 -080050}
51
52cc_library_shared {
53 name: "libaudiohal_deathhandler",
54
55 srcs: [
56 "HalDeathHandlerHidl.cpp",
57 ],
58
59 cflags: [
60 "-Wall",
61 "-Werror",
62 ],
63
64 shared_libs: [
65 "libhidlbase",
Kevin Rocard7588ff42018-01-08 11:11:30 -080066 "liblog",
Andy Hunge59246e2024-03-15 11:48:57 -070067 "libutils",
Kevin Rocard7588ff42018-01-08 11:11:30 -080068 ],
69
70 header_libs: [
Andy Hunge59246e2024-03-15 11:48:57 -070071 "libaudiohal_headers",
Shunkai Yaodca65ce2022-12-02 05:35:41 +000072 ],
Kevin Rocard7588ff42018-01-08 11:11:30 -080073}
74
Kevin Rocard51ac5422017-12-15 14:22:34 -080075cc_library_headers {
76 name: "libaudiohal_headers",
Dan Willemsenf33e4b82017-10-23 17:41:46 -070077
Shunkai Yao8f6ad0f2023-04-18 23:14:25 +000078 header_libs: [
79 "libeffectsconfig_headers",
80 ],
81
82 export_header_lib_headers: ["libeffectsconfig_headers"],
83
Dan Willemsenf33e4b82017-10-23 17:41:46 -070084 export_include_dirs: ["include"],
Dan Willemsenf33e4b82017-10-23 17:41:46 -070085}
Shunkai Yao5c718342023-02-23 23:49:51 +000086
87cc_library_headers {
88 name: "libaudiohalimpl_headers",
89
90 header_libs: ["libaudiohal_headers"],
91 export_header_lib_headers: ["libaudiohal_headers"],
92 export_include_dirs: ["impl"],
93}