diff options
| author | Colin Cross <ccross@android.com> | 2017-02-23 17:49:23 -0800 |
|---|---|---|
| committer | Colin Cross <ccross@android.com> | 2017-02-24 08:10:06 -0800 |
| commit | 155c983ad162899a9a926fe8750c2fcc9f4fb418 (patch) | |
| tree | f02d595b710ec134086892fa8a276d85f50221eb /libutils/tests | |
| parent | 16f4fb9c4e2e916a91dc87b77a7c062866a4a8ff (diff) | |
| download | system_core-155c983ad162899a9a926fe8750c2fcc9f4fb418.tar.gz system_core-155c983ad162899a9a926fe8750c2fcc9f4fb418.tar.bz2 system_core-155c983ad162899a9a926fe8750c2fcc9f4fb418.zip | |
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
Diffstat (limited to 'libutils/tests')
| -rw-r--r-- | libutils/tests/Android.bp | 50 |
1 files changed, 33 insertions, 17 deletions
diff --git a/libutils/tests/Android.bp b/libutils/tests/Android.bp index ec6b67f21..70ada729e 100644 --- a/libutils/tests/Android.bp +++ b/libutils/tests/Android.bp @@ -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", ], - shared_libs: [ - "libz", - "liblog", - "libcutils", - "libutils", - ], -} + target: { + android: { + srcs: [ + "BlobCache_test.cpp", + "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 { - name: "libutils_tests_host", - srcs: ["Vector_test.cpp"], - static_libs: [ - "libutils", - "liblog", + cflags: [ + "-Wall", + "-Wextra", + "-Werror", ], } |
