jdk/makefiles/CompileDemos.gmk
changeset 21742 e61b55843e88
parent 21535 aac40f500833
equal deleted inserted replaced
21721:31b0e03fcad7 21742:e61b55843e88
     1 
     1 
     2 #
     2 #
     3 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
     3 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
     4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     5 #
     5 #
     6 # This code is free software; you can redistribute it and/or modify it
     6 # This code is free software; you can redistribute it and/or modify it
     7 # under the terms of the GNU General Public License version 2 only, as
     7 # under the terms of the GNU General Public License version 2 only, as
     8 # published by the Free Software Foundation.  Oracle designates this
     8 # published by the Free Software Foundation.  Oracle designates this
    54       COPY := .html .java .xyz .obj .au .gif, \
    54       COPY := .html .java .xyz .obj .au .gif, \
    55       DISABLE_SJAVAC := $2))
    55       DISABLE_SJAVAC := $2))
    56       BUILD_DEMOS += $$(BUILD_DEMO_APPLET_$1)
    56       BUILD_DEMOS += $$(BUILD_DEMO_APPLET_$1)
    57 endef
    57 endef
    58 
    58 
    59 $(eval $(call SetupAppletDemo,ArcTest))
    59 ifneq ($(OPENJDK_TARGET_OS), solaris)
    60 $(eval $(call SetupAppletDemo,BarChart))
    60   $(eval $(call SetupAppletDemo,ArcTest))
    61 $(eval $(call SetupAppletDemo,Blink))
    61   $(eval $(call SetupAppletDemo,BarChart))
    62 $(eval $(call SetupAppletDemo,CardTest))
    62   $(eval $(call SetupAppletDemo,Blink))
    63 $(eval $(call SetupAppletDemo,Clock))
    63   $(eval $(call SetupAppletDemo,CardTest))
    64 $(eval $(call SetupAppletDemo,DitherTest))
    64   $(eval $(call SetupAppletDemo,Clock))
    65 $(eval $(call SetupAppletDemo,DrawTest))
    65   $(eval $(call SetupAppletDemo,DitherTest))
    66 $(eval $(call SetupAppletDemo,Fractal))
    66   $(eval $(call SetupAppletDemo,DrawTest))
    67 $(eval $(call SetupAppletDemo,GraphicsTest))
    67   $(eval $(call SetupAppletDemo,Fractal))
    68 $(eval $(call SetupAppletDemo,NervousText))
    68   $(eval $(call SetupAppletDemo,GraphicsTest))
    69 $(eval $(call SetupAppletDemo,SimpleGraph))
    69   $(eval $(call SetupAppletDemo,NervousText))
    70 $(eval $(call SetupAppletDemo,SortDemo))
    70   $(eval $(call SetupAppletDemo,SimpleGraph))
    71 $(eval $(call SetupAppletDemo,SpreadSheet))
    71   $(eval $(call SetupAppletDemo,SortDemo))
    72 
    72   $(eval $(call SetupAppletDemo,SpreadSheet))
    73 ifndef OPENJDK
    73 
    74   $(eval $(call SetupAppletDemo,Animator,,closed/))
    74   ifndef OPENJDK
    75   $(eval $(call SetupAppletDemo,GraphLayout,true,closed/))
    75     $(eval $(call SetupAppletDemo,Animator,,closed/))
    76   $(eval $(call SetupAppletDemo,JumpingBox,,closed/))
    76     $(eval $(call SetupAppletDemo,GraphLayout,true,closed/))
    77   $(eval $(call SetupAppletDemo,TicTacToe,,closed/))
    77     $(eval $(call SetupAppletDemo,JumpingBox,,closed/))
       
    78     $(eval $(call SetupAppletDemo,TicTacToe,,closed/))
       
    79   endif
    78 endif
    80 endif
    79 
    81 
    80 ##################################################################################################
    82 ##################################################################################################
    81 
    83 
    82 PATTERNS_TO_COPY = .html .txt .properties .js .gif .jpg .theme .data .opt README .c .h .png .ttf .xyz .obj
    84 PATTERNS_TO_COPY = .html .txt .properties .js .gif .jpg .theme .data .opt README .c .h .png .ttf .xyz .obj
   155 	$(RM) -r $(JDK_OUTPUTDIR)/demo/jfc/CodePointIM/_the.tmp
   157 	$(RM) -r $(JDK_OUTPUTDIR)/demo/jfc/CodePointIM/_the.tmp
   156 	$(TOUCH) $@
   158 	$(TOUCH) $@
   157 
   159 
   158 BUILD_DEMOS += $(JDK_OUTPUTDIR)/demo/jfc/CodePointIM/_the.services
   160 BUILD_DEMOS += $(JDK_OUTPUTDIR)/demo/jfc/CodePointIM/_the.services
   159 
   161 
   160 $(eval $(call SetupDemo,MoleculeViewer,applets,,XYZChemModel,,,example*.html *.java))
   162 ifneq ($(OPENJDK_TARGET_OS), solaris)
   161 $(eval $(call SetupDemo,WireFrame,applets,,ThreeD,,,example*.html *.java))
   163   $(eval $(call SetupDemo,MoleculeViewer,applets,,XYZChemModel,,,example*.html *.java))
       
   164   $(eval $(call SetupDemo,WireFrame,applets,,ThreeD,,,example*.html *.java))
       
   165   $(eval $(call SetupDemo,SwingApplet,jfc,,SwingApplet,,,README* *.html))
       
   166 endif
   162 $(eval $(call SetupDemo,FileChooserDemo,jfc,,FileChooserDemo,,,README*))
   167 $(eval $(call SetupDemo,FileChooserDemo,jfc,,FileChooserDemo,,,README*))
   163 $(eval $(call SetupDemo,Font2DTest,jfc,,Font2DTest,,,*.html *.txt))
   168 $(eval $(call SetupDemo,Font2DTest,jfc,,Font2DTest,,,*.html *.txt))
   164 $(eval $(call SetupDemo,Metalworks,jfc,,Metalworks,,,README*))
   169 $(eval $(call SetupDemo,Metalworks,jfc,,Metalworks,,,README*))
   165 $(eval $(call SetupDemo,Notepad,jfc,,Notepad,,,README*))
   170 $(eval $(call SetupDemo,Notepad,jfc,,Notepad,,,README*))
   166 $(eval $(call SetupDemo,SampleTree,jfc,,SampleTree,,,README*))
   171 $(eval $(call SetupDemo,SampleTree,jfc,,SampleTree,,,README*))
   167 $(eval $(call SetupDemo,SwingApplet,jfc,,SwingApplet,,,README* *.html))
       
   168 $(eval $(call SetupDemo,TableExample,jfc,,TableExample,,,README*))
   172 $(eval $(call SetupDemo,TableExample,jfc,,TableExample,,,README*))
   169 $(eval $(call SetupDemo,TransparentRuler,jfc,,transparentruler.Ruler,,,README*))
   173 $(eval $(call SetupDemo,TransparentRuler,jfc,,transparentruler.Ruler,,,README*))
   170 $(eval $(call SetupDemo,jconsole-plugin,scripting,,,,,*.xml *.txt,,,,Main-Class: \n))
   174 $(eval $(call SetupDemo,jconsole-plugin,scripting,,,,,*.xml *.txt,,,,Main-Class: \n))
   171 $(eval $(call SetupDemo,FullThreadDump,management,,FullThreadDump,,,README*))
   175 $(eval $(call SetupDemo,FullThreadDump,management,,FullThreadDump,,,README*))
   172 $(eval $(call SetupDemo,JTop,management,,JTop,,,README*))
   176 $(eval $(call SetupDemo,JTop,management,,JTop,,,README*))
   178   $(eval $(call SetupDemo,Laffy,jfc,,,,closed/,*))
   182   $(eval $(call SetupDemo,Laffy,jfc,,,,closed/,*))
   179   $(eval $(call SetupDemo,SwingSet3,jfc,,,,closed/,*))
   183   $(eval $(call SetupDemo,SwingSet3,jfc,,,,closed/,*))
   180 
   184 
   181   $(eval $(call SetupDemo,Java2D,jfc,,java2d.Java2Demo,,closed/,*.html README*,Java2Demo))
   185   $(eval $(call SetupDemo,Java2D,jfc,,java2d.Java2Demo,,closed/,*.html README*,Java2Demo))
   182   $(eval $(call SetupDemo,Stylepad,jfc,,Stylepad, \
   186   $(eval $(call SetupDemo,Stylepad,jfc,,Stylepad, \
   183       $(JDK_TOPDIR)/src/share/demo/jfc/Notepad,closed/,*.txt,,$(JDK_TOPDIR)/src/share/demo/jfc/Notepad/README.txt))
   187   $(JDK_TOPDIR)/src/share/demo/jfc/Notepad,closed/,*.txt,,$(JDK_TOPDIR)/src/share/demo/jfc/Notepad/README.txt))
   184   $(eval $(call SetupDemo,SwingSet2,jfc,,SwingSet2,,closed/,README* *.html,,,.java COPYRIGHT, \
   188   $(eval $(call SetupDemo,SwingSet2,jfc,,SwingSet2,,closed/,README* *.html,,,.java COPYRIGHT, \
   185       SplashScreen-Image: resources/images/splash.png,true))
   189       SplashScreen-Image: resources/images/splash.png,true))
   186 
   190 
   187   BUILD_DEMOS += $(patsubst $(JDK_TOPDIR)/src/closed/share/demo/nbproject/%, \
   191   BUILD_DEMOS += $(patsubst $(JDK_TOPDIR)/src/closed/share/demo/nbproject/%, \
   188       $(JDK_OUTPUTDIR)/demo/nbproject/%, \
   192       $(JDK_OUTPUTDIR)/demo/nbproject/%, \
   189       $(call CacheFind, $(JDK_TOPDIR)/src/closed/share/demo/nbproject))
   193       $(call CacheFind, $(JDK_TOPDIR)/src/closed/share/demo/nbproject))
   190 
   194 
   191   $(JDK_OUTPUTDIR)/demo/nbproject/%: $(JDK_TOPDIR)/src/closed/share/demo/nbproject/%
   195   $(JDK_OUTPUTDIR)/demo/nbproject/%: $(JDK_TOPDIR)/src/closed/share/demo/nbproject/%
   192 	$(call install-file)
   196 	$(call install-file)
   193 	$(CHMOD) -f ug+w $@
   197 	$(CHMOD) -f ug+w $@
       
   198     ifeq ($(OPENJDK_TARGET_OS), solaris)
       
   199 	  $(RM) -r $(JDK_OUTPUTDIR)/demo/nbproject/jfc/SwingApplet
       
   200     endif
   194 endif
   201 endif
   195 
   202 
   196 ##################################################################################################
   203 ##################################################################################################
   197 
   204 
   198 # In the old makefiles, j2dbench was not compiled.
   205 # In the old makefiles, j2dbench was not compiled.