Files
hardware_interfaces/graphics/allocator/2.0/utils/passthrough/Android.bp
Chia-I Wu 699df2167a graphics: use allocator HAL support library in default impl
Rename Gralloc0Allocator to Gralloc0Hal and make it inherit from
AllocatorHal.  Do the same to Gralloc1Allocator.  Add GrallocLoader
to load either of Gralloc[01]Hal and create a IAllocator instance.

Test: boots and VTS
Change-Id: I09ae680c0086ca9e73e412a34d7cd2f3665d3bc2
2018-01-14 21:39:38 -08:00

30 lines
844 B
Plaintext

cc_library_static {
name: "android.hardware.graphics.allocator@2.0-passthrough",
defaults: ["hidl_defaults"],
vendor: true,
srcs: [
"Gralloc0Hal.cpp",
"Gralloc1Hal.cpp",
"GrallocLoader.cpp",
],
shared_libs: [
"android.hardware.graphics.allocator@2.0",
"android.hardware.graphics.mapper@2.0",
"libhardware",
],
export_shared_lib_headers: [
"android.hardware.graphics.allocator@2.0",
"android.hardware.graphics.mapper@2.0",
"libhardware",
],
header_libs: [
"android.hardware.graphics.allocator@2.0-hal",
"libgrallocmapperincludes",
],
export_header_lib_headers: [
"android.hardware.graphics.allocator@2.0-hal",
],
export_include_dirs: ["include"],
cflags: ["-DLOG_TAG=\"AllocatorHal\""],
}