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

Commit 40b59a61 authored by Steven Moreland's avatar Steven Moreland
Browse files

libcutils_test: static libjsoncpp

The 32-bit variant of libjsoncpp is not always installed
on 64-bit devices, so it must always be statically included.

We should probably collapse libcutils_test with
libcutils_test_static in the future.

Bug: 285357054
Test: libcutils_test
Change-Id: Ic84901ce5af766338b2cab07c3cf10841ba9a150
parent 9bf90f14
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -286,11 +286,14 @@ cc_defaults {
    ],
}

always_static_test_libraries = [
    "libjsoncpp",
]

test_libraries = [
    "libcutils",
    "liblog",
    "libbase",
    "libjsoncpp",
    "libprocessgroup",
    "libcgrouprc",
]
@@ -301,6 +304,7 @@ cc_test {
    defaults: ["libcutils_test_default"],
    host_supported: true,
    shared_libs: test_libraries,
    static_libs: always_static_test_libraries,
    require_root: true,
}

@@ -310,7 +314,7 @@ cc_defaults {
    static_libs: [
        "libc",
        "libcgrouprc_format",
    ] + test_libraries,
    ] + test_libraries + always_static_test_libraries,
    stl: "libc++_static",
    require_root: true,