blob: e9b6fb19a15af29c28b8f8d87919f15f9db17f3e [file] [log] [blame]
Steven Moreland25a9e552017-04-17 14:30:39 -07001cc_library_headers {
2 name: "libaudioclient_headers",
3 vendor_available: true,
4 export_include_dirs: ["include"],
5}
6
Jack Hed92d34e2016-12-08 15:44:14 -08007cc_library_shared {
François Gaffied0ba9ed2018-11-05 11:50:42 +01008 name: "libaudiopolicy",
9 srcs: [
10 "AudioAttributes.cpp",
11 "AudioPolicy.cpp",
12 "AudioProductStrategy.cpp",
François Gaffie4b2018b2018-11-07 11:18:59 +010013 "AudioVolumeGroup.cpp",
François Gaffied0ba9ed2018-11-05 11:50:42 +010014 ],
15 shared_libs: [
16 "libaudioutils",
17 "libbinder",
18 "libcutils",
19 "liblog",
20 "libutils",
21 ],
22 cflags: [
23 "-Werror",
24 "-Wall",
25 ],
26 include_dirs: ["system/media/audio_utils/include"],
27 export_include_dirs: ["include"],
28}
29
30cc_library_shared {
Jack Hed92d34e2016-12-08 15:44:14 -080031 name: "libaudioclient",
Ivan Lozanoff6900d2017-08-01 15:47:38 -070032
33 aidl: {
34 export_aidl_headers: true,
35 local_include_dirs: ["aidl"],
36 include_dirs: [
37 "frameworks/av/media/libaudioclient/aidl",
38 ],
39 },
40
Jack Hed92d34e2016-12-08 15:44:14 -080041 srcs: [
Ivan Lozanoff6900d2017-08-01 15:47:38 -070042 // AIDL files for audioclient interfaces
43 // The headers for these interfaces will be available to any modules that
44 // include libaudioclient, at the path "aidl/package/path/BnFoo.h"
45 "aidl/android/media/IAudioRecord.aidl",
Colin Cross6bf135b2017-11-14 13:05:37 -080046 ":libaudioclient_aidl",
Ivan Lozanoff6900d2017-08-01 15:47:38 -070047
Jack Hed92d34e2016-12-08 15:44:14 -080048 "AudioEffect.cpp",
Jack Hed92d34e2016-12-08 15:44:14 -080049 "AudioRecord.cpp",
50 "AudioSystem.cpp",
51 "AudioTrack.cpp",
52 "AudioTrackShared.cpp",
53 "IAudioFlinger.cpp",
54 "IAudioFlingerClient.cpp",
55 "IAudioPolicyService.cpp",
56 "IAudioPolicyServiceClient.cpp",
Jack Hed92d34e2016-12-08 15:44:14 -080057 "IAudioTrack.cpp",
58 "IEffect.cpp",
59 "IEffectClient.cpp",
60 "ToneGenerator.cpp",
Eric Laurentb5323222017-05-31 15:01:56 -070061 "PlayerBase.cpp",
62 "TrackPlayerBase.cpp",
Jack Hed92d34e2016-12-08 15:44:14 -080063 ],
64 shared_libs: [
Kevin Rocard07be14f2018-01-24 06:14:03 +000065 "libaudioutils",
François Gaffied0ba9ed2018-11-05 11:50:42 +010066 "libaudiopolicy",
Eric Laurentb5323222017-05-31 15:01:56 -070067 "libaudiomanager",
Eric Tanace588c2018-09-12 11:44:43 -070068 "libbinder",
69 "libcutils",
70 "libdl",
71 "liblog",
Ray Essicked304702017-12-12 14:00:57 -080072 "libmedia_helper",
73 "libmediametrics",
Andy Hung4ef19fa2018-05-15 19:35:29 -070074 "libmediautils",
Eric Tanace588c2018-09-12 11:44:43 -070075 "libnblog",
Suren Baghdasaryan7435e7d2018-12-19 17:09:28 -080076 "libprocessgroup",
Eric Tanace588c2018-09-12 11:44:43 -070077 "libutils",
jiabinbf6b0ec2019-02-12 12:30:12 -080078 "libvibrator",
Jack Hed92d34e2016-12-08 15:44:14 -080079 ],
80 export_shared_lib_headers: ["libbinder"],
Steven Moreland25a9e552017-04-17 14:30:39 -070081
Ivan Lozano8cf3a072017-08-09 09:01:33 -070082 local_include_dirs: ["include/media", "aidl"],
Chih-Hung Hsiehffe35582018-09-13 13:59:28 -070083 header_libs: [
84 "libaudioclient_headers",
85 "libbase_headers",
86 ],
Steven Moreland25a9e552017-04-17 14:30:39 -070087 export_header_lib_headers: ["libaudioclient_headers"],
88
Jack Hed92d34e2016-12-08 15:44:14 -080089 // for memory heap analysis
90 static_libs: [
91 "libc_malloc_debug_backtrace",
Jack Hed92d34e2016-12-08 15:44:14 -080092 ],
93 cflags: [
Steven Moreland25a9e552017-04-17 14:30:39 -070094 "-Wall",
Jack Hed92d34e2016-12-08 15:44:14 -080095 "-Werror",
96 "-Wno-error=deprecated-declarations",
Jack Hed92d34e2016-12-08 15:44:14 -080097 ],
98 sanitize: {
99 misc_undefined : [
100 "unsigned-integer-overflow",
101 "signed-integer-overflow",
102 ],
103 },
104}
Colin Cross6bf135b2017-11-14 13:05:37 -0800105
106// AIDL interface between libaudioclient and framework.jar
107filegroup {
108 name: "libaudioclient_aidl",
109 srcs: [
110 "aidl/android/media/IPlayer.aidl",
111 ],
112}