Add a -hostdex target for libcore CTS tests

libcore CTS tests require a -hostdex target. This change
adds the necessary target definition.

Bug: 27637914
Test: make -j30 core-tests-hostdex
Change-Id: I0639f121d7f868cc309c4ed22bc698e15588e060
diff --git a/Android.mk b/Android.mk
index 884ddf6..6704350 100644
--- a/Android.mk
+++ b/Android.mk
@@ -26,3 +26,10 @@
 LOCAL_JAVA_LANGUAGE_VERSION := 1.6
 include $(BUILD_STATIC_JAVA_LIBRARY)
 
+include $(CLEAR_VARS)
+LOCAL_SRC_FILES := $(archive-patcher_shared_src_files) $(archive-patcher_applier_src_files)
+LOCAL_MODULE := archive-patcher-hostdex
+# archive-patcher should be compatible with all versions of Android
+LOCAL_SDK_VERSION := 4
+LOCAL_JAVA_LANGUAGE_VERSION := 1.6
+include $(BUILD_HOST_DALVIK_STATIC_JAVA_LIBRARY)