summaryrefslogtreecommitdiffstats
path: root/Android.mk
diff options
context:
space:
mode:
Diffstat (limited to 'Android.mk')
-rw-r--r--Android.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/Android.mk b/Android.mk
index d4c1410..9dffd55 100644
--- a/Android.mk
+++ b/Android.mk
@@ -92,12 +92,14 @@ LOCAL_MODULE := apache-http-stubs-gen
include $(BUILD_DROIDDOC)
apache_http_stubs_gen_stamp := $(full_target)
+# For unbundled build we'll use the prebuilt jar from prebuilts/sdk.
+ifeq (,$(TARGET_BUILD_APPS))
###############################################
# Build the stub source files into a jar.
include $(CLEAR_VARS)
LOCAL_MODULE := org.apache.http.legacy
-LOCAL_JAVA_LIBRARIES := $(apache_http_java_libs)
LOCAL_SOURCE_FILES_ALL_GENERATED := true
+LOCAL_SDK_VERSION := 21
include $(BUILD_STATIC_JAVA_LIBRARY)
# Make sure to run droiddoc first to generate the stub source files.
@@ -106,6 +108,7 @@ $(full_classes_jack) : $(apache_http_stubs_gen_stamp)
# Archive a copy of the classes.jar in SDK build.
$(call dist-for-goals,sdk win_sdk,$(full_classes_jar):org.apache.http.legacy.jar)
+endif # not TARGET_BUILD_APPS
apache_http_src_files :=
apache_http_java_libs :=