blob: 41002b7c2d348ee8b616ac1b18003bba1c10d705 [file] [log] [blame]
Steven Moreland25a9e552017-04-17 14:30:39 -07001cc_library_headers {
2 name: "libaudioclient_headers",
3 vendor_available: true,
Jooyung Hanbee35cb2020-04-30 04:22:22 +09004 min_sdk_version: "29",
5
jiabinc0106832019-10-24 14:58:31 -07006 header_libs: [
7 "libaudiofoundation_headers",
8 ],
9 export_include_dirs: [
10 "include",
11 ],
12 export_header_lib_headers: [
13 "libaudiofoundation_headers",
14 ],
S Vasudev Prasad43a18892020-05-09 12:52:58 +053015 host_supported: true,
16 target: {
17 darwin: {
18 enabled: false,
19 },
20 },
Steven Moreland25a9e552017-04-17 14:30:39 -070021}
22
Jack Hed92d34e2016-12-08 15:44:14 -080023cc_library_shared {
François Gaffied0ba9ed2018-11-05 11:50:42 +010024 name: "libaudiopolicy",
25 srcs: [
26 "AudioAttributes.cpp",
27 "AudioPolicy.cpp",
28 "AudioProductStrategy.cpp",
François Gaffie4b2018b2018-11-07 11:18:59 +010029 "AudioVolumeGroup.cpp",
François Gaffied0ba9ed2018-11-05 11:50:42 +010030 ],
31 shared_libs: [
jiabin5b781412019-11-04 14:10:42 -080032 "libaudiofoundation",
François Gaffied0ba9ed2018-11-05 11:50:42 +010033 "libaudioutils",
34 "libbinder",
35 "libcutils",
36 "liblog",
37 "libutils",
38 ],
39 cflags: [
40 "-Werror",
41 "-Wall",
42 ],
43 include_dirs: ["system/media/audio_utils/include"],
44 export_include_dirs: ["include"],
45}
46
47cc_library_shared {
Jack Hed92d34e2016-12-08 15:44:14 -080048 name: "libaudioclient",
Ivan Lozanoff6900d2017-08-01 15:47:38 -070049
50 aidl: {
51 export_aidl_headers: true,
52 local_include_dirs: ["aidl"],
53 include_dirs: [
54 "frameworks/av/media/libaudioclient/aidl",
55 ],
56 },
57
Jack Hed92d34e2016-12-08 15:44:14 -080058 srcs: [
Ivan Lozanoff6900d2017-08-01 15:47:38 -070059 // AIDL files for audioclient interfaces
60 // The headers for these interfaces will be available to any modules that
61 // include libaudioclient, at the path "aidl/package/path/BnFoo.h"
Dan Willemsenfaeab0f2018-09-14 21:17:46 -070062 ":libaudioclient_aidl_private",
Colin Cross6bf135b2017-11-14 13:05:37 -080063 ":libaudioclient_aidl",
Ivan Lozanoff6900d2017-08-01 15:47:38 -070064
Jack Hed92d34e2016-12-08 15:44:14 -080065 "AudioEffect.cpp",
Jack Hed92d34e2016-12-08 15:44:14 -080066 "AudioRecord.cpp",
67 "AudioSystem.cpp",
68 "AudioTrack.cpp",
69 "AudioTrackShared.cpp",
70 "IAudioFlinger.cpp",
71 "IAudioFlingerClient.cpp",
72 "IAudioPolicyService.cpp",
73 "IAudioPolicyServiceClient.cpp",
Jack Hed92d34e2016-12-08 15:44:14 -080074 "IAudioTrack.cpp",
75 "IEffect.cpp",
76 "IEffectClient.cpp",
77 "ToneGenerator.cpp",
Eric Laurentb5323222017-05-31 15:01:56 -070078 "PlayerBase.cpp",
Mikhail Naganov2996f672019-04-18 12:29:59 -070079 "RecordingActivityTracker.cpp",
Eric Laurentb5323222017-05-31 15:01:56 -070080 "TrackPlayerBase.cpp",
Jack Hed92d34e2016-12-08 15:44:14 -080081 ],
82 shared_libs: [
jiabinc0106832019-10-24 14:58:31 -070083 "libaudiofoundation",
Kevin Rocard07be14f2018-01-24 06:14:03 +000084 "libaudioutils",
François Gaffied0ba9ed2018-11-05 11:50:42 +010085 "libaudiopolicy",
Eric Laurentb5323222017-05-31 15:01:56 -070086 "libaudiomanager",
Eric Tanace588c2018-09-12 11:44:43 -070087 "libbinder",
88 "libcutils",
89 "libdl",
90 "liblog",
Ray Essicked304702017-12-12 14:00:57 -080091 "libmedia_helper",
92 "libmediametrics",
Andy Hung4ef19fa2018-05-15 19:35:29 -070093 "libmediautils",
Eric Tanace588c2018-09-12 11:44:43 -070094 "libnblog",
Suren Baghdasaryan7435e7d2018-12-19 17:09:28 -080095 "libprocessgroup",
Eric Tanace588c2018-09-12 11:44:43 -070096 "libutils",
jiabinbf6b0ec2019-02-12 12:30:12 -080097 "libvibrator",
Jack Hed92d34e2016-12-08 15:44:14 -080098 ],
99 export_shared_lib_headers: ["libbinder"],
Steven Moreland25a9e552017-04-17 14:30:39 -0700100
Ivan Lozano8cf3a072017-08-09 09:01:33 -0700101 local_include_dirs: ["include/media", "aidl"],
Chih-Hung Hsiehffe35582018-09-13 13:59:28 -0700102 header_libs: [
103 "libaudioclient_headers",
104 "libbase_headers",
Marco Nelissen6b285942019-10-21 14:52:30 -0700105 "libmedia_headers",
Chih-Hung Hsiehffe35582018-09-13 13:59:28 -0700106 ],
Steven Moreland25a9e552017-04-17 14:30:39 -0700107 export_header_lib_headers: ["libaudioclient_headers"],
108
Jack Hed92d34e2016-12-08 15:44:14 -0800109 // for memory heap analysis
110 static_libs: [
111 "libc_malloc_debug_backtrace",
Jack Hed92d34e2016-12-08 15:44:14 -0800112 ],
113 cflags: [
Steven Moreland25a9e552017-04-17 14:30:39 -0700114 "-Wall",
Jack Hed92d34e2016-12-08 15:44:14 -0800115 "-Werror",
116 "-Wno-error=deprecated-declarations",
Jack Hed92d34e2016-12-08 15:44:14 -0800117 ],
118 sanitize: {
119 misc_undefined : [
120 "unsigned-integer-overflow",
121 "signed-integer-overflow",
122 ],
123 },
124}
Colin Cross6bf135b2017-11-14 13:05:37 -0800125
126// AIDL interface between libaudioclient and framework.jar
127filegroup {
128 name: "libaudioclient_aidl",
129 srcs: [
130 "aidl/android/media/IPlayer.aidl",
131 ],
Dan Willemsenfaeab0f2018-09-14 21:17:46 -0700132 path: "aidl",
133}
134
135// Used to strip the "aidl/" from the path, so the build system can predict the
136// output filename.
137filegroup {
138 name: "libaudioclient_aidl_private",
139 srcs: [
140 "aidl/android/media/IAudioRecord.aidl",
141 ],
142 path: "aidl",
Colin Cross6bf135b2017-11-14 13:05:37 -0800143}