| cc_defaults { |
| name: "libaudiohal_default", |
| |
| srcs: [ |
| "DeviceHalLocal.cpp", |
| "DevicesFactoryHalHybrid.cpp", |
| "DevicesFactoryHalLocal.cpp", |
| "StreamHalLocal.cpp", |
| |
| "ConversionHelperHidl.cpp", |
| "DeviceHalHidl.cpp", |
| "DevicesFactoryHalHidl.cpp", |
| "EffectBufferHalHidl.cpp", |
| "EffectHalHidl.cpp", |
| "EffectsFactoryHalHidl.cpp", |
| "StreamHalHidl.cpp", |
| ], |
| |
| export_include_dirs: ["include"], |
| |
| cflags: [ |
| "-Wall", |
| "-Wextra", |
| "-Werror", |
| ], |
| shared_libs: [ |
| "android.hardware.audio.common-util", |
| "android.hidl.allocator@1.0", |
| "android.hidl.memory@1.0", |
| "libaudiohal_deathhandler", |
| "libaudioutils", |
| "libbase", |
| "libbinder", |
| "libcutils", |
| "libfmq", |
| "libhardware", |
| "libhidlbase", |
| "libhidlmemory", |
| "liblog", |
| "libmedia_helper", |
| "libmediautils", |
| "libutils", |
| ], |
| header_libs: [ |
| "android.hardware.audio.common.util@all-versions", |
| "libaudioclient_headers", |
| "libaudiohal_headers" |
| ], |
| |
| export_shared_lib_headers: [ |
| "libfmq", |
| ], |
| } |
| |
| cc_library_shared { |
| name: "libaudiohal@2.0", |
| defaults: ["libaudiohal_default"], |
| shared_libs: [ |
| "android.hardware.audio.common@2.0", |
| "android.hardware.audio.common@2.0-util", |
| "android.hardware.audio.effect@2.0", |
| "android.hardware.audio@2.0", |
| ], |
| cflags: [ |
| "-DMAJOR_VERSION=2", |
| "-DMINOR_VERSION=0", |
| "-include common/all-versions/VersionMacro.h", |
| ] |
| } |
| |
| cc_library_shared { |
| name: "libaudiohal@4.0", |
| defaults: ["libaudiohal_default"], |
| shared_libs: [ |
| "android.hardware.audio.common@4.0", |
| "android.hardware.audio.common@4.0-util", |
| "android.hardware.audio.effect@4.0", |
| "android.hardware.audio@4.0", |
| ], |
| cflags: [ |
| "-DMAJOR_VERSION=4", |
| "-DMINOR_VERSION=0", |
| "-include common/all-versions/VersionMacro.h", |
| ] |
| } |
| |
| cc_library_shared { |
| name: "libaudiohal@5.0", |
| defaults: ["libaudiohal_default"], |
| shared_libs: [ |
| "android.hardware.audio.common@5.0", |
| "android.hardware.audio.common@5.0-util", |
| "android.hardware.audio.effect@5.0", |
| "android.hardware.audio@5.0", |
| ], |
| cflags: [ |
| "-DMAJOR_VERSION=5", |
| "-DMINOR_VERSION=0", |
| "-include common/all-versions/VersionMacro.h", |
| ] |
| } |