blob: b111b780352e48cdb20a43afdf3b7cfbce594deb [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",
13 ],
14 shared_libs: [
15 "libaudioutils",
16 "libbinder",
17 "libcutils",
18 "liblog",
19 "libutils",
20 ],
21 cflags: [
22 "-Werror",
23 "-Wall",
24 ],
25 include_dirs: ["system/media/audio_utils/include"],
26 export_include_dirs: ["include"],
27}
28
29cc_library_shared {
Jack Hed92d34e2016-12-08 15:44:14 -080030 name: "libaudioclient",
Ivan Lozanoff6900d2017-08-01 15:47:38 -070031
32 aidl: {
33 export_aidl_headers: true,
34 local_include_dirs: ["aidl"],
35 include_dirs: [
36 "frameworks/av/media/libaudioclient/aidl",
37 ],
38 },
39
Jack Hed92d34e2016-12-08 15:44:14 -080040 srcs: [
Ivan Lozanoff6900d2017-08-01 15:47:38 -070041 // AIDL files for audioclient interfaces
42 // The headers for these interfaces will be available to any modules that
43 // include libaudioclient, at the path "aidl/package/path/BnFoo.h"
44 "aidl/android/media/IAudioRecord.aidl",
Colin Cross6bf135b2017-11-14 13:05:37 -080045 ":libaudioclient_aidl",
Ivan Lozanoff6900d2017-08-01 15:47:38 -070046
Jack Hed92d34e2016-12-08 15:44:14 -080047 "AudioEffect.cpp",
Jack Hed92d34e2016-12-08 15:44:14 -080048 "AudioRecord.cpp",
49 "AudioSystem.cpp",
50 "AudioTrack.cpp",
51 "AudioTrackShared.cpp",
52 "IAudioFlinger.cpp",
53 "IAudioFlingerClient.cpp",
54 "IAudioPolicyService.cpp",
55 "IAudioPolicyServiceClient.cpp",
Jack Hed92d34e2016-12-08 15:44:14 -080056 "IAudioTrack.cpp",
57 "IEffect.cpp",
58 "IEffectClient.cpp",
59 "ToneGenerator.cpp",
Eric Laurentb5323222017-05-31 15:01:56 -070060 "PlayerBase.cpp",
61 "TrackPlayerBase.cpp",
Jack Hed92d34e2016-12-08 15:44:14 -080062 ],
63 shared_libs: [
Kevin Rocard07be14f2018-01-24 06:14:03 +000064 "libaudioutils",
François Gaffied0ba9ed2018-11-05 11:50:42 +010065 "libaudiopolicy",
Eric Laurentb5323222017-05-31 15:01:56 -070066 "libaudiomanager",
Eric Tanace588c2018-09-12 11:44:43 -070067 "libbinder",
68 "libcutils",
69 "libdl",
70 "liblog",
Ray Essicked304702017-12-12 14:00:57 -080071 "libmedia_helper",
72 "libmediametrics",
Andy Hung4ef19fa2018-05-15 19:35:29 -070073 "libmediautils",
Eric Tanace588c2018-09-12 11:44:43 -070074 "libnblog",
Suren Baghdasaryan7435e7d2018-12-19 17:09:28 -080075 "libprocessgroup",
Eric Tanace588c2018-09-12 11:44:43 -070076 "libutils",
jiabinbf6b0ec2019-02-12 12:30:12 -080077 "libvibrator",
Jack Hed92d34e2016-12-08 15:44:14 -080078 ],
79 export_shared_lib_headers: ["libbinder"],
Steven Moreland25a9e552017-04-17 14:30:39 -070080
Ivan Lozano8cf3a072017-08-09 09:01:33 -070081 local_include_dirs: ["include/media", "aidl"],
Chih-Hung Hsiehffe35582018-09-13 13:59:28 -070082 header_libs: [
83 "libaudioclient_headers",
84 "libbase_headers",
85 ],
Steven Moreland25a9e552017-04-17 14:30:39 -070086 export_header_lib_headers: ["libaudioclient_headers"],
87
Jack Hed92d34e2016-12-08 15:44:14 -080088 // for memory heap analysis
89 static_libs: [
90 "libc_malloc_debug_backtrace",
Jack Hed92d34e2016-12-08 15:44:14 -080091 ],
92 cflags: [
Steven Moreland25a9e552017-04-17 14:30:39 -070093 "-Wall",
Jack Hed92d34e2016-12-08 15:44:14 -080094 "-Werror",
95 "-Wno-error=deprecated-declarations",
Jack Hed92d34e2016-12-08 15:44:14 -080096 ],
97 sanitize: {
98 misc_undefined : [
99 "unsigned-integer-overflow",
100 "signed-integer-overflow",
101 ],
102 },
103}
Colin Cross6bf135b2017-11-14 13:05:37 -0800104
105// AIDL interface between libaudioclient and framework.jar
106filegroup {
107 name: "libaudioclient_aidl",
108 srcs: [
109 "aidl/android/media/IPlayer.aidl",
110 ],
111}