blob: 2752ba646b802a82a127e9880967ac449dd5a907 [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: [
24 "libaudioutils",
25 "libbinder",
26 "libcutils",
27 "liblog",
28 "libutils",
29 ],
30 cflags: [
31 "-Werror",
32 "-Wall",
33 ],
34 include_dirs: ["system/media/audio_utils/include"],
35 export_include_dirs: ["include"],
36}
37
38cc_library_shared {
Jack Hed92d34e2016-12-08 15:44:14 -080039 name: "libaudioclient",
Ivan Lozanoff6900d2017-08-01 15:47:38 -070040
41 aidl: {
42 export_aidl_headers: true,
43 local_include_dirs: ["aidl"],
44 include_dirs: [
45 "frameworks/av/media/libaudioclient/aidl",
46 ],
47 },
48
Jack Hed92d34e2016-12-08 15:44:14 -080049 srcs: [
Ivan Lozanoff6900d2017-08-01 15:47:38 -070050 // AIDL files for audioclient interfaces
51 // The headers for these interfaces will be available to any modules that
52 // include libaudioclient, at the path "aidl/package/path/BnFoo.h"
Dan Willemsenfaeab0f2018-09-14 21:17:46 -070053 ":libaudioclient_aidl_private",
Colin Cross6bf135b2017-11-14 13:05:37 -080054 ":libaudioclient_aidl",
Ivan Lozanoff6900d2017-08-01 15:47:38 -070055
Jack Hed92d34e2016-12-08 15:44:14 -080056 "AudioEffect.cpp",
Jack Hed92d34e2016-12-08 15:44:14 -080057 "AudioRecord.cpp",
58 "AudioSystem.cpp",
59 "AudioTrack.cpp",
60 "AudioTrackShared.cpp",
61 "IAudioFlinger.cpp",
62 "IAudioFlingerClient.cpp",
63 "IAudioPolicyService.cpp",
64 "IAudioPolicyServiceClient.cpp",
Jack Hed92d34e2016-12-08 15:44:14 -080065 "IAudioTrack.cpp",
66 "IEffect.cpp",
67 "IEffectClient.cpp",
68 "ToneGenerator.cpp",
Eric Laurentb5323222017-05-31 15:01:56 -070069 "PlayerBase.cpp",
Mikhail Naganov2996f672019-04-18 12:29:59 -070070 "RecordingActivityTracker.cpp",
Eric Laurentb5323222017-05-31 15:01:56 -070071 "TrackPlayerBase.cpp",
Jack Hed92d34e2016-12-08 15:44:14 -080072 ],
73 shared_libs: [
jiabin43810402019-10-24 14:58:31 -070074 "libaudiofoundation",
Kevin Rocard07be14f2018-01-24 06:14:03 +000075 "libaudioutils",
François Gaffied0ba9ed2018-11-05 11:50:42 +010076 "libaudiopolicy",
Eric Laurentb5323222017-05-31 15:01:56 -070077 "libaudiomanager",
Eric Tanace588c2018-09-12 11:44:43 -070078 "libbinder",
79 "libcutils",
80 "libdl",
81 "liblog",
Ray Essicked304702017-12-12 14:00:57 -080082 "libmedia_helper",
83 "libmediametrics",
Andy Hung4ef19fa2018-05-15 19:35:29 -070084 "libmediautils",
Eric Tanace588c2018-09-12 11:44:43 -070085 "libnblog",
Suren Baghdasaryan7435e7d2018-12-19 17:09:28 -080086 "libprocessgroup",
Eric Tanace588c2018-09-12 11:44:43 -070087 "libutils",
jiabinbf6b0ec2019-02-12 12:30:12 -080088 "libvibrator",
Jack Hed92d34e2016-12-08 15:44:14 -080089 ],
90 export_shared_lib_headers: ["libbinder"],
Steven Moreland25a9e552017-04-17 14:30:39 -070091
Ivan Lozano8cf3a072017-08-09 09:01:33 -070092 local_include_dirs: ["include/media", "aidl"],
Chih-Hung Hsiehffe35582018-09-13 13:59:28 -070093 header_libs: [
94 "libaudioclient_headers",
95 "libbase_headers",
96 ],
Steven Moreland25a9e552017-04-17 14:30:39 -070097 export_header_lib_headers: ["libaudioclient_headers"],
98
Jack Hed92d34e2016-12-08 15:44:14 -080099 // for memory heap analysis
100 static_libs: [
101 "libc_malloc_debug_backtrace",
Jack Hed92d34e2016-12-08 15:44:14 -0800102 ],
103 cflags: [
Steven Moreland25a9e552017-04-17 14:30:39 -0700104 "-Wall",
Jack Hed92d34e2016-12-08 15:44:14 -0800105 "-Werror",
106 "-Wno-error=deprecated-declarations",
Jack Hed92d34e2016-12-08 15:44:14 -0800107 ],
108 sanitize: {
109 misc_undefined : [
110 "unsigned-integer-overflow",
111 "signed-integer-overflow",
112 ],
113 },
114}
Colin Cross6bf135b2017-11-14 13:05:37 -0800115
116// AIDL interface between libaudioclient and framework.jar
117filegroup {
118 name: "libaudioclient_aidl",
119 srcs: [
120 "aidl/android/media/IPlayer.aidl",
121 ],
Dan Willemsenfaeab0f2018-09-14 21:17:46 -0700122 path: "aidl",
123}
124
125// Used to strip the "aidl/" from the path, so the build system can predict the
126// output filename.
127filegroup {
128 name: "libaudioclient_aidl_private",
129 srcs: [
130 "aidl/android/media/IAudioRecord.aidl",
131 ],
132 path: "aidl",
Colin Cross6bf135b2017-11-14 13:05:37 -0800133}