38 # Append demo goals to this variable.
39 BUILD_DEMOS =
40
41 # The demo structure and contents should really be cleaned up.
42 # Now every other demo has its own quirks where to put the
43 # READMEs and other files.
44
45 DEMO_SHARE_SRC := $(JDK_TOPDIR)/src/demo/share
46 DEMO_CLOSED_SHARE_SRC := $(JDK_TOPDIR)/src/closed/demo/share
47 DEMO_SOLARIS_SRC := $(JDK_TOPDIR)/src/demo/solaris
48 DEMO_OS_TYPE_SRC := $(JDK_TOPDIR)/src/demo/$(OPENJDK_TARGET_OS_TYPE)
49 GLOBAL_VERSION_INFO_RESOURCE := $(JDK_TOPDIR)/src/java.base/windows/native/common/version.rc
50
51 ##################################################################################################
52
53 # This rule will be depended on due to the MANIFEST line
54 $(eval $(call SetupTextFileProcessing, BUILD_JAVA_MANIFEST, \
55 SOURCE_FILES := $(JDK_TOPDIR)/make/data/mainmanifest/manifest.mf, \
56 OUTPUT_FILE := $(SUPPORT_OUTPUTDIR)/demo/java-main-manifest.mf, \
57 REPLACEMENTS := \
58 @@RELEASE@@ => $(RELEASE) ; \
59 @@COMPANY_NAME@@ => $(COMPANY_NAME) , \
60 ))
61
62 define SetupAppletDemo
63 $$(eval $$(call SetupJavaCompilation,BUILD_DEMO_APPLET_$1, \
64 SETUP := GENERATE_USINGJDKBYTECODE, \
65 SRC := $(JDK_TOPDIR)/src/$3demo/share/applets/$1, \
66 BIN := $(SUPPORT_OUTPUTDIR)/demo/image/applets/$1, \
67 COPY := .html .java .xyz .obj .au .gif, \
68 DISABLE_SJAVAC := $2))
69 BUILD_DEMOS += $$(BUILD_DEMO_APPLET_$1)
70 endef
71
72 ifneq ($(OPENJDK_TARGET_OS), solaris)
73 $(eval $(call SetupAppletDemo,ArcTest))
74 $(eval $(call SetupAppletDemo,BarChart))
75 $(eval $(call SetupAppletDemo,Blink))
76 $(eval $(call SetupAppletDemo,CardTest))
77 $(eval $(call SetupAppletDemo,Clock))
78 $(eval $(call SetupAppletDemo,DitherTest))
|
38 # Append demo goals to this variable.
39 BUILD_DEMOS =
40
41 # The demo structure and contents should really be cleaned up.
42 # Now every other demo has its own quirks where to put the
43 # READMEs and other files.
44
45 DEMO_SHARE_SRC := $(JDK_TOPDIR)/src/demo/share
46 DEMO_CLOSED_SHARE_SRC := $(JDK_TOPDIR)/src/closed/demo/share
47 DEMO_SOLARIS_SRC := $(JDK_TOPDIR)/src/demo/solaris
48 DEMO_OS_TYPE_SRC := $(JDK_TOPDIR)/src/demo/$(OPENJDK_TARGET_OS_TYPE)
49 GLOBAL_VERSION_INFO_RESOURCE := $(JDK_TOPDIR)/src/java.base/windows/native/common/version.rc
50
51 ##################################################################################################
52
53 # This rule will be depended on due to the MANIFEST line
54 $(eval $(call SetupTextFileProcessing, BUILD_JAVA_MANIFEST, \
55 SOURCE_FILES := $(JDK_TOPDIR)/make/data/mainmanifest/manifest.mf, \
56 OUTPUT_FILE := $(SUPPORT_OUTPUTDIR)/demo/java-main-manifest.mf, \
57 REPLACEMENTS := \
58 @@VERSION_SPECIFICATION@@ => $(VERSION_SPECIFICATION) ; \
59 @@VERSION_SHORT@@ => $(VERSION_SHORT) ; \
60 @@COMPANY_NAME@@ => $(COMPANY_NAME) , \
61 ))
62
63 define SetupAppletDemo
64 $$(eval $$(call SetupJavaCompilation,BUILD_DEMO_APPLET_$1, \
65 SETUP := GENERATE_USINGJDKBYTECODE, \
66 SRC := $(JDK_TOPDIR)/src/$3demo/share/applets/$1, \
67 BIN := $(SUPPORT_OUTPUTDIR)/demo/image/applets/$1, \
68 COPY := .html .java .xyz .obj .au .gif, \
69 DISABLE_SJAVAC := $2))
70 BUILD_DEMOS += $$(BUILD_DEMO_APPLET_$1)
71 endef
72
73 ifneq ($(OPENJDK_TARGET_OS), solaris)
74 $(eval $(call SetupAppletDemo,ArcTest))
75 $(eval $(call SetupAppletDemo,BarChart))
76 $(eval $(call SetupAppletDemo,Blink))
77 $(eval $(call SetupAppletDemo,CardTest))
78 $(eval $(call SetupAppletDemo,Clock))
79 $(eval $(call SetupAppletDemo,DitherTest))
|