Merge "Replace extract_srcjars.sh with zipsync" am: c9907cc8f6
am: f434e35a47
Change-Id: I8304134f6b48ba57572b41cf6c4fc7cecd4d0dcc
This commit is contained in:
commit
61acd8295c
6 changed files with 13 additions and 16 deletions
|
@ -52,7 +52,7 @@ endif
|
||||||
ifneq ($(my_generated_res_zips),)
|
ifneq ($(my_generated_res_zips),)
|
||||||
my_zipped_resources_flata := $(my_compiled_res_base_dir)/zip_res.flata
|
my_zipped_resources_flata := $(my_compiled_res_base_dir)/zip_res.flata
|
||||||
$(my_zipped_resources_flata): PRIVATE_SOURCE_RES_ZIPS := $(my_generated_res_zips)
|
$(my_zipped_resources_flata): PRIVATE_SOURCE_RES_ZIPS := $(my_generated_res_zips)
|
||||||
$(my_zipped_resources_flata) : $(my_generated_res_deps) $(AAPT2) $(EXTRACT_SRCJARS)
|
$(my_zipped_resources_flata) : $(my_generated_res_deps) $(AAPT2) $(ZIPSYNC)
|
||||||
@echo "AAPT2 compile $@ <- $(PRIVATE_SOURCE_RES_ZIPS)"
|
@echo "AAPT2 compile $@ <- $(PRIVATE_SOURCE_RES_ZIPS)"
|
||||||
$(call aapt2-compile-resource-zips)
|
$(call aapt2-compile-resource-zips)
|
||||||
|
|
||||||
|
|
|
@ -2082,9 +2082,7 @@ endef
|
||||||
# TODO(b/74574557): use aapt2 compile --zip if it gets implemented
|
# TODO(b/74574557): use aapt2 compile --zip if it gets implemented
|
||||||
define aapt2-compile-resource-zips
|
define aapt2-compile-resource-zips
|
||||||
@mkdir -p $(dir $@)
|
@mkdir -p $(dir $@)
|
||||||
rm -rf $@.contents
|
$(ZIPSYNC) -d $@.contents -l $@.list $(PRIVATE_SOURCE_RES_ZIPS)
|
||||||
mkdir -p $@.contents
|
|
||||||
$(EXTRACT_SRCJARS) $@.contents $@.list $(PRIVATE_SOURCE_RES_ZIPS)
|
|
||||||
$(hide) $(AAPT2) compile -o $@ --dir $@.tmp $(PRIVATE_AAPT2_CFLAGS) --legacy
|
$(hide) $(AAPT2) compile -o $@ --dir $@.tmp $(PRIVATE_AAPT2_CFLAGS) --legacy
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
@ -2237,11 +2235,11 @@ endef
|
||||||
# $(2): classpath_libs
|
# $(2): classpath_libs
|
||||||
define compile-java
|
define compile-java
|
||||||
$(hide) rm -f $@
|
$(hide) rm -f $@
|
||||||
$(hide) rm -rf $(PRIVATE_CLASS_INTERMEDIATES_DIR) $(PRIVATE_ANNO_INTERMEDIATES_DIR) $(if $(PRIVATE_SRCJARS),$(PRIVATE_SRCJAR_INTERMEDIATES_DIR))
|
$(hide) rm -rf $(PRIVATE_CLASS_INTERMEDIATES_DIR) $(PRIVATE_ANNO_INTERMEDIATES_DIR)
|
||||||
$(hide) mkdir -p $(dir $@)
|
$(hide) mkdir -p $(dir $@)
|
||||||
$(hide) mkdir -p $(PRIVATE_CLASS_INTERMEDIATES_DIR) $(PRIVATE_ANNO_INTERMEDIATES_DIR) $(if $(PRIVATE_SRCJARS),$(PRIVATE_SRCJAR_INTERMEDIATES_DIR))
|
$(hide) mkdir -p $(PRIVATE_CLASS_INTERMEDIATES_DIR) $(PRIVATE_ANNO_INTERMEDIATES_DIR)
|
||||||
$(if $(PRIVATE_SRCJARS),\
|
$(if $(PRIVATE_SRCJARS),\
|
||||||
$(EXTRACT_SRCJARS) $(PRIVATE_SRCJAR_INTERMEDIATES_DIR) $(PRIVATE_SRCJAR_LIST_FILE) $(PRIVATE_SRCJARS))
|
$(ZIPSYNC) -d $(PRIVATE_SRCJAR_INTERMEDIATES_DIR) -l $(PRIVATE_SRCJAR_LIST_FILE) -f "*.java" $(PRIVATE_SRCJARS))
|
||||||
$(hide) if [ -s $(PRIVATE_JAVA_SOURCE_LIST) $(if $(PRIVATE_SRCJARS),-o -s $(PRIVATE_SRCJAR_LIST_FILE) )] ; then \
|
$(hide) if [ -s $(PRIVATE_JAVA_SOURCE_LIST) $(if $(PRIVATE_SRCJARS),-o -s $(PRIVATE_SRCJAR_LIST_FILE) )] ; then \
|
||||||
$(SOONG_JAVAC_WRAPPER) $(JAVAC_WRAPPER) $(1) -encoding UTF-8 \
|
$(SOONG_JAVAC_WRAPPER) $(JAVAC_WRAPPER) $(1) -encoding UTF-8 \
|
||||||
$(if $(findstring true,$(PRIVATE_WARNINGS_ENABLE)),$(xlint_unchecked),) \
|
$(if $(findstring true,$(PRIVATE_WARNINGS_ENABLE)),$(xlint_unchecked),) \
|
||||||
|
|
|
@ -189,15 +189,15 @@ $(full_target): \
|
||||||
$(droiddoc) \
|
$(droiddoc) \
|
||||||
$(html_dir_files) \
|
$(html_dir_files) \
|
||||||
$(full_java_libs) \
|
$(full_java_libs) \
|
||||||
$(EXTRACT_SRCJARS) \
|
$(ZIPSYNC) \
|
||||||
$(LOCAL_SRCJARS) \
|
$(LOCAL_SRCJARS) \
|
||||||
$(LOCAL_ADDITIONAL_DEPENDENCIES)
|
$(LOCAL_ADDITIONAL_DEPENDENCIES)
|
||||||
@echo Docs droiddoc: $(PRIVATE_OUT_DIR)
|
@echo Docs droiddoc: $(PRIVATE_OUT_DIR)
|
||||||
$(hide) mkdir -p $(dir $@)
|
$(hide) mkdir -p $(dir $@)
|
||||||
$(hide) rm -rf $(PRIVATE_STUB_OUT_DIR) $(PRIVATE_SRCJAR_INTERMEDIATES_DIR)
|
$(hide) rm -rf $(PRIVATE_STUB_OUT_DIR)
|
||||||
$(call prepare-doc-source-list,$(PRIVATE_SRC_LIST_FILE),$(PRIVATE_JAVA_FILES), \
|
$(call prepare-doc-source-list,$(PRIVATE_SRC_LIST_FILE),$(PRIVATE_JAVA_FILES), \
|
||||||
$(PRIVATE_SOURCE_INTERMEDIATES_DIR) $(PRIVATE_ADDITIONAL_JAVA_DIR))
|
$(PRIVATE_SOURCE_INTERMEDIATES_DIR) $(PRIVATE_ADDITIONAL_JAVA_DIR))
|
||||||
$(EXTRACT_SRCJARS) $(PRIVATE_SRCJAR_INTERMEDIATES_DIR) $(PRIVATE_SRCJAR_LIST_FILE) $(PRIVATE_SRCJARS)
|
$(ZIPSYNC) -d $(PRIVATE_SRCJAR_INTERMEDIATES_DIR) -l $(PRIVATE_SRCJAR_LIST_FILE) -f "*.java" $(PRIVATE_SRCJARS)
|
||||||
$(hide) ( \
|
$(hide) ( \
|
||||||
$(JAVADOC) \
|
$(JAVADOC) \
|
||||||
-encoding UTF-8 \
|
-encoding UTF-8 \
|
||||||
|
@ -243,13 +243,12 @@ else
|
||||||
# For OpenJDK 8 we can use -bootclasspath to define the core libraries code.
|
# For OpenJDK 8 we can use -bootclasspath to define the core libraries code.
|
||||||
$(full_target): PRIVATE_BOOTCLASSPATH_ARG := $(addprefix -bootclasspath ,$(PRIVATE_BOOTCLASSPATH))
|
$(full_target): PRIVATE_BOOTCLASSPATH_ARG := $(addprefix -bootclasspath ,$(PRIVATE_BOOTCLASSPATH))
|
||||||
endif
|
endif
|
||||||
$(full_target): $(full_src_files) $(LOCAL_GENERATED_SOURCES) $(full_java_libs) $(EXTRACT_SRCJARS) $(LOCAL_SRCJARS) $(LOCAL_ADDITIONAL_DEPENDENCIES)
|
$(full_target): $(full_src_files) $(LOCAL_GENERATED_SOURCES) $(full_java_libs) $(ZIPSYNC) $(LOCAL_SRCJARS) $(LOCAL_ADDITIONAL_DEPENDENCIES)
|
||||||
@echo Docs javadoc: $(PRIVATE_OUT_DIR)
|
@echo Docs javadoc: $(PRIVATE_OUT_DIR)
|
||||||
@mkdir -p $(dir $@)
|
@mkdir -p $(dir $@)
|
||||||
rm -rf $(PRIVATE_SRCJAR_INTERMEDIATES_DIR)
|
|
||||||
$(call prepare-doc-source-list,$(PRIVATE_SRC_LIST_FILE),$(PRIVATE_JAVA_FILES), \
|
$(call prepare-doc-source-list,$(PRIVATE_SRC_LIST_FILE),$(PRIVATE_JAVA_FILES), \
|
||||||
$(PRIVATE_SOURCE_INTERMEDIATES_DIR) $(PRIVATE_ADDITIONAL_JAVA_DIR))
|
$(PRIVATE_SOURCE_INTERMEDIATES_DIR) $(PRIVATE_ADDITIONAL_JAVA_DIR))
|
||||||
$(EXTRACT_SRCJARS) $(PRIVATE_SRCJAR_INTERMEDIATES_DIR) $(PRIVATE_SRCJAR_LIST_FILE) $(PRIVATE_SRCJARS)
|
$(ZIPSYNC) -d $(PRIVATE_SRCJAR_INTERMEDIATES_DIR) -l $(PRIVATE_SRCJAR_LIST_FILE) -f "*.java" $(PRIVATE_SRCJARS)
|
||||||
$(hide) ( \
|
$(hide) ( \
|
||||||
$(JAVADOC) \
|
$(JAVADOC) \
|
||||||
-encoding UTF-8 \
|
-encoding UTF-8 \
|
||||||
|
|
|
@ -99,7 +99,7 @@ $(full_classes_compiled_jar): \
|
||||||
$(annotation_processor_deps) \
|
$(annotation_processor_deps) \
|
||||||
$(NORMALIZE_PATH) \
|
$(NORMALIZE_PATH) \
|
||||||
$(JAR_ARGS) \
|
$(JAR_ARGS) \
|
||||||
$(EXTRACT_SRCJARS) \
|
$(ZIPSYNC) \
|
||||||
| $(SOONG_JAVAC_WRAPPER)
|
| $(SOONG_JAVAC_WRAPPER)
|
||||||
$(transform-host-java-to-dalvik-package)
|
$(transform-host-java-to-dalvik-package)
|
||||||
|
|
||||||
|
|
|
@ -86,7 +86,7 @@ $(full_classes_compiled_jar): \
|
||||||
$(NORMALIZE_PATH) \
|
$(NORMALIZE_PATH) \
|
||||||
$(ZIPTIME) \
|
$(ZIPTIME) \
|
||||||
$(JAR_ARGS) \
|
$(JAR_ARGS) \
|
||||||
$(EXTRACT_SRCJARS) \
|
$(ZIPSYNC) \
|
||||||
| $(SOONG_JAVAC_WRAPPER)
|
| $(SOONG_JAVAC_WRAPPER)
|
||||||
$(transform-host-java-to-package)
|
$(transform-host-java-to-package)
|
||||||
$(remove-timestamps-from-package)
|
$(remove-timestamps-from-package)
|
||||||
|
|
|
@ -465,7 +465,7 @@ $(full_classes_compiled_jar): \
|
||||||
$(annotation_processor_deps) \
|
$(annotation_processor_deps) \
|
||||||
$(NORMALIZE_PATH) \
|
$(NORMALIZE_PATH) \
|
||||||
$(JAR_ARGS) \
|
$(JAR_ARGS) \
|
||||||
$(EXTRACT_SRCJARS) \
|
$(ZIPSYNC) \
|
||||||
| $(SOONG_JAVAC_WRAPPER)
|
| $(SOONG_JAVAC_WRAPPER)
|
||||||
@echo "Target Java: $@
|
@echo "Target Java: $@
|
||||||
$(call compile-java,$(TARGET_JAVAC),$(PRIVATE_ALL_JAVA_HEADER_LIBRARIES))
|
$(call compile-java,$(TARGET_JAVAC),$(PRIVATE_ALL_JAVA_HEADER_LIBRARIES))
|
||||||
|
|
Loading…
Reference in a new issue