diff options
author | Nick Kralevich <nnk@google.com> | 2014-11-02 05:11:11 +0000 |
---|---|---|
committer | Nick Kralevich <nnk@google.com> | 2014-11-02 05:11:11 +0000 |
commit | bcf8683b29d2c350c46f44a6f4241d80ec40e30e (patch) | |
tree | ef843017555ceb7bdd6cfa4ae47497a6174950bb /core | |
parent | f56729250448200834c5c95c86c937e887d73623 (diff) | |
download | build-bcf8683b29d2c350c46f44a6f4241d80ec40e30e.zip build-bcf8683b29d2c350c46f44a6f4241d80ec40e30e.tar.gz build-bcf8683b29d2c350c46f44a6f4241d80ec40e30e.tar.bz2 |
Revert "Add support for prebuilt AARs."
master doesn't compile anymore.
This reverts commit f56729250448200834c5c95c86c937e887d73623.
Change-Id: Icc16fe5360d1222740b803e9dd006081e3c66e46
Diffstat (limited to 'core')
-rw-r--r-- | core/android_manifest.mk | 22 | ||||
-rw-r--r-- | core/clear_vars.mk | 1 | ||||
-rw-r--r-- | core/java.mk | 3 | ||||
-rw-r--r-- | core/package_internal.mk | 4 | ||||
-rw-r--r-- | core/prebuilt_internal.mk | 22 |
5 files changed, 9 insertions, 43 deletions
diff --git a/core/android_manifest.mk b/core/android_manifest.mk index c641b75..21b95c2 100644 --- a/core/android_manifest.mk +++ b/core/android_manifest.mk @@ -11,27 +11,13 @@ else full_android_manifest := $(LOCAL_PATH)/$(LOCAL_MANIFEST_FILE) endif -my_full_libs_manifest_files := $(LOCAL_FULL_LIBS_MANIFEST_FILES) -my_full_libs_manifest_deps := $(LOCAL_FULL_LIBS_MANIFEST_FILES) - -# Set up dependency on aar libraries -ifdef LOCAL_STATIC_JAVA_AAR_LIBRARIES -my_full_libs_manifest_deps += $(foreach lib, $(LOCAL_STATIC_JAVA_AAR_LIBRARIES),\ - $(call intermediates-dir-for,JAVA_LIBRARIES,$(lib),,COMMON)/aar/classes.jar) -my_full_libs_manifest_files += $(foreach lib, $(LOCAL_STATIC_JAVA_AAR_LIBRARIES),\ - $(call intermediates-dir-for,JAVA_LIBRARIES,$(lib),,COMMON)/aar/AndroidManifest.xml) - -LOCAL_RESOURCE_DIR += $(foreach lib, $(LOCAL_STATIC_JAVA_AAR_LIBRARIES),\ - $(call intermediates-dir-for,JAVA_LIBRARIES,$(lib),,COMMON)/aar/res) -endif - # Set up rules to merge library manifest files -ifdef my_full_libs_manifest_files +ifdef LOCAL_FULL_LIBS_MANIFEST_FILES main_android_manifest := $(full_android_manifest) full_android_manifest := $(intermediates.COMMON)/AndroidManifest.xml -$(full_android_manifest): PRIVATE_LIBS_MANIFESTS := $(my_full_libs_manifest_files) -$(full_android_manifest) : $(main_android_manifest) $(my_full_libs_manifest_deps) - @echo "Merge android manifest files: $@ <-- $< $(PRIVATE_LIBS_MANIFESTS)" +$(full_android_manifest): PRIVATE_LIBS_MANIFESTS := $(LOCAL_FULL_LIBS_MANIFEST_FILES) +$(full_android_manifest) : $(main_android_manifest) $(LOCAL_FULL_LIBS_MANIFEST_FILES) + @echo "Merge android manifest files: $@ <-- $^" @mkdir -p $(dir $@) $(hide) $(ANDROID_MANIFEST_MERGER) --main $< --libs $(PRIVATE_LIBS_MANIFESTS) \ --out $@ diff --git a/core/clear_vars.mk b/core/clear_vars.mk index 247150d..f23c4a6 100644 --- a/core/clear_vars.mk +++ b/core/clear_vars.mk @@ -30,7 +30,6 @@ LOCAL_MODULE_TAGS:= LOCAL_SRC_FILES:= LOCAL_PREBUILT_OBJ_FILES:= LOCAL_STATIC_JAVA_LIBRARIES:= -LOCAL_STATIC_JAVA_AAR_LIBRARIES:= LOCAL_STATIC_LIBRARIES:= # Group static libraries with "-Wl,--start-group" and "-Wl,--end-group" when linking. LOCAL_GROUP_STATIC_LIBRARIES:= diff --git a/core/java.mk b/core/java.mk index c264565..debdf53 100644 --- a/core/java.mk +++ b/core/java.mk @@ -52,9 +52,6 @@ else endif endif -# LOCAL_STATIC_JAVA_AAR_LIBRARIES are special LOCAL_STATIC_JAVA_LIBRARIES -LOCAL_STATIC_JAVA_LIBRARIES += $(LOCAL_STATIC_JAVA_AAR_LIBRARIES) - LOCAL_JAVA_LIBRARIES := $(sort $(LOCAL_JAVA_LIBRARIES)) LOCAL_BUILT_MODULE_STEM := $(strip $(LOCAL_BUILT_MODULE_STEM)) diff --git a/core/package_internal.mk b/core/package_internal.mk index e2c3cf4..bb458d4 100644 --- a/core/package_internal.mk +++ b/core/package_internal.mk @@ -192,8 +192,6 @@ endif # LOCAL_EMMA_INSTRUMENT rs_compatibility_jni_libs := -include $(BUILD_SYSTEM)/android_manifest.mk - ################################# include $(BUILD_SYSTEM)/java.mk ################################# @@ -203,6 +201,8 @@ ifeq ($(LOCAL_SDK_RES_VERSION),) LOCAL_SDK_RES_VERSION:=$(LOCAL_SDK_VERSION) endif +include $(BUILD_SYSTEM)/android_manifest.mk + $(LOCAL_INTERMEDIATE_TARGETS): \ PRIVATE_ANDROID_MANIFEST := $(full_android_manifest) ifneq (,$(filter-out current system_current, $(LOCAL_SDK_VERSION))) diff --git a/core/prebuilt_internal.mk b/core/prebuilt_internal.mk index 5fcd3be..284884c 100644 --- a/core/prebuilt_internal.mk +++ b/core/prebuilt_internal.mk @@ -247,26 +247,10 @@ ifeq ($(LOCAL_IS_HOST_MODULE)$(LOCAL_MODULE_CLASS),JAVA_LIBRARIES) # while the deps should be in the common dir, so we make a copy in the common dir. # For nonstatic library, $(common_javalib_jar) is the dependency file, # while $(common_classes_jar) is used to link. -common_classes_jar := $(intermediates.COMMON)/classes.jar -common_javalib_jar := $(intermediates.COMMON)/javalib.jar +common_classes_jar := $(call intermediates-dir-for,JAVA_LIBRARIES,$(LOCAL_MODULE),,COMMON)/classes.jar +common_javalib_jar := $(dir $(common_classes_jar))javalib.jar -$(common_classes_jar) $(common_javalib_jar): PRIVATE_MODULE := $(LOCAL_MODULE) - -ifneq ($(filter %.aar, $(my_prebuilt_src_file)),) -# This is .aar file, archive of classes.jar and Android resources. -my_src_jar := $(intermediates.COMMON)/aar/classes.jar - -$(my_src_jar) : $(my_prebuilt_src_file) - $(hide) rm -rf $(dir $@) && mkdir -p $(dir $@) - $(hide) unzip -qo -d $(dir $@) $< - # Make sure the extracted classes.jar has a new timestamp. - $(hide) touch $@ - -else -# This is jar file. -my_src_jar := $(my_prebuilt_src_file) -endif -$(common_classes_jar) : $(my_src_jar) | $(ACP) +$(common_classes_jar) : $(my_prebuilt_src_file) | $(ACP) $(transform-prebuilt-to-target) $(common_javalib_jar) : $(common_classes_jar) | $(ACP) |