Merge "Introduce dist-for-goals-with-filenametag" am: 07cfdab76a am: 1622541b05

Original change: https://android-review.googlesource.com/c/platform/build/+/2567250

Change-Id: I06b1e156c5d3fe952337863872e493e978bc1928
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Jeongik Cha
2023-05-22 03:25:38 +00:00
committed by Automerger Merge Worker

View File

@@ -45,6 +45,18 @@ $(foreach file,$(2), \
$(eval _all_dist_goal_output_pairs += $$(goal):$$(dst)))) $(eval _all_dist_goal_output_pairs += $$(goal):$$(dst))))
endef endef
define add_file_name_tag_suffix
$(basename $(notdir $1))-FILE_NAME_TAG_PLACEHOLDER$(suffix $1)
endef
# This function appends suffix FILE_NAME_TAG_PLACEHOLDER from the input file
# $(1): a list of goals (e.g. droid, sdk, ndk). These must be PHONY
# $(2): the dist files to add to those goals.
define dist-for-goals-with-filenametag
$(if $(strip $(2)), \
$(foreach file,$(2), \
$(call dist-for-goals,$(1),$(file):$(call add_file_name_tag_suffix,$(file)))))
endef
.PHONY: shareprojects .PHONY: shareprojects
define __share-projects-rule define __share-projects-rule
@@ -209,4 +221,4 @@ $(strip \
fi)) fi))
endef endef
.KATI_READONLY := dist-for-goals dist-write-file .KATI_READONLY := dist-for-goals dist-write-file dist-for-goals-with-filenametag