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 cflags: [ 20 "-Wall", 21 "-Wextra", 22 "-Werror", 23 "-fvisibility=hidden", 24 ], 25 shared_libs: [ 26 "android.hardware.audio.common-util", 27 "android.hidl.allocator@1.0", 28 "android.hidl.memory@1.0", 29 "libaudiofoundation", 30 "libaudiohal_deathhandler", 31 "libaudioutils", 32 "libbase", 33 "libbinder", 34 "libcutils", 35 "libfmq", 36 "libhardware", 37 "libhidlbase", 38 "libhidlmemory", 39 "liblog", 40 "libmedia_helper", 41 "libmediautils", 42 "libutils", 43 ], 44 header_libs: [ 45 "android.hardware.audio.common.util@all-versions", 46 "libaudioclient_headers", 47 "libaudiohal_headers" 48 ], 49 50 export_shared_lib_headers: [ 51 "libfmq", 52 ], 53} 54 55cc_library_shared { 56 name: "libaudiohal@2.0", 57 defaults: ["libaudiohal_default"], 58 shared_libs: [ 59 "android.hardware.audio.common@2.0", 60 "android.hardware.audio.common@2.0-util", 61 "android.hardware.audio.effect@2.0", 62 "android.hardware.audio@2.0", 63 ], 64 cflags: [ 65 "-DMAJOR_VERSION=2", 66 "-DMINOR_VERSION=0", 67 "-include common/all-versions/VersionMacro.h", 68 ] 69} 70 71cc_library_shared { 72 name: "libaudiohal@4.0", 73 defaults: ["libaudiohal_default"], 74 shared_libs: [ 75 "android.hardware.audio.common@4.0", 76 "android.hardware.audio.common@4.0-util", 77 "android.hardware.audio.effect@4.0", 78 "android.hardware.audio@4.0", 79 ], 80 cflags: [ 81 "-DMAJOR_VERSION=4", 82 "-DMINOR_VERSION=0", 83 "-include common/all-versions/VersionMacro.h", 84 ] 85} 86 87cc_library_shared { 88 name: "libaudiohal@5.0", 89 defaults: ["libaudiohal_default"], 90 shared_libs: [ 91 "android.hardware.audio.common@5.0", 92 "android.hardware.audio.common@5.0-util", 93 "android.hardware.audio.effect@5.0", 94 "android.hardware.audio@5.0", 95 ], 96 cflags: [ 97 "-DMAJOR_VERSION=5", 98 "-DMINOR_VERSION=0", 99 "-include common/all-versions/VersionMacro.h", 100 ] 101} 102 103cc_library_shared { 104 name: "libaudiohal@6.0", 105 defaults: ["libaudiohal_default"], 106 shared_libs: [ 107 "android.hardware.audio.common@6.0", 108 "android.hardware.audio.common@6.0-util", 109 "android.hardware.audio.effect@6.0", 110 "android.hardware.audio@6.0", 111 ], 112 cflags: [ 113 "-DMAJOR_VERSION=6", 114 "-DMINOR_VERSION=0", 115 "-include common/all-versions/VersionMacro.h", 116 ] 117} 118 119