aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYusuf Mohsinally <mohsinally@google.com>2017-07-28 10:42:17 -0700
committerColin Cross <ccross@android.com>2017-10-09 16:36:39 -0700
commitffc2d31b11d86b2853686ecc4ee8eb6ec209cce6 (patch)
tree4aa5c293d79a167d3d1ff04619369dbc470f85ef
parent2c2a845e1e8fdda704e4f2ccaa335d69d043ebf3 (diff)
downloadhamcrest-ffc2d31b11d86b2853686ecc4ee8eb6ec209cce6.tar.gz
Add host build for hamcrest-library.
This library contains useful functions in tests. Add a build target for host side, so that they can be used in host side tests. Test: m hamcrest-library-host -j12 Bug: None Change-Id: I93d82f44b2e4bb0bf5ab5057d03fe063f637fea3 Merged-In: I93d82f44b2e4bb0bf5ab5057d03fe063f637fea3 (cherry picked from commit 3408e0e6c43de58ba35b06e6c4b612dc86d342c9)
-rw-r--r--hamcrest-library/Android.mk9
1 files changed, 8 insertions, 1 deletions
diff --git a/hamcrest-library/Android.mk b/hamcrest-library/Android.mk
index bbb2a5c..792252a 100644
--- a/hamcrest-library/Android.mk
+++ b/hamcrest-library/Android.mk
@@ -16,7 +16,14 @@
LOCAL_PATH := $(call my-dir)
-# TODO: add host and hostdex jars
+# build for the host JVM
+#-----------------------
+include $(CLEAR_VARS)
+LOCAL_SRC_FILES := $(call all-java-files-under, src/main/java)
+LOCAL_MODULE := hamcrest-library-host
+LOCAL_JAVA_LIBRARIES := hamcrest-host
+LOCAL_MODULE_TAGS := optional
+include $(BUILD_HOST_JAVA_LIBRARY)
#-------------------------------
# build a target jar