aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Murashkin <iam@google.com>2016-04-04 23:45:40 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-04-04 23:45:40 +0000
commitaf3b325e3a3a431d50aac8548e7e03868724420d (patch)
treeb8e7eeed21cb081dc749fbe52b39cc02dfbbec83
parentcc2490be5f0f1cd93893e71de28d34902e9e9de5 (diff)
parent83b7ddb6a7b4db66d57c35ceb51fdbbb8a922aff (diff)
downloadguice-af3b325e3a3a431d50aac8548e7e03868724420d.tar.gz
build: Add device-side support for the AOSP.
am: 83b7ddb * commit '83b7ddb6a7b4db66d57c35ceb51fdbbb8a922aff': build: Add device-side support for the AOSP. Change-Id: If825a74820cd3b5e938cb4effe8dfff5e260b0f0
-rw-r--r--Android.mk15
1 files changed, 12 insertions, 3 deletions
diff --git a/Android.mk b/Android.mk
index 87ef47f9..a7076664 100644
--- a/Android.mk
+++ b/Android.mk
@@ -57,11 +57,22 @@ munge_host_jar := $(HOST_OUT)/framework/munge-host.jar
munge_zip_location := lib/build/munge.jar
#
+# Target-side Dalvik build
+include $(CLEAR_VARS)
+LOCAL_SRC_FILES := # None. Everything is post-processed by munge. See below.
+LOCAL_MODULE := guice
+LOCAL_STATIC_JAVA_LIBRARIES := guava jsr330
+LOCAL_MODULE_CLASS := JAVA_LIBRARIES
+munge_src_arguments := $(guice_src_files)
+include $(LOCAL_PATH)/AndroidCallMunge.mk
+include $(BUILD_STATIC_JAVA_LIBRARY)
+
+
+#
# Host-side Java build
include $(CLEAR_VARS)
LOCAL_SRC_FILES := # None. Everything is post-processed by munge. See below.
LOCAL_MODULE := guice-host
-LOCAL_MODULE_TAGS := optional
LOCAL_STATIC_JAVA_LIBRARIES := guavalib jsr330-host
munge_src_arguments := $(guice_src_files)
@@ -74,7 +85,6 @@ include $(BUILD_HOST_JAVA_LIBRARY)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := # None. Everything is post-processed by munge. See below.
LOCAL_MODULE := guice-hostdex
-LOCAL_MODULE_TAGS := optional
LOCAL_STATIC_JAVA_LIBRARIES := guava-hostdex jsr330-hostdex
LOCAL_MODULE_CLASS := JAVA_LIBRARIES
munge_src_arguments := $(guice_src_files)
@@ -101,7 +111,6 @@ munge_zipped_src_files := $(filter-out $(munge_zipped_unsupported_files),$(munge
include $(CLEAR_VARS)
LOCAL_SRC_FILES := # None because we get everything by unzipping the munge jar first.
LOCAL_MODULE := munge-host
-LOCAL_MODULE_TAGS := optional
LOCAL_JAVA_LIBRARIES := junit
LOCAL_MODULE_CLASS := JAVA_LIBRARIES
# Unzip munge and build it