blob: 0ec63b9670da2f9c9c300049afea5a3d10c718d6 [file] [log] [blame]
Steven Moreland25a9e552017-04-17 14:30:39 -07001cc_library_headers {
2 name: "libaudioclient_headers",
3 vendor_available: true,
jiabin43810402019-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 ],
Steven Moreland25a9e552017-04-17 14:30:39 -070013}
14
Jack Hed92d34e2016-12-08 15:44:14 -080015cc_library_shared {
François Gaffied0ba9ed2018-11-05 11:50:42 +010016 name: "libaudiopolicy",
17 srcs: [
18 "AudioAttributes.cpp",
19 "AudioPolicy.cpp",
20 "AudioProductStrategy.cpp",
François Gaffie4b2018b2018-11-07 11:18:59 +010021 "AudioVolumeGroup.cpp",
François Gaffied0ba9ed2018-11-05 11:50:42 +010022 ],
23 shared_libs: [
Ytai Ben-Tsvi987d12c2020-03-24 17:35:44 -070024 "capture_state_listener-aidl-cpp",
jiabin05b5edd2019-11-04 14:10:42 -080025 "libaudiofoundation",
François Gaffied0ba9ed2018-11-05 11:50:42 +010026 "libaudioutils",
27 "libbinder",
28 "libcutils",
29 "liblog",
30 "libutils",
31 ],
32 cflags: [
33 "-Werror",
34 "-Wall",
35 ],
36 include_dirs: ["system/media/audio_utils/include"],
37 export_include_dirs: ["include"],
Ytai Ben-Tsvi987d12c2020-03-24 17:35:44 -070038 export_shared_lib_headers: [
39 "capture_state_listener-aidl-cpp",
40 ],
François Gaffied0ba9ed2018-11-05 11:50:42 +010041}
42
43cc_library_shared {
Jack Hed92d34e2016-12-08 15:44:14 -080044 name: "libaudioclient",
Ivan Lozanoff6900d2017-08-01 15:47:38 -070045
46 aidl: {
47 export_aidl_headers: true,
48 local_include_dirs: ["aidl"],
49 include_dirs: [
50 "frameworks/av/media/libaudioclient/aidl",
51 ],
52 },
53
Jack Hed92d34e2016-12-08 15:44:14 -080054 srcs: [
Ivan Lozanoff6900d2017-08-01 15:47:38 -070055 // AIDL files for audioclient interfaces
56 // The headers for these interfaces will be available to any modules that
57 // include libaudioclient, at the path "aidl/package/path/BnFoo.h"
jiabinf6eb4c32020-02-25 14:06:25 -080058 ":libaudioclient_aidl_callback",
Dan Willemsenfaeab0f2018-09-14 21:17:46 -070059 ":libaudioclient_aidl_private",
Colin Cross6bf135b2017-11-14 13:05:37 -080060 ":libaudioclient_aidl",
Ivan Lozanoff6900d2017-08-01 15:47:38 -070061
Jack Hed92d34e2016-12-08 15:44:14 -080062 "AudioEffect.cpp",
Jack Hed92d34e2016-12-08 15:44:14 -080063 "AudioRecord.cpp",
64 "AudioSystem.cpp",
65 "AudioTrack.cpp",
66 "AudioTrackShared.cpp",
67 "IAudioFlinger.cpp",
68 "IAudioFlingerClient.cpp",
69 "IAudioPolicyService.cpp",
70 "IAudioPolicyServiceClient.cpp",
Jack Hed92d34e2016-12-08 15:44:14 -080071 "IAudioTrack.cpp",
72 "IEffect.cpp",
73 "IEffectClient.cpp",
74 "ToneGenerator.cpp",
Eric Laurentb5323222017-05-31 15:01:56 -070075 "PlayerBase.cpp",
Mikhail Naganov2996f672019-04-18 12:29:59 -070076 "RecordingActivityTracker.cpp",
Eric Laurentb5323222017-05-31 15:01:56 -070077 "TrackPlayerBase.cpp",
Jack Hed92d34e2016-12-08 15:44:14 -080078 ],
79 shared_libs: [
jiabin43810402019-10-24 14:58:31 -070080 "libaudiofoundation",
Kevin Rocard07be14f2018-01-24 06:14:03 +000081 "libaudioutils",
François Gaffied0ba9ed2018-11-05 11:50:42 +010082 "libaudiopolicy",
Eric Laurentb5323222017-05-31 15:01:56 -070083 "libaudiomanager",
Eric Tanace588c2018-09-12 11:44:43 -070084 "libbinder",
85 "libcutils",
86 "libdl",
87 "liblog",
Ray Essicked304702017-12-12 14:00:57 -080088 "libmedia_helper",
89 "libmediametrics",
Andy Hung4ef19fa2018-05-15 19:35:29 -070090 "libmediautils",
Eric Tanace588c2018-09-12 11:44:43 -070091 "libnblog",
Suren Baghdasaryan7435e7d2018-12-19 17:09:28 -080092 "libprocessgroup",
Eric Tanace588c2018-09-12 11:44:43 -070093 "libutils",
jiabinbf6b0ec2019-02-12 12:30:12 -080094 "libvibrator",
Jack Hed92d34e2016-12-08 15:44:14 -080095 ],
96 export_shared_lib_headers: ["libbinder"],
Steven Moreland25a9e552017-04-17 14:30:39 -070097
Marco Nelissena51151a2020-01-07 13:37:47 -080098 include_dirs: [
99 "frameworks/av/media/libnbaio/include_mono/",
100 ],
101 local_include_dirs: [
102 "include/media", "aidl"
103 ],
Chih-Hung Hsiehffe35582018-09-13 13:59:28 -0700104 header_libs: [
105 "libaudioclient_headers",
106 "libbase_headers",
Marco Nelissen6b285942019-10-21 14:52:30 -0700107 "libmedia_headers",
Chih-Hung Hsiehffe35582018-09-13 13:59:28 -0700108 ],
Steven Moreland25a9e552017-04-17 14:30:39 -0700109 export_header_lib_headers: ["libaudioclient_headers"],
110
Jack Hed92d34e2016-12-08 15:44:14 -0800111 // for memory heap analysis
112 static_libs: [
113 "libc_malloc_debug_backtrace",
Jack Hed92d34e2016-12-08 15:44:14 -0800114 ],
115 cflags: [
Steven Moreland25a9e552017-04-17 14:30:39 -0700116 "-Wall",
Jack Hed92d34e2016-12-08 15:44:14 -0800117 "-Werror",
118 "-Wno-error=deprecated-declarations",
Jack Hed92d34e2016-12-08 15:44:14 -0800119 ],
120 sanitize: {
121 misc_undefined : [
122 "unsigned-integer-overflow",
123 "signed-integer-overflow",
124 ],
125 },
126}
Colin Cross6bf135b2017-11-14 13:05:37 -0800127
128// AIDL interface between libaudioclient and framework.jar
129filegroup {
130 name: "libaudioclient_aidl",
131 srcs: [
132 "aidl/android/media/IPlayer.aidl",
133 ],
Dan Willemsenfaeab0f2018-09-14 21:17:46 -0700134 path: "aidl",
135}
136
137// Used to strip the "aidl/" from the path, so the build system can predict the
138// output filename.
139filegroup {
140 name: "libaudioclient_aidl_private",
141 srcs: [
142 "aidl/android/media/IAudioRecord.aidl",
143 ],
144 path: "aidl",
Colin Cross6bf135b2017-11-14 13:05:37 -0800145}
jiabinf6eb4c32020-02-25 14:06:25 -0800146
147// AIDL interface for audio track callback
148filegroup {
149 name: "libaudioclient_aidl_callback",
150 srcs: [
151 "aidl/android/media/IAudioTrackCallback.aidl",
152 ],
153 path: "aidl",
154}
Ytai Ben-Tsvi987d12c2020-03-24 17:35:44 -0700155
156aidl_interface {
157 name: "capture_state_listener-aidl",
158 local_include_dir: "aidl",
159 srcs: [
160 "aidl/android/media/ICaptureStateListener.aidl",
161 ],
162}