blob: b9026d4968e7650300b4b9b84521e4b53407a69f [file] [log] [blame]
Steven Moreland25a9e552017-04-17 14:30:39 -07001cc_library_headers {
2 name: "libaudioclient_headers",
3 vendor_available: true,
jiabinc0106832019-10-24 14:58:31 -07004 header_libs: [
5 "libaudiofoundation_headers",
6 ],
7 export_include_dirs: [
8 "include",
9 ],
10 export_header_lib_headers: [
11 "libaudiofoundation_headers",
12 ],
S Vasudev Prasad43a18892020-05-09 12:52:58 +053013 host_supported: true,
14 target: {
15 darwin: {
16 enabled: false,
17 },
18 },
Steven Moreland25a9e552017-04-17 14:30:39 -070019}
20
Jack Hed92d34e2016-12-08 15:44:14 -080021cc_library_shared {
François Gaffied0ba9ed2018-11-05 11:50:42 +010022 name: "libaudiopolicy",
23 srcs: [
24 "AudioAttributes.cpp",
25 "AudioPolicy.cpp",
26 "AudioProductStrategy.cpp",
François Gaffie4b2018b2018-11-07 11:18:59 +010027 "AudioVolumeGroup.cpp",
François Gaffied0ba9ed2018-11-05 11:50:42 +010028 ],
29 shared_libs: [
jiabin5b781412019-11-04 14:10:42 -080030 "libaudiofoundation",
François Gaffied0ba9ed2018-11-05 11:50:42 +010031 "libaudioutils",
32 "libbinder",
33 "libcutils",
34 "liblog",
35 "libutils",
36 ],
37 cflags: [
38 "-Werror",
39 "-Wall",
40 ],
41 include_dirs: ["system/media/audio_utils/include"],
42 export_include_dirs: ["include"],
43}
44
45cc_library_shared {
Jack Hed92d34e2016-12-08 15:44:14 -080046 name: "libaudioclient",
Ivan Lozanoff6900d2017-08-01 15:47:38 -070047
48 aidl: {
49 export_aidl_headers: true,
50 local_include_dirs: ["aidl"],
51 include_dirs: [
52 "frameworks/av/media/libaudioclient/aidl",
53 ],
54 },
55
Jack Hed92d34e2016-12-08 15:44:14 -080056 srcs: [
Ivan Lozanoff6900d2017-08-01 15:47:38 -070057 // AIDL files for audioclient interfaces
58 // The headers for these interfaces will be available to any modules that
59 // include libaudioclient, at the path "aidl/package/path/BnFoo.h"
Dan Willemsenfaeab0f2018-09-14 21:17:46 -070060 ":libaudioclient_aidl_private",
Colin Cross6bf135b2017-11-14 13:05:37 -080061 ":libaudioclient_aidl",
Ivan Lozanoff6900d2017-08-01 15:47:38 -070062
Jack Hed92d34e2016-12-08 15:44:14 -080063 "AudioEffect.cpp",
Jack Hed92d34e2016-12-08 15:44:14 -080064 "AudioRecord.cpp",
65 "AudioSystem.cpp",
66 "AudioTrack.cpp",
67 "AudioTrackShared.cpp",
68 "IAudioFlinger.cpp",
69 "IAudioFlingerClient.cpp",
70 "IAudioPolicyService.cpp",
71 "IAudioPolicyServiceClient.cpp",
Jack Hed92d34e2016-12-08 15:44:14 -080072 "IAudioTrack.cpp",
73 "IEffect.cpp",
74 "IEffectClient.cpp",
75 "ToneGenerator.cpp",
Eric Laurentb5323222017-05-31 15:01:56 -070076 "PlayerBase.cpp",
Mikhail Naganov2996f672019-04-18 12:29:59 -070077 "RecordingActivityTracker.cpp",
Eric Laurentb5323222017-05-31 15:01:56 -070078 "TrackPlayerBase.cpp",
Jack Hed92d34e2016-12-08 15:44:14 -080079 ],
80 shared_libs: [
jiabinc0106832019-10-24 14:58:31 -070081 "libaudiofoundation",
Kevin Rocard07be14f2018-01-24 06:14:03 +000082 "libaudioutils",
François Gaffied0ba9ed2018-11-05 11:50:42 +010083 "libaudiopolicy",
Eric Laurentb5323222017-05-31 15:01:56 -070084 "libaudiomanager",
Eric Tanace588c2018-09-12 11:44:43 -070085 "libbinder",
86 "libcutils",
87 "libdl",
88 "liblog",
Ray Essicked304702017-12-12 14:00:57 -080089 "libmedia_helper",
90 "libmediametrics",
Andy Hung4ef19fa2018-05-15 19:35:29 -070091 "libmediautils",
Eric Tanace588c2018-09-12 11:44:43 -070092 "libnblog",
Suren Baghdasaryan7435e7d2018-12-19 17:09:28 -080093 "libprocessgroup",
Eric Tanace588c2018-09-12 11:44:43 -070094 "libutils",
jiabinbf6b0ec2019-02-12 12:30:12 -080095 "libvibrator",
Jack Hed92d34e2016-12-08 15:44:14 -080096 ],
97 export_shared_lib_headers: ["libbinder"],
Steven Moreland25a9e552017-04-17 14:30:39 -070098
Ivan Lozano8cf3a072017-08-09 09:01:33 -070099 local_include_dirs: ["include/media", "aidl"],
Chih-Hung Hsiehffe35582018-09-13 13:59:28 -0700100 header_libs: [
101 "libaudioclient_headers",
102 "libbase_headers",
Marco Nelissen6b285942019-10-21 14:52:30 -0700103 "libmedia_headers",
Chih-Hung Hsiehffe35582018-09-13 13:59:28 -0700104 ],
Steven Moreland25a9e552017-04-17 14:30:39 -0700105 export_header_lib_headers: ["libaudioclient_headers"],
106
Jack Hed92d34e2016-12-08 15:44:14 -0800107 // for memory heap analysis
108 static_libs: [
109 "libc_malloc_debug_backtrace",
Jack Hed92d34e2016-12-08 15:44:14 -0800110 ],
111 cflags: [
Steven Moreland25a9e552017-04-17 14:30:39 -0700112 "-Wall",
Jack Hed92d34e2016-12-08 15:44:14 -0800113 "-Werror",
114 "-Wno-error=deprecated-declarations",
Jack Hed92d34e2016-12-08 15:44:14 -0800115 ],
116 sanitize: {
117 misc_undefined : [
118 "unsigned-integer-overflow",
119 "signed-integer-overflow",
120 ],
121 },
122}
Colin Cross6bf135b2017-11-14 13:05:37 -0800123
124// AIDL interface between libaudioclient and framework.jar
125filegroup {
126 name: "libaudioclient_aidl",
127 srcs: [
128 "aidl/android/media/IPlayer.aidl",
129 ],
Dan Willemsenfaeab0f2018-09-14 21:17:46 -0700130 path: "aidl",
131}
132
133// Used to strip the "aidl/" from the path, so the build system can predict the
134// output filename.
135filegroup {
136 name: "libaudioclient_aidl_private",
137 srcs: [
138 "aidl/android/media/IAudioRecord.aidl",
139 ],
140 path: "aidl",
Colin Cross6bf135b2017-11-14 13:05:37 -0800141}