Merge "Revert^2 "Reuse license metadata files from Soong""
This commit is contained in:
commit
f13d0b2f22
2 changed files with 18 additions and 10 deletions
|
@ -288,6 +288,7 @@ LOCAL_SOONG_INSTALL_PAIRS :=
|
||||||
LOCAL_SOONG_INSTALL_SYMLINKS :=
|
LOCAL_SOONG_INSTALL_SYMLINKS :=
|
||||||
LOCAL_SOONG_INSTALLED_MODULE :=
|
LOCAL_SOONG_INSTALLED_MODULE :=
|
||||||
LOCAL_SOONG_JACOCO_REPORT_CLASSES_JAR :=
|
LOCAL_SOONG_JACOCO_REPORT_CLASSES_JAR :=
|
||||||
|
LOCAL_SOONG_LICENSE_METADATA :=
|
||||||
LOCAL_SOONG_LINK_TYPE :=
|
LOCAL_SOONG_LINK_TYPE :=
|
||||||
LOCAL_SOONG_LINT_REPORTS :=
|
LOCAL_SOONG_LINT_REPORTS :=
|
||||||
LOCAL_SOONG_PROGUARD_DICT :=
|
LOCAL_SOONG_PROGUARD_DICT :=
|
||||||
|
|
|
@ -136,16 +136,23 @@ ifdef my_register_name
|
||||||
|
|
||||||
ALL_MODULES.$(my_register_name).META_LIC := $(strip $(ALL_MODULES.$(my_register_name).META_LIC) $(module_license_metadata))
|
ALL_MODULES.$(my_register_name).META_LIC := $(strip $(ALL_MODULES.$(my_register_name).META_LIC) $(module_license_metadata))
|
||||||
|
|
||||||
ALL_MODULES.$(my_register_name).DELAYED_META_LIC := $(strip $(ALL_MODULES.$(my_register_name).DELAYED_META_LIC) $(module_license_metadata))
|
ifdef LOCAL_SOONG_LICENSE_METADATA
|
||||||
ALL_MODULES.$(my_register_name).LICENSE_PACKAGE_NAME := $(strip $(license_package_name))
|
# Soong modules have already produced a license metadata file, copy it to where Make expects it.
|
||||||
ALL_MODULES.$(my_register_name).MODULE_TYPE := $(strip $(ALL_MODULES.$(my_register_name).MODULE_TYPE) $(LOCAL_MODULE_TYPE))
|
$(eval $(call copy-one-file, $(LOCAL_SOONG_LICENSE_METADATA), $(module_license_metadata)))
|
||||||
ALL_MODULES.$(my_register_name).MODULE_CLASS := $(strip $(ALL_MODULES.$(my_register_name).MODULE_CLASS) $(LOCAL_MODULE_CLASS))
|
else
|
||||||
ALL_MODULES.$(my_register_name).LICENSE_KINDS := $(ALL_MODULES.$(my_register_name).LICENSE_KINDS) $(license_kinds)
|
# Make modules don't have enough information to produce a license metadata rule until after fix-notice-deps
|
||||||
ALL_MODULES.$(my_register_name).LICENSE_CONDITIONS := $(ALL_MODULES.$(my_register_name).LICENSE_CONDITIONS) $(license_conditions)
|
# has been called, store the necessary information until later.
|
||||||
ALL_MODULES.$(my_register_name).LICENSE_INSTALL_MAP := $(ALL_MODULES.$(my_register_name).LICENSE_INSTALL_MAP) $(install_map)
|
ALL_MODULES.$(my_register_name).DELAYED_META_LIC := $(strip $(ALL_MODULES.$(my_register_name).DELAYED_META_LIC) $(module_license_metadata))
|
||||||
ALL_MODULES.$(my_register_name).NOTICE_DEPS := $(ALL_MODULES.$(my_register_name).NOTICE_DEPS) $(notice_deps)
|
ALL_MODULES.$(my_register_name).LICENSE_PACKAGE_NAME := $(strip $(license_package_name))
|
||||||
ALL_MODULES.$(my_register_name).IS_CONTAINER := $(strip $(filter-out false,$(ALL_MODULES.$(my_register_name).IS_CONTAINER) $(is_container)))
|
ALL_MODULES.$(my_register_name).MODULE_TYPE := $(strip $(ALL_MODULES.$(my_register_name).MODULE_TYPE) $(LOCAL_MODULE_TYPE))
|
||||||
ALL_MODULES.$(my_register_name).PATH := $(strip $(ALL_MODULES.$(my_register_name).PATH) $(local_path))
|
ALL_MODULES.$(my_register_name).MODULE_CLASS := $(strip $(ALL_MODULES.$(my_register_name).MODULE_CLASS) $(LOCAL_MODULE_CLASS))
|
||||||
|
ALL_MODULES.$(my_register_name).LICENSE_KINDS := $(ALL_MODULES.$(my_register_name).LICENSE_KINDS) $(license_kinds)
|
||||||
|
ALL_MODULES.$(my_register_name).LICENSE_CONDITIONS := $(ALL_MODULES.$(my_register_name).LICENSE_CONDITIONS) $(license_conditions)
|
||||||
|
ALL_MODULES.$(my_register_name).LICENSE_INSTALL_MAP := $(ALL_MODULES.$(my_register_name).LICENSE_INSTALL_MAP) $(install_map)
|
||||||
|
ALL_MODULES.$(my_register_name).NOTICE_DEPS := $(ALL_MODULES.$(my_register_name).NOTICE_DEPS) $(notice_deps)
|
||||||
|
ALL_MODULES.$(my_register_name).IS_CONTAINER := $(strip $(filter-out false,$(ALL_MODULES.$(my_register_name).IS_CONTAINER) $(is_container)))
|
||||||
|
ALL_MODULES.$(my_register_name).PATH := $(strip $(ALL_MODULES.$(my_register_name).PATH) $(local_path))
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifdef notice_file
|
ifdef notice_file
|
||||||
|
|
Loading…
Reference in a new issue