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

Commit 155c983a authored by Colin Cross's avatar Colin Cross
Browse files

Make libutils test compile on the host

Reapply of Icd5f39ae71b57167e9b2fe7ec09c5400bcb90e78 with
RefBase_test.cpp and Looper_test.cpp removed from mac builds.

Test: out/host/linux-x86/nativetest64/libutils_tests/libutils_tests
Test: out/host/darwin-x86/nativetest64/libutils_tests/libutils_tests
Change-Id: I5979b296a8500b5697d94d64fc441363047adcea
parent 16f4fb9c
Loading
Loading
Loading
Loading
+33 −17
Original line number Diff line number Diff line
@@ -18,33 +18,49 @@

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

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

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

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

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