make/CompileDemos.gmk
changeset 47217 72e3ae9a25eb
parent 47216 71c04702a3d5
child 47314 743814386712
equal deleted inserted replaced
47216:71c04702a3d5 47217:72e3ae9a25eb
    36 include SetupJavaCompilers.gmk
    36 include SetupJavaCompilers.gmk
    37 include TextFileProcessing.gmk
    37 include TextFileProcessing.gmk
    38 include ZipArchive.gmk
    38 include ZipArchive.gmk
    39 
    39 
    40 # Prepare the find cache.
    40 # Prepare the find cache.
    41 $(eval $(call FillCacheFind, $(wildcard $(JDK_TOPDIR)/src/demo \
    41 $(eval $(call FillCacheFind, $(wildcard $(TOPDIR)/src/demo \
    42     $(JDK_TOPDIR)/src/*/demo)))
    42     $(TOPDIR)/src/*/demo)))
    43 
    43 
    44 # Append demo goals to this variable.
    44 # Append demo goals to this variable.
    45 TARGETS =
    45 TARGETS =
    46 
    46 
    47 # The demo structure and contents should really be cleaned up.
    47 # The demo structure and contents should really be cleaned up.
    48 # Now every other demo has its own quirks where to put the
    48 # Now every other demo has its own quirks where to put the
    49 # READMEs and other files.
    49 # READMEs and other files.
    50 
    50 
    51 DEMO_SHARE_SRC := $(JDK_TOPDIR)/src/demo/share
    51 DEMO_SHARE_SRC := $(TOPDIR)/src/demo/share
    52 GLOBAL_VERSION_INFO_RESOURCE := $(JDK_TOPDIR)/src/java.base/windows/native/common/version.rc
    52 GLOBAL_VERSION_INFO_RESOURCE := $(TOPDIR)/src/java.base/windows/native/common/version.rc
    53 
    53 
    54 DEMO_MANIFEST := $(SUPPORT_OUTPUTDIR)/demos/java-main-manifest.mf
    54 DEMO_MANIFEST := $(SUPPORT_OUTPUTDIR)/demos/java-main-manifest.mf
    55 
    55 
    56 # This rule will be depended on due to the MANIFEST line in SetupBuildDemo
    56 # This rule will be depended on due to the MANIFEST line in SetupBuildDemo
    57 # and SetupBuildJvmtiDemo.
    57 # and SetupBuildJvmtiDemo.
    58 $(eval $(call SetupTextFileProcessing, BUILD_JAVA_MANIFEST, \
    58 $(eval $(call SetupTextFileProcessing, BUILD_JAVA_MANIFEST, \
    59   SOURCE_FILES := $(JDK_TOPDIR)/make/data/mainmanifest/manifest.mf, \
    59   SOURCE_FILES := $(TOPDIR)/make/data/mainmanifest/manifest.mf, \
    60   OUTPUT_FILE := $(DEMO_MANIFEST), \
    60   OUTPUT_FILE := $(DEMO_MANIFEST), \
    61   REPLACEMENTS := \
    61   REPLACEMENTS := \
    62       @@VERSION_SPECIFICATION@@ => $(VERSION_SPECIFICATION) ; \
    62       @@VERSION_SPECIFICATION@@ => $(VERSION_SPECIFICATION) ; \
    63       @@VERSION_SHORT@@ => $(VERSION_SHORT) ; \
    63       @@VERSION_SHORT@@ => $(VERSION_SHORT) ; \
    64       @@COMPANY_NAME@@ => $(COMPANY_NAME) , \
    64       @@COMPANY_NAME@@ => $(COMPANY_NAME) , \
   301   IMAGES_TARGETS := $(COPY_TO_TEST_IMAGE)
   301   IMAGES_TARGETS := $(COPY_TO_TEST_IMAGE)
   302 endif
   302 endif
   303 
   303 
   304 ################################################################################
   304 ################################################################################
   305 # Hook to include the corresponding custom file, if present.
   305 # Hook to include the corresponding custom file, if present.
   306 $(eval $(call IncludeCustomExtension, jdk, CompileDemos.gmk))
   306 $(eval $(call IncludeCustomExtension, , CompileDemos.gmk))
   307 
   307 
   308 all: $(TARGETS)
   308 all: $(TARGETS)
   309 images: $(IMAGES_TARGETS)
   309 images: $(IMAGES_TARGETS)
   310 
   310 
   311 .PHONY: all
   311 .PHONY: all