aboutsummaryrefslogtreecommitdiff
path: root/hamcrest-library/Android.mk
diff options
context:
space:
mode:
authorYusuf Mohsinally <mohsinally@google.com>2017-07-28 10:42:17 -0700
committerYusuf Mohsinally <mohsinally@google.com>2017-07-28 10:42:17 -0700
commit3408e0e6c43de58ba35b06e6c4b612dc86d342c9 (patch)
tree4aa5c293d79a167d3d1ff04619369dbc470f85ef /hamcrest-library/Android.mk
parent2c2a845e1e8fdda704e4f2ccaa335d69d043ebf3 (diff)
downloadhamcrest-3408e0e6c43de58ba35b06e6c4b612dc86d342c9.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
Diffstat (limited to 'hamcrest-library/Android.mk')
-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