Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b511645d authored by Chia-I Wu's avatar Chia-I Wu
Browse files

graphics: make allocator default impl a static library

Convert the default impl into a static library,
android.hardware.graphics.allocator@2.0-passthrough.

Test: boots and VTS
Change-Id: I8ec8b30766462ecb3fb789af7c6dbb3c088ccf57
parent d6daa8dd
Loading
Loading
Loading
Loading
+5 −6
Original line number Diff line number Diff line
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 {
+23 −0
Original line number Diff line number Diff line
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",
    ],
}
Loading