comparison make/CompileDemos.gmk @ 51872:0ce279d8c9cd

8207941: javax/swing/plaf/basic/BasicGraphicsUtils/8132119/bug8132119.java fails on machines without Arial font [testbug] Reviewed-by: goetz, psadhukhan
author mbaesken
date Tue, 24 Jul 2018 09:27:42 +0200
parents 5500595d8ebf
children 28094715ae71
comparison
equal deleted inserted replaced
9:d5cc5327b491 10:de58ac1333b7
65 REPLACEMENTS := \ 65 REPLACEMENTS := \
66 @@VERSION_SPECIFICATION@@ => $(VERSION_SPECIFICATION) ; \ 66 @@VERSION_SPECIFICATION@@ => $(VERSION_SPECIFICATION) ; \
67 @@VERSION_SHORT@@ => $(VERSION_SHORT) ; \ 67 @@VERSION_SHORT@@ => $(VERSION_SHORT) ; \
68 @@COMPANY_NAME@@ => $(COMPANY_NAME) , \ 68 @@COMPANY_NAME@@ => $(COMPANY_NAME) , \
69 )) 69 ))
70
71 ################################################################################
72 # Build applet demos.
73
74 # Setup make rules for building a demo applet.
75 #
76 # Parameter 1 is the name of the rule. This name is used as variable prefix,
77 # and the targets generated are listed in a variable by that name. It is also
78 # used to locate the name of the applet subdir, and to determine the name
79 # of the output directory.
80 #
81 # Remaining parameters are named arguments. These include:
82 # SRC_DIR Alternative source directory to use for the demos.
83 # DISABLE_SJAVAC Passed to SetupJavaCompilation
84
85 SetupBuildAppletDemo = $(NamedParamsMacroTemplate)
86 define SetupBuildAppletDemoBody
87 ifeq ($$($1_SRC_DIR), )
88 $1_SRC_DIR := $(DEMO_SHARE_SRC)/applets
89 endif
90
91 $$(eval $$(call SetupJavaCompilation, BUILD_DEMO_APPLET_$1, \
92 SETUP := GENERATE_USINGJDKBYTECODE, \
93 SRC := $$($1_SRC_DIR)/$1, \
94 BIN := $(SUPPORT_OUTPUTDIR)/demos/image/applets/$1, \
95 COPY := .html .java .xyz .obj .au .gif, \
96 DISABLE_SJAVAC := $$($1_DISABLE_SJAVAC), \
97 ))
98
99 $1 := $$(BUILD_DEMO_APPLET_$1)
100
101 TARGETS += $$($1)
102 endef
103
104 ifneq ($(OPENJDK_TARGET_OS), solaris)
105 $(eval $(call SetupBuildAppletDemo, ArcTest))
106 $(eval $(call SetupBuildAppletDemo, BarChart))
107 $(eval $(call SetupBuildAppletDemo, Blink))
108 $(eval $(call SetupBuildAppletDemo, CardTest))
109 $(eval $(call SetupBuildAppletDemo, Clock))
110 $(eval $(call SetupBuildAppletDemo, DitherTest))
111 $(eval $(call SetupBuildAppletDemo, DrawTest))
112 $(eval $(call SetupBuildAppletDemo, Fractal))
113 $(eval $(call SetupBuildAppletDemo, GraphicsTest))
114 $(eval $(call SetupBuildAppletDemo, NervousText))
115 $(eval $(call SetupBuildAppletDemo, SimpleGraph))
116 $(eval $(call SetupBuildAppletDemo, SortDemo))
117 $(eval $(call SetupBuildAppletDemo, SpreadSheet))
118 endif
119 70
120 ################################################################################ 71 ################################################################################
121 # Build normal demos. 72 # Build normal demos.
122 73
123 COPY_TO_JAR := .html .txt .properties .js .gif .jpg .theme .data .opt .c .h \ 74 COPY_TO_JAR := .html .txt .properties .js .gif .jpg .theme .data .opt .c .h \
218 $(CODEPOINT_METAINF_SERVICE_FILE): $(DEMO_SHARE_SRC)/jfc/CodePointIM/$(CODEPOINT_SERVICE) 169 $(CODEPOINT_METAINF_SERVICE_FILE): $(DEMO_SHARE_SRC)/jfc/CodePointIM/$(CODEPOINT_SERVICE)
219 $(call install-file) 170 $(call install-file)
220 171
221 $(BUILD_DEMO_CodePointIM_JAR): $(CODEPOINT_METAINF_SERVICE_FILE) 172 $(BUILD_DEMO_CodePointIM_JAR): $(CODEPOINT_METAINF_SERVICE_FILE)
222 173
223 ifneq ($(OPENJDK_TARGET_OS), solaris)
224 $(eval $(call SetupBuildDemo, MoleculeViewer, \
225 DEMO_SUBDIR := applets, \
226 MAIN_CLASS := XYZChemModel, \
227 EXTRA_COPY_TO_IMAGE := *.java, \
228 ))
229
230 $(eval $(call SetupBuildDemo, WireFrame, \
231 DEMO_SUBDIR := applets, \
232 MAIN_CLASS := ThreeD, \
233 EXTRA_COPY_TO_IMAGE := *.java, \
234 ))
235
236 endif
237
238 $(eval $(call SetupBuildDemo, FileChooserDemo, \ 174 $(eval $(call SetupBuildDemo, FileChooserDemo, \
239 DEMO_SUBDIR := jfc, \ 175 DEMO_SUBDIR := jfc, \
240 )) 176 ))
241 177
242 $(eval $(call SetupBuildDemo, SwingSet2, \ 178 $(eval $(call SetupBuildDemo, SwingSet2, \