1package { 2 // See: http://go/android-license-faq 3 // A large-scale-change added 'default_applicable_licenses' to import 4 // all of the 'license_kinds' from "frameworks_av_license" 5 // to get the below license kinds: 6 // SPDX-license-identifier-Apache-2.0 7 default_applicable_licenses: ["frameworks_av_license"], 8} 9 10cc_library_shared { 11 name: "libaudiohal", 12 13 srcs: [ 14 "DevicesFactoryHalInterface.cpp", 15 "EffectsFactoryHalInterface.cpp", 16 "FactoryHal.cpp", 17 ], 18 19 cflags: [ 20 "-Wall", 21 "-Werror", 22 "-Wextra", 23 ], 24 25 required: [ 26 "[email protected]", 27 "[email protected]", 28 "[email protected]", 29 "libaudiohal@aidl", 30 ], 31 32 shared_libs: [ 33 "audioclient-types-aidl-cpp", 34 "libbinder_ndk", 35 "libdl", 36 "libhidlbase", 37 "liblog", 38 "libutils", 39 ], 40 41 header_libs: [ 42 "libaudiohal_headers", 43 "libbase_headers", 44 "liberror_headers", 45 "libmediautils_headers", 46 ], 47 48 export_include_dirs: ["include"], 49} 50 51cc_library_shared { 52 name: "libaudiohal_deathhandler", 53 54 srcs: [ 55 "HalDeathHandlerHidl.cpp", 56 ], 57 58 cflags: [ 59 "-Wall", 60 "-Werror", 61 ], 62 63 shared_libs: [ 64 "libhidlbase", 65 "liblog", 66 "libutils", 67 ], 68 69 header_libs: [ 70 "libaudiohal_headers", 71 ], 72} 73 74cc_library_headers { 75 name: "libaudiohal_headers", 76 77 header_libs: [ 78 "libeffectsconfig_headers", 79 ], 80 81 export_header_lib_headers: ["libeffectsconfig_headers"], 82 83 export_include_dirs: ["include"], 84} 85 86cc_library_headers { 87 name: "libaudiohalimpl_headers", 88 89 header_libs: ["libaudiohal_headers"], 90 export_header_lib_headers: ["libaudiohal_headers"], 91 export_include_dirs: ["impl"], 92} 93