< prev index next >

make/common/Modules.gmk

Print this page
*** 73,10 ***
--- 73,16 ---
  
  GENERATED_SRC_DIRS += \
      $(SUPPORT_OUTPUTDIR)/gensrc \
      #
  
+ # Directories in which generated preview classes may exist.
+ # Currently this is restricted to generated value classes, but can be extended.
+ GENERATED_PREVIEW_SUBDIRS += \
+     $(SUPPORT_OUTPUTDIR)/gensrc-valueclasses \
+     #
+ 
  TOP_SRC_DIRS += \
      $(TOPDIR)/src \
      #
  
  SRC_SUBDIRS += $(OPENJDK_TARGET_OS)/classes

*** 142,10 ***
--- 148,17 ---
  FindModuleSrcDirs = \
      $(strip $(wildcard \
          $(addsuffix /$(strip $1), $(GENERATED_SRC_DIRS) $(IMPORT_MODULES_SRC)) \
          $(foreach sub, $(SRC_SUBDIRS), $(addsuffix /$(strip $1)/$(sub), $(TOP_SRC_DIRS)))))
  
+ # Find preview class source dirs for a particular module.
+ # Currently this is restricted to generated value classes, but can be extended.
+ # $1 - Module to find source dirs for
+ FindModulePreviewSrcDirs = \
+     $(strip $(wildcard \
+         $(addsuffix /$(strip $1), $(GENERATED_PREVIEW_SUBDIRS))))
+ 
  # Find all specs dirs for a particular module
  # $1 - Module to find specs dirs for
  FindModuleSpecsDirs = \
      $(strip $(wildcard \
          $(foreach sub, $(SPEC_SUBDIRS), $(addsuffix /$(strip $1)/$(sub), $(TOP_SRC_DIRS)))))

*** 164,10 ***
--- 177,17 ---
  GetModuleSrcPath = \
      $(call PathList, \
          $(addsuffix /*, $(GENERATED_SRC_DIRS) $(IMPORT_MODULES_SRC)) \
          $(foreach sub, $(SRC_SUBDIRS), $(addsuffix /*/$(sub), $(TOP_SRC_DIRS))))
  
+ # Construct the complete module source path for preview classes.
+ # Currently this is restricted to generated value classes, but can be extended.
+ GetModulePreviewSrcPath = \
+     $(call PathList, \
+         $(addsuffix /*, $(GENERATED_PREVIEW_SUBDIRS) $(GENERATED_SRC_DIRS) $(IMPORT_MODULES_SRC)) \
+         $(foreach sub, $(SRC_SUBDIRS), $(addsuffix /*/$(sub), $(TOP_SRC_DIRS))))
+ 
  ################################################################################
  # Extract module dependencies from module-info.java files, both normal
  # dependencies ("requires"), and indirect exports ("requires transitive").
  
  MODULE_DEPS_MAKEFILE := $(MAKESUPPORT_OUTPUTDIR)/module-deps.gmk
< prev index next >