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

Commit 3242d5fd authored by Vishnu Nair's avatar Vishnu Nair
Browse files

Statically link missing libary to SurfaceFlinger_test

Some targets do not have the libary in their system or
vendor image so the test fails to run.

Fixes: 169975342
Test: m SurfaceFlinger_test
Test: Treehugger run on cf_x86_64_phone-userdebug
Change-Id: I9a08146468f69b22ac5b397d0d5c0f195cde972f
parent 5bdb7e6e
Loading
Loading
Loading
Loading
+16 −3
Original line number Diff line number Diff line
cc_library_shared {
    name: "liblayers_proto",
cc_defaults {
    name: "liblayers_proto_defaults",
    export_include_dirs: ["include"],

    srcs: [
@@ -33,7 +33,20 @@ cc_library_shared {
        "-Wno-old-style-cast",
        "-Wno-undef",
    ],
}

cc_library_shared {
    name: "liblayers_proto",
    defaults: [
        "liblayers_proto_defaults",
    ],
}

cc_library_static {
    name: "liblayers_proto_static",
    defaults: [
        "liblayers_proto_defaults",
    ],
}

java_library_static {
+3 −2
Original line number Diff line number Diff line
@@ -45,18 +45,19 @@ cc_test {
    data: ["SurfaceFlinger_test.filter"],
    static_libs: [
        "libtrace_proto",
        "liblayers_proto_static",
        "android.hardware.graphics.composer@2.1",
    ],
    shared_libs: [
        "android.hardware.graphics.common-ndk_platform",
        "android.hardware.graphics.common@1.2",
        "android.hardware.graphics.composer@2.1",
        "libandroid",
        "libbase",
        "libbinder",
        "libcutils",
        "libEGL",
        "libGLESv2",
        "libgui",
        "liblayers_proto",
        "liblog",
        "libnativewindow",
        "libprotobuf-cpp-full",