Merge "Handle symlink license metadata." am: 7506930ca5
am: af293990b4
am: b3ab555a0c
Original change: https://android-review.googlesource.com/c/platform/build/+/2019496 Change-Id: If01554bad45586c2b0bd369cb73d9326a3009e08
This commit is contained in:
commit
0a4baebdda
1 changed files with 16 additions and 1 deletions
|
@ -902,6 +902,18 @@ reportallnoticelibrarynames: $(_all)
|
|||
$(COMPLIANCENOTICE_SHIPPEDLIBS) @$$(PRIVATE_LIST_FILE)
|
||||
endef
|
||||
|
||||
###########################################################
|
||||
# Declares the rule to build all license metadata.
|
||||
###########################################################
|
||||
define build-all-license-metadata-rule
|
||||
$(strip $(eval _all := $(call all-license-metadata)))
|
||||
|
||||
.PHONY: alllicensemetadata
|
||||
alllicensemetadata: $(_all)
|
||||
@echo Building all $(words $(_all)) license metadata files
|
||||
endef
|
||||
|
||||
|
||||
###########################################################
|
||||
## Declares a license metadata build rule for ALL_MODULES
|
||||
###########################################################
|
||||
|
@ -917,7 +929,8 @@ $(strip \
|
|||
$(foreach t,$(sort $(ALL_NON_MODULES)),$(eval $(call non-module-license-metadata-rule,$(t)))) \
|
||||
$(foreach m,$(sort $(ALL_MODULES)),$(eval $(call license-metadata-rule,$(m)))) \
|
||||
$(eval $(call report-missing-licenses-rule)) \
|
||||
$(eval $(call report-all-notice-library-names-rule)))
|
||||
$(eval $(call report-all-notice-library-names-rule)) \
|
||||
$(eval $(call build-all-license-metadata-rule)))
|
||||
endef
|
||||
|
||||
###########################################################
|
||||
|
@ -3062,6 +3075,8 @@ endef
|
|||
# $(3): full path to destination
|
||||
define symlink-file
|
||||
$(eval $(_symlink-file))
|
||||
$(eval $(call declare-license-metadata,$(3),,,,,,))
|
||||
$(eval $(call declare-license-deps,$(3),$(1)))
|
||||
endef
|
||||
|
||||
define _symlink-file
|
||||
|
|
Loading…
Reference in a new issue