graphics: make allocator default impl a static library am: b511645d99

am: 80a04eb319

Change-Id: I35c1242805ac7fff18f36b75158e2da007f61396
This commit is contained in:
Chia-I Wu
2018-01-16 18:19:55 +00:00
committed by android-build-merger
6 changed files with 28 additions and 6 deletions

View File

@@ -1,10 +1,12 @@
cc_library_shared {
name: "android.hardware.graphics.allocator@2.0-impl",
defaults: ["hidl_defaults"],
proprietary: true,
vendor: true,
relative_install_path: "hw",
srcs: ["Gralloc.cpp", "Gralloc0Allocator.cpp", "Gralloc1Allocator.cpp"],
cppflags: ["-Wall", "-Wextra"],
srcs: ["Gralloc.cpp"],
static_libs: [
"android.hardware.graphics.allocator@2.0-passthrough",
],
shared_libs: [
"android.hardware.graphics.allocator@2.0",
"libbase",
@@ -15,9 +17,6 @@ cc_library_shared {
"liblog",
"libutils",
],
header_libs: [
"libgrallocmapperincludes",
],
}
cc_binary {

View File

@@ -0,0 +1,23 @@
cc_library_static {
name: "android.hardware.graphics.allocator@2.0-passthrough",
defaults: ["hidl_defaults"],
vendor: true,
srcs: [
"Gralloc0Allocator.cpp",
"Gralloc1Allocator.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",
],
export_include_dirs: ["."],
header_libs: [
"libgrallocmapperincludes",
],
}