Track more static dependencies for notice files
Track transitive static dependencies of native binaries, and and direct and transitive static dependencies of java and app modules. Bug: 112331930 Test: m checkbuild Change-Id: I0e19971033d6254bfbb6555f0e68fd5e529569c6
This commit is contained in:
@@ -487,6 +487,21 @@ $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_SHARED_JAVA_HEADER_LIBRARIES := $(full_sh
|
||||
ALL_MODULES.$(my_register_name).INTERMEDIATE_SOURCE_DIR := \
|
||||
$(ALL_MODULES.$(my_register_name).INTERMEDIATE_SOURCE_DIR) $(LOCAL_INTERMEDIATE_SOURCE_DIR)
|
||||
|
||||
|
||||
##########################################################
|
||||
# Copy NOTICE files of transitive static dependencies
|
||||
# Don't do this in mm, since many of the targets won't exist.
|
||||
ifeq ($(ONE_SHOT_MAKEFILE),)
|
||||
installed_static_library_notice_file_targets := \
|
||||
$(foreach lib,$(LOCAL_STATIC_JAVA_LIBRARIES), \
|
||||
NOTICE-$(if $(LOCAL_IS_HOST_MODULE),HOST,TARGET)-JAVA_LIBRARIES-$(lib))
|
||||
else
|
||||
installed_static_library_notice_file_targets :=
|
||||
endif
|
||||
|
||||
$(notice_target): | $(installed_static_library_notice_file_targets)
|
||||
$(LOCAL_INSTALLED_MODULE): | $(notice_target)
|
||||
|
||||
###########################################################
|
||||
# Verify that all libraries are safe to use
|
||||
###########################################################
|
||||
|
Reference in New Issue
Block a user