aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Napier <napier@google.com>2010-04-20 11:16:54 -0700
committerBill Napier <napier@google.com>2010-07-27 16:00:21 -0700
commit6ccc5b3735f72619aa2707f351fd6b68df728578 (patch)
treee69ec0e683b3a0a722747559b5ec50fc47a641ec
parentde898857d4a0a1bbdfee734e7e8a9d200a2c5e78 (diff)
downloadandroid_external_guava-6ccc5b3735f72619aa2707f351fd6b68df728578.tar.gz
android_external_guava-6ccc5b3735f72619aa2707f351fd6b68df728578.tar.bz2
android_external_guava-6ccc5b3735f72619aa2707f351fd6b68df728578.zip
Add in build rule to build guava as a host side library as well as a device side library.
Change-Id: Ic312772fe0fa0f1584e30291945fcf9aa8724291
-rw-r--r--Android.mk9
1 files changed, 9 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index 6253248..ddd6028 100644
--- a/Android.mk
+++ b/Android.mk
@@ -24,3 +24,12 @@ include $(BUILD_STATIC_JAVA_LIBRARY)
# Include this library in the build server's output directory
$(call dist-for-goals, droid, $(LOCAL_BUILT_MODULE):guava.jar)
+
+# Also build a host-side library
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := $(call all-java-files-under, src)
+LOCAL_MODULE := guavalib
+LOCAL_STATIC_JAVA_LIBRARIES := jsr305lib
+
+include $(BUILD_HOST_JAVA_LIBRARY)