blob: 03bd6ce9453c09fc00165a52075e59894be0e55f [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",
Mikhail Naganov2996f672019-04-18 12:29:59 -070062 "RecordingActivityTracker.cpp",
Eric Laurentb5323222017-05-31 15:01:56 -070063 "TrackPlayerBase.cpp",
Jack Hed92d34e2016-12-08 15:44:14 -080064 ],
65 shared_libs: [
Kevin Rocard07be14f2018-01-24 06:14:03 +000066 "libaudioutils",
François Gaffied0ba9ed2018-11-05 11:50:42 +010067 "libaudiopolicy",
Eric Laurentb5323222017-05-31 15:01:56 -070068 "libaudiomanager",
Eric Tanace588c2018-09-12 11:44:43 -070069 "libbinder",
70 "libcutils",
71 "libdl",
72 "liblog",
Ray Essicked304702017-12-12 14:00:57 -080073 "libmedia_helper",
74 "libmediametrics",
Andy Hung4ef19fa2018-05-15 19:35:29 -070075 "libmediautils",
Eric Tanace588c2018-09-12 11:44:43 -070076 "libnblog",
Suren Baghdasaryan7435e7d2018-12-19 17:09:28 -080077 "libprocessgroup",
Eric Tanace588c2018-09-12 11:44:43 -070078 "libutils",
jiabinbf6b0ec2019-02-12 12:30:12 -080079 "libvibrator",
Jack Hed92d34e2016-12-08 15:44:14 -080080 ],
81 export_shared_lib_headers: ["libbinder"],
Steven Moreland25a9e552017-04-17 14:30:39 -070082
Ivan Lozano8cf3a072017-08-09 09:01:33 -070083 local_include_dirs: ["include/media", "aidl"],
Chih-Hung Hsiehffe35582018-09-13 13:59:28 -070084 header_libs: [
85 "libaudioclient_headers",
86 "libbase_headers",
87 ],
Steven Moreland25a9e552017-04-17 14:30:39 -070088 export_header_lib_headers: ["libaudioclient_headers"],
89
Jack Hed92d34e2016-12-08 15:44:14 -080090 // for memory heap analysis
91 static_libs: [
92 "libc_malloc_debug_backtrace",
Jack Hed92d34e2016-12-08 15:44:14 -080093 ],
94 cflags: [
Steven Moreland25a9e552017-04-17 14:30:39 -070095 "-Wall",
Jack Hed92d34e2016-12-08 15:44:14 -080096 "-Werror",
97 "-Wno-error=deprecated-declarations",
Jack Hed92d34e2016-12-08 15:44:14 -080098 ],
99 sanitize: {
100 misc_undefined : [
101 "unsigned-integer-overflow",
102 "signed-integer-overflow",
103 ],
104 },
105}
Colin Cross6bf135b2017-11-14 13:05:37 -0800106
107// AIDL interface between libaudioclient and framework.jar
108filegroup {
109 name: "libaudioclient_aidl",
110 srcs: [
111 "aidl/android/media/IPlayer.aidl",
112 ],
113}