Merge "Make libutils test compile on the host"
This commit is contained in:
commit
f5fd4888ce
1 changed files with 33 additions and 17 deletions
|
|
@ -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",
|
||||||
],
|
],
|
||||||
|
|
||||||
shared_libs: [
|
target: {
|
||||||
"libz",
|
android: {
|
||||||
"liblog",
|
srcs: [
|
||||||
"libcutils",
|
"BlobCache_test.cpp",
|
||||||
"libutils",
|
"Looper_test.cpp",
|
||||||
],
|
"RefBase_test.cpp",
|
||||||
}
|
"SystemClock_test.cpp",
|
||||||
|
],
|
||||||
|
shared_libs: [
|
||||||
|
"libz",
|
||||||
|
"liblog",
|
||||||
|
"libcutils",
|
||||||
|
"libutils",
|
||||||
|
],
|
||||||
|
},
|
||||||
|
linux: {
|
||||||
|
srcs: [
|
||||||
|
"Looper_test.cpp",
|
||||||
|
"RefBase_test.cpp",
|
||||||
|
],
|
||||||
|
},
|
||||||
|
host: {
|
||||||
|
static_libs: [
|
||||||
|
"libutils",
|
||||||
|
"liblog",
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
cc_test_host {
|
cflags: [
|
||||||
name: "libutils_tests_host",
|
"-Wall",
|
||||||
srcs: ["Vector_test.cpp"],
|
"-Wextra",
|
||||||
static_libs: [
|
"-Werror",
|
||||||
"libutils",
|
|
||||||
"liblog",
|
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue