Make libutils test compile on the host

Test: out/host/linux-x86/nativetest64/libutils_tests/libutils_tests
Change-Id: Icd5f39ae71b57167e9b2fe7ec09c5400bcb90e78
This commit is contained in:
Colin Cross 2017-02-23 17:49:23 -08:00
parent fe06c63301
commit afa891e85e

View file

@ -18,33 +18,43 @@
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",
],
shared_libs: [
"libz",
"liblog",
"libcutils",
"libutils",
],
}
target: {
android: {
srcs: [
"BlobCache_test.cpp",
"SystemClock_test.cpp",
],
shared_libs: [
"libz",
"liblog",
"libcutils",
"libutils",
],
},
host: {
static_libs: [
"libutils",
"liblog",
],
},
},
cc_test_host {
name: "libutils_tests_host",
srcs: ["Vector_test.cpp"],
static_libs: [
"libutils",
"liblog",
cflags: [
"-Wall",
"-Wextra",
"-Werror",
],
}