< prev index next >

make/common/Modules.gmk

Print this page




 377 
 378 # Finds indirect exported modules transitively in 3 levels for a set of modules.
 379 # Param 1: List of modules to find indirect exported modules for.
 380 FindTransitiveIndirectDepsForModules = \
 381     $(sort $(foreach m, $1, $(call FindTransitiveIndirectDepsForModule, $m)))
 382 
 383 # Upgradeable modules are those that are either defined as upgradeable or that
 384 # require an upradeable module.
 385 FindAllUpgradeableModules = \
 386     $(sort $(filter-out $(MODULES_FILTER), $(UPGRADEABLE_MODULES)))
 387 
 388 
 389 ################################################################################
 390 
 391 LEGAL_SUBDIRS += $(OPENJDK_TARGET_OS)/legal
 392 ifneq ($(OPENJDK_TARGET_OS), $(OPENJDK_TARGET_OS_TYPE))
 393   LEGAL_SUBDIRS += $(OPENJDK_TARGET_OS_TYPE)/legal
 394 endif
 395 LEGAL_SUBDIRS += share/legal
 396 
 397 # Find all legal dirs for a particular module
 398 # $1 - Module to find legal dirs for
 399 FindModuleLegalDirs = \
 400     $(strip $(wildcard \
 401         $(addsuffix /$(strip $1), $(SUPPORT_OUTPUTDIR)/modules_legal \
 402             $(IMPORT_MODULES_LEGAL)) \
 403         $(foreach sub, $(LEGAL_SUBDIRS), $(addsuffix /$(strip $1)/$(sub), $(TOP_SRC_DIRS))) \
 404     ))
 405 
 406 ################################################################################
 407 
 408 # Param 1 - Name of module
 409 define ReadSingleImportMetaData
 410     ifneq ($$(wildcard $(IMPORT_MODULES_MAKE)/$$(strip $1)/build.properties), )
 411       classloader :=
 412       include_in_jre :=
 413       include_in_jdk :=
 414       include $(IMPORT_MODULES_MAKE)/$$(strip $1)/build.properties
 415       ifeq ($$(include_in_jre), true)
 416         JRE_MODULES += $1
 417       endif
 418       ifeq ($$(include_in_jdk), true)
 419         JDK_MODULES += $1
 420       endif
 421       ifeq ($$(classloader), boot)
 422         BOOT_MODULES += $1




 377 
 378 # Finds indirect exported modules transitively in 3 levels for a set of modules.
 379 # Param 1: List of modules to find indirect exported modules for.
 380 FindTransitiveIndirectDepsForModules = \
 381     $(sort $(foreach m, $1, $(call FindTransitiveIndirectDepsForModule, $m)))
 382 
 383 # Upgradeable modules are those that are either defined as upgradeable or that
 384 # require an upradeable module.
 385 FindAllUpgradeableModules = \
 386     $(sort $(filter-out $(MODULES_FILTER), $(UPGRADEABLE_MODULES)))
 387 
 388 
 389 ################################################################################
 390 
 391 LEGAL_SUBDIRS += $(OPENJDK_TARGET_OS)/legal
 392 ifneq ($(OPENJDK_TARGET_OS), $(OPENJDK_TARGET_OS_TYPE))
 393   LEGAL_SUBDIRS += $(OPENJDK_TARGET_OS_TYPE)/legal
 394 endif
 395 LEGAL_SUBDIRS += share/legal
 396 
 397 # Find all legal src dirs for a particular module
 398 # $1 - Module to find legal dirs for
 399 FindModuleLegalSrcDirs = \
 400     $(strip $(wildcard \
 401         $(addsuffix /$(strip $1), $(IMPORT_MODULES_LEGAL)) \

 402         $(foreach sub, $(LEGAL_SUBDIRS), $(addsuffix /$(strip $1)/$(sub), $(TOP_SRC_DIRS))) \
 403     ))
 404 
 405 ################################################################################
 406 
 407 # Param 1 - Name of module
 408 define ReadSingleImportMetaData
 409     ifneq ($$(wildcard $(IMPORT_MODULES_MAKE)/$$(strip $1)/build.properties), )
 410       classloader :=
 411       include_in_jre :=
 412       include_in_jdk :=
 413       include $(IMPORT_MODULES_MAKE)/$$(strip $1)/build.properties
 414       ifeq ($$(include_in_jre), true)
 415         JRE_MODULES += $1
 416       endif
 417       ifeq ($$(include_in_jdk), true)
 418         JDK_MODULES += $1
 419       endif
 420       ifeq ($$(classloader), boot)
 421         BOOT_MODULES += $1


< prev index next >