diff --git a/core/clear_vars.mk b/core/clear_vars.mk index baa23447e..3bec869ac 100644 --- a/core/clear_vars.mk +++ b/core/clear_vars.mk @@ -235,6 +235,7 @@ LOCAL_SHARED_ANDROID_LIBRARIES:= LOCAL_SHARED_LIBRARIES:= LOCAL_SOONG_CLASSES_JAR := LOCAL_SOONG_DEX_JAR := +LOCAL_SOONG_EXPORT_PROGUARD_FLAGS := LOCAL_SOONG_HEADER_JAR := LOCAL_SOONG_JACOCO_REPORT_CLASSES_JAR := LOCAL_SOONG_PROGUARD_DICT := diff --git a/core/soong_app_prebuilt.mk b/core/soong_app_prebuilt.mk index 4c3421532..83982b720 100644 --- a/core/soong_app_prebuilt.mk +++ b/core/soong_app_prebuilt.mk @@ -55,6 +55,7 @@ $(resource_export_package): $(LOCAL_SOONG_RESOURCE_EXPORT_PACKAGE) @echo "Copy: $$@" $(copy-file-to-target) touch $(PRIVATE_STAMP) +$(call add-dependency,$(LOCAL_BUILT_MODULE),$(resource_export_package)) endif # LOCAL_SOONG_RESOURCE_EXPORT_PACKAGE diff --git a/core/soong_java_prebuilt.mk b/core/soong_java_prebuilt.mk index 7d32e4857..309854c0f 100644 --- a/core/soong_java_prebuilt.mk +++ b/core/soong_java_prebuilt.mk @@ -39,6 +39,24 @@ ifdef LOCAL_SOONG_JACOCO_REPORT_CLASSES_JAR $(intermediates.COMMON)/jacoco-report-classes.jar) endif +ifdef LOCAL_SOONG_EXPORT_PROGUARD_FLAGS + $(eval $(call copy-one-file,$(LOCAL_SOONG_EXPORT_PROGUARD_FLAGS),\ + $(intermediates.COMMON)/export_proguard_flags)) + $(call add-dependency,$(LOCAL_BUILT_MODULE),\ + $(intermediates.COMMON)/export_proguard_flags) +endif + +ifdef LOCAL_SOONG_RESOURCE_EXPORT_PACKAGE +my_res_package := $(intermediates.COMMON)/package-res.apk + +$(my_res_package): $(LOCAL_SOONG_RESOURCE_EXPORT_PACKAGE) + @echo "Copy: $$@" + $(copy-file-to-target) + +$(call add-dependency,$(LOCAL_BUILT_MODULE),$(my_res_package)) + +endif # LOCAL_SOONG_RESOURCE_EXPORT_PACKAGE + ifneq ($(TURBINE_ENABLED),false) ifdef LOCAL_SOONG_HEADER_JAR $(eval $(call copy-one-file,$(LOCAL_SOONG_HEADER_JAR),$(full_classes_header_jar)))