From 3f45b3c35c41d71288dc4939cb48456dda26f8c0 Mon Sep 17 00:00:00 2001 From: Ying Wang Date: Mon, 2 Apr 2012 18:21:36 -0700 Subject: [PATCH] Support to run DroidDoc in unbundled builds. Change-Id: Ia5ace10ed75c451e346e289f0c534ad619abdb65 --- core/Makefile | 2 ++ core/droiddoc.mk | 14 +++++++++++--- core/java.mk | 2 +- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/core/Makefile b/core/Makefile index 169fc0207..11a897a05 100644 --- a/core/Makefile +++ b/core/Makefile @@ -38,11 +38,13 @@ unique_product_copy_files_destinations := # ----------------------------------------------------------------- # docs/index.html +ifeq (,$(TARGET_BUILD_APPS)) gen := $(OUT_DOCS)/index.html ALL_DOCS += $(gen) $(gen): frameworks/base/docs/docs-redirect-index.html @mkdir -p $(dir $@) @cp -f $< $@ +endif # ----------------------------------------------------------------- # default.prop diff --git a/core/droiddoc.mk b/core/droiddoc.mk index 91d8166f8..47f599dfb 100644 --- a/core/droiddoc.mk +++ b/core/droiddoc.mk @@ -63,9 +63,17 @@ endif ifneq ($(LOCAL_IS_HOST_MODULE),true) -ifeq ($(LOCAL_JAVA_LIBRARIES),) -LOCAL_JAVA_LIBRARIES := core ext framework -endif +ifneq ($(LOCAL_SDK_VERSION),) + ifeq ($(LOCAL_SDK_VERSION),current) + LOCAL_JAVA_LIBRARIES := android_stubs_current $(LOCAL_JAVA_LIBRARIES) + else + LOCAL_JAVA_LIBRARIES := sdk_v$(LOCAL_SDK_VERSION) $(LOCAL_JAVA_LIBRARIES) + endif +else + LOCAL_JAVA_LIBRARIES := core ext framework $(LOCAL_JAVA_LIBRARIES) +endif # LOCAL_SDK_VERSION +LOCAL_JAVA_LIBRARIES := $(sort $(LOCAL_JAVA_LIBRARIES)) + full_java_libs := $(call java-lib-files,$(LOCAL_JAVA_LIBRARIES),$(LOCAL_IS_HOST_MODULE)) full_java_lib_deps := $(call java-lib-deps,$(LOCAL_JAVA_LIBRARIES),$(LOCAL_IS_HOST_MODULE)) diff --git a/core/java.mk b/core/java.mk index f0fe12599..b302c9f5f 100644 --- a/core/java.mk +++ b/core/java.mk @@ -21,7 +21,7 @@ ifneq ($(LOCAL_SDK_VERSION),) Choices are: $(TARGET_AVAILABLE_SDK_VERSIONS)) else ifeq ($(LOCAL_SDK_VERSION),current) - LOCAL_JAVA_LIBRARIES := android_stubs_$(LOCAL_SDK_VERSION) $(LOCAL_JAVA_LIBRARIES) + LOCAL_JAVA_LIBRARIES := android_stubs_current $(LOCAL_JAVA_LIBRARIES) else LOCAL_JAVA_LIBRARIES := sdk_v$(LOCAL_SDK_VERSION) $(LOCAL_JAVA_LIBRARIES) endif