1cc_defaults { 2 name: "libaudiohal_default", 3 4 srcs: [ 5 "DeviceHalLocal.cpp", 6 "DevicesFactoryHalHybrid.cpp", 7 "DevicesFactoryHalLocal.cpp", 8 "StreamHalLocal.cpp", 9 10 "ConversionHelperHidl.cpp", 11 "DeviceHalHidl.cpp", 12 "DevicesFactoryHalHidl.cpp", 13 "EffectBufferHalHidl.cpp", 14 "EffectHalHidl.cpp", 15 "EffectsFactoryHalHidl.cpp", 16 "StreamHalHidl.cpp", 17 ], 18 19 export_include_dirs: ["include"], 20 21 cflags: [ 22 "-Wall", 23 "-Wextra", 24 "-Werror", 25 ], 26 shared_libs: [ 27 "android.hardware.audio.common-util", 28 "android.hidl.allocator@1.0", 29 "android.hidl.memory@1.0", 30 "libaudiohal_deathhandler", 31 "libaudioutils", 32 "libbase", 33 "libbinder", 34 "libcutils", 35 "libfmq", 36 "libhardware", 37 "libhidlbase", 38 "libhidlmemory", 39 "libhidltransport", 40 "libhwbinder", 41 "liblog", 42 "libmedia_helper", 43 "libmediautils", 44 "libutils", 45 ], 46 header_libs: [ 47 "android.hardware.audio.common.util@all-versions", 48 "libaudiohal_headers" 49 ], 50 51 export_shared_lib_headers: [ 52 "libfmq", 53 ], 54} 55 56cc_library_shared { 57 name: "libaudiohal@2.0", 58 defaults: ["libaudiohal_default"], 59 shared_libs: [ 60 "android.hardware.audio.common@2.0", 61 "android.hardware.audio.common@2.0-util", 62 "android.hardware.audio.effect@2.0", 63 "android.hardware.audio@2.0", 64 ], 65 cflags: [ 66 "-DMAJOR_VERSION=2", 67 "-DMINOR_VERSION=0", 68 "-include common/all-versions/VersionMacro.h", 69 ] 70} 71 72cc_library_shared { 73 name: "libaudiohal@4.0", 74 defaults: ["libaudiohal_default"], 75 shared_libs: [ 76 "android.hardware.audio.common@4.0", 77 "android.hardware.audio.common@4.0-util", 78 "android.hardware.audio.effect@4.0", 79 "android.hardware.audio@4.0", 80 ], 81 cflags: [ 82 "-DMAJOR_VERSION=4", 83 "-DMINOR_VERSION=0", 84 "-include common/all-versions/VersionMacro.h", 85 ] 86} 87 88cc_library_shared { 89 name: "libaudiohal@5.0", 90 defaults: ["libaudiohal_default"], 91 shared_libs: [ 92 "android.hardware.audio.common@5.0", 93 "android.hardware.audio.common@5.0-util", 94 "android.hardware.audio.effect@5.0", 95 "android.hardware.audio@5.0", 96 ], 97 cflags: [ 98 "-DMAJOR_VERSION=5", 99 "-DMINOR_VERSION=0", 100 "-include common/all-versions/VersionMacro.h", 101 ] 102} 103