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 "libaudiohal@5.0", 27 "libaudiohal@6.0", 28 "libaudiohal@7.0", 29 "libaudiohal@7.1", 30 "libaudiohal@aidl", 31 ], 32 33 shared_libs: [ 34 "audioclient-types-aidl-cpp", 35 "libbinder_ndk", 36 "libdl", 37 "libhidlbase", 38 "liblog", 39 "libutils", 40 ], 41 42 header_libs: [ 43 "libaudiohal_headers", 44 "libbase_headers", 45 "liberror_headers", 46 "libmediautils_headers", 47 ], 48} 49 50cc_library_shared { 51 name: "libaudiohal_deathhandler", 52 53 srcs: [ 54 "HalDeathHandlerHidl.cpp", 55 ], 56 57 cflags: [ 58 "-Wall", 59 "-Werror", 60 ], 61 62 shared_libs: [ 63 "libhidlbase", 64 "liblog", 65 "libutils", 66 ], 67 68 header_libs: [ 69 "libaudiohal_headers", 70 ], 71} 72 73cc_library_headers { 74 name: "libaudiohal_headers", 75 76 header_libs: [ 77 "libeffectsconfig_headers", 78 ], 79 80 export_header_lib_headers: ["libeffectsconfig_headers"], 81 82 export_include_dirs: ["include"], 83} 84 85cc_library_headers { 86 name: "libaudiohalimpl_headers", 87 88 header_libs: ["libaudiohal_headers"], 89 export_header_lib_headers: ["libaudiohal_headers"], 90 export_include_dirs: ["impl"], 91} 92