blob: a02311bcbc631c5c1ed5c32caf65d0c0fd1dbe7f [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 {
8 name: "libaudioclient",
Ivan Lozanoff6900d2017-08-01 15:47:38 -07009
10 aidl: {
11 export_aidl_headers: true,
12 local_include_dirs: ["aidl"],
13 include_dirs: [
14 "frameworks/av/media/libaudioclient/aidl",
15 ],
16 },
17
Jack Hed92d34e2016-12-08 15:44:14 -080018 srcs: [
Ivan Lozanoff6900d2017-08-01 15:47:38 -070019 // AIDL files for audioclient interfaces
20 // The headers for these interfaces will be available to any modules that
21 // include libaudioclient, at the path "aidl/package/path/BnFoo.h"
22 "aidl/android/media/IAudioRecord.aidl",
23
Jack Hed92d34e2016-12-08 15:44:14 -080024 "AudioEffect.cpp",
25 "AudioPolicy.cpp",
26 "AudioRecord.cpp",
27 "AudioSystem.cpp",
28 "AudioTrack.cpp",
29 "AudioTrackShared.cpp",
30 "IAudioFlinger.cpp",
31 "IAudioFlingerClient.cpp",
32 "IAudioPolicyService.cpp",
33 "IAudioPolicyServiceClient.cpp",
Jack Hed92d34e2016-12-08 15:44:14 -080034 "IAudioTrack.cpp",
35 "IEffect.cpp",
36 "IEffectClient.cpp",
37 "ToneGenerator.cpp",
Eric Laurentb5323222017-05-31 15:01:56 -070038 "PlayerBase.cpp",
39 "TrackPlayerBase.cpp",
Jack Hed92d34e2016-12-08 15:44:14 -080040 ],
41 shared_libs: [
42 "liblog",
43 "libcutils",
44 "libutils",
45 "libbinder",
46 "libdl",
47 "libaudioutils",
Eric Laurentb5323222017-05-31 15:01:56 -070048 "libaudiomanager",
Jack Hed92d34e2016-12-08 15:44:14 -080049 ],
50 export_shared_lib_headers: ["libbinder"],
Steven Moreland25a9e552017-04-17 14:30:39 -070051
52 local_include_dirs: ["include/media"],
53 header_libs: ["libaudioclient_headers"],
54 export_header_lib_headers: ["libaudioclient_headers"],
55
Jack Hed92d34e2016-12-08 15:44:14 -080056 // for memory heap analysis
57 static_libs: [
58 "libc_malloc_debug_backtrace",
Jack Hed92d34e2016-12-08 15:44:14 -080059 ],
60 cflags: [
Steven Moreland25a9e552017-04-17 14:30:39 -070061 "-Wall",
Jack Hed92d34e2016-12-08 15:44:14 -080062 "-Werror",
63 "-Wno-error=deprecated-declarations",
Jack Hed92d34e2016-12-08 15:44:14 -080064 ],
65 sanitize: {
66 misc_undefined : [
67 "unsigned-integer-overflow",
68 "signed-integer-overflow",
69 ],
70 },
71}