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

Commit 3bc7d607 authored by Colin Cross's avatar Colin Cross Committed by android-build-merger
Browse files

Merge "Make libutils test compile on the host" am: f5fd4888

am: a05a666c

Change-Id: Iaf009f378a9b29b56297b5ba3f061bad6cec3c71
parents f100ad84 a05a666c
Loading
Loading
Loading
Loading
+33 −17
Original line number Original line Diff line number Diff line
@@ -18,33 +18,49 @@


cc_test {
cc_test {
    name: "libutils_tests",
    name: "libutils_tests",
    host_supported: true,


    srcs: [
    srcs: [
        "BlobCache_test.cpp",
        "BitSet_test.cpp",
        "BitSet_test.cpp",
        "Looper_test.cpp",
        "LruCache_test.cpp",
        "LruCache_test.cpp",
        "RefBase_test.cpp",
        "String8_test.cpp",
        "String8_test.cpp",
        "StrongPointer_test.cpp",
        "StrongPointer_test.cpp",
        "SystemClock_test.cpp",
        "Unicode_test.cpp",
        "Unicode_test.cpp",
        "Vector_test.cpp",
        "Vector_test.cpp",
    ],
    ],


    target: {
        android: {
            srcs: [
                "BlobCache_test.cpp",
                "Looper_test.cpp",
                "RefBase_test.cpp",
                "SystemClock_test.cpp",
            ],
            shared_libs: [
            shared_libs: [
                "libz",
                "libz",
                "liblog",
                "liblog",
                "libcutils",
                "libcutils",
                "libutils",
                "libutils",
            ],
            ],
}
        },

        linux: {
cc_test_host {
            srcs: [
    name: "libutils_tests_host",
                "Looper_test.cpp",
    srcs: ["Vector_test.cpp"],
                "RefBase_test.cpp",
            ],
        },
        host: {
            static_libs: [
            static_libs: [
                "libutils",
                "libutils",
                "liblog",
                "liblog",
            ],
            ],
        },
    },

    cflags: [
        "-Wall",
        "-Wextra",
        "-Werror",
    ],
}
}