1cc_library_headers { 2 name: "libaudioclient_headers", 3 vendor_available: true, 4 export_include_dirs: ["include"], 5} 6 7cc_library_shared { 8 name: "libaudioclient", 9 srcs: [ 10 "AudioEffect.cpp", 11 "AudioPolicy.cpp", 12 "AudioRecord.cpp", 13 "AudioSystem.cpp", 14 "AudioTrack.cpp", 15 "AudioTrackShared.cpp", 16 "IAudioFlinger.cpp", 17 "IAudioFlingerClient.cpp", 18 "IAudioPolicyService.cpp", 19 "IAudioPolicyServiceClient.cpp", 20 "IAudioRecord.cpp", 21 "IAudioTrack.cpp", 22 "IEffect.cpp", 23 "IEffectClient.cpp", 24 "ToneGenerator.cpp", 25 "PlayerBase.cpp", 26 "TrackPlayerBase.cpp", 27 ], 28 shared_libs: [ 29 "liblog", 30 "libcutils", 31 "libutils", 32 "libbinder", 33 "libdl", 34 "libaudioutils", 35 "libaudiomanager", 36 ], 37 export_shared_lib_headers: ["libbinder"], 38 39 local_include_dirs: ["include/media"], 40 header_libs: ["libaudioclient_headers"], 41 export_header_lib_headers: ["libaudioclient_headers"], 42 43 // for memory heap analysis 44 static_libs: [ 45 "libc_malloc_debug_backtrace", 46 "libc_logging", 47 ], 48 cflags: [ 49 "-Wall", 50 "-Werror", 51 "-Wno-error=deprecated-declarations", 52 ], 53 sanitize: { 54 misc_undefined : [ 55 "unsigned-integer-overflow", 56 "signed-integer-overflow", 57 ], 58 }, 59} 60