mirror of
https://github.com/openjdk/jdk.git
synced 2026-07-18 15:09:37 +00:00
6246816: SwingSet2 should be rewritten
Reviewed-by: peterz
This commit is contained in:
parent
4edf584b30
commit
7264124305
@ -73,8 +73,11 @@ DEMO_BUILD_AREA = $(DEMOCLASSDIR)/$(PRODUCT)/$(DEMONAME)
|
||||
|
||||
# Destination "src" directory
|
||||
DEMO_BUILD_SRCDIR = $(DEMO_BUILD_AREA)/src
|
||||
DEMO_BUILD_SRCZIP = $(DEMO_BUILD_AREA)/src.zip
|
||||
DEMO_SOURCE_ZIP = $(DEMO_DESTDIR)/src.zip
|
||||
|
||||
ifndef DEMO_SKIP_SRCZIP
|
||||
DEMO_BUILD_SRCZIP = $(DEMO_BUILD_AREA)/src.zip
|
||||
DEMO_SOURCE_ZIP = $(DEMO_DESTDIR)/src.zip
|
||||
endif
|
||||
|
||||
# Place to hold the jar image we are creating
|
||||
DEMO_JAR_IMAGE = $(DEMO_BUILD_AREA)/jar_image
|
||||
@ -258,14 +261,16 @@ $(DEMO_JAR): \
|
||||
|
||||
endif
|
||||
|
||||
# Create a src.zip file
|
||||
$(DEMO_BUILD_SRCZIP): $(DEMO_FULL_SOURCES)
|
||||
ifndef DEMO_SKIP_SRCZIP
|
||||
# Create a src.zip file
|
||||
$(DEMO_BUILD_SRCZIP): $(DEMO_FULL_SOURCES)
|
||||
@$(prep-target)
|
||||
$(CD) $(DEMO_BUILD_AREA)/src && $(ZIPEXE) -q -r ../$(@F) .
|
||||
|
||||
# Install the destination src.zip file and create the src tree
|
||||
$(DEMO_SOURCE_ZIP): $(DEMO_BUILD_SRCZIP)
|
||||
# Install the destination src.zip file and create the src tree
|
||||
$(DEMO_SOURCE_ZIP): $(DEMO_BUILD_SRCZIP)
|
||||
$(install-file)
|
||||
endif
|
||||
|
||||
# Native library building
|
||||
ifdef DEMO_LIBRARY
|
||||
@ -362,7 +367,7 @@ clean clobber:
|
||||
$(RM) -r $(DEMO_BUILD_AREA)
|
||||
$(RM) -r $(DEMO_DESTDIR)
|
||||
|
||||
# This should not be needed, but some versions of GNU amke have a bug that
|
||||
# This should not be needed, but some versions of GNU make have a bug that
|
||||
# sometimes deleted these files for some strange and unknown reason
|
||||
# (GNU make version 3.78.1 has the problem, GNU make version 3.80 doesn't?)
|
||||
.PRECIOUS: $(DEMO_FULL_SOURCES) $(DEMO_BUILD_SRCZIP) $(DEMO_SOURCE_ZIP)
|
||||
|
||||
@ -43,7 +43,7 @@ SUBDIRS = \
|
||||
|
||||
# Some demos aren't currently included in OpenJDK
|
||||
ifndef OPENJDK
|
||||
SUBDIRS += Java2D SwingSet2 Stylepad
|
||||
SUBDIRS += Java2D SwingSet2 SwingSet3 Stylepad
|
||||
endif
|
||||
|
||||
include $(BUILDDIR)/common/Subdirs.gmk
|
||||
|
||||
43
jdk/make/mkdemo/jfc/SwingSet3/Makefile
Normal file
43
jdk/make/mkdemo/jfc/SwingSet3/Makefile
Normal file
@ -0,0 +1,43 @@
|
||||
#
|
||||
# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
#
|
||||
# This code is free software; you can redistribute it and/or modify it
|
||||
# under the terms of the GNU General Public License version 2 only, as
|
||||
# published by the Free Software Foundation. Oracle designates this
|
||||
# particular file as subject to the "Classpath" exception as provided
|
||||
# by Oracle in the LICENSE file that accompanied this code.
|
||||
#
|
||||
# This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
# version 2 for more details (a copy is included in the LICENSE file that
|
||||
# accompanied this code).
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License version
|
||||
# 2 along with this work; if not, write to the Free Software Foundation,
|
||||
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
#
|
||||
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
# or visit www.oracle.com if you need additional information or have any
|
||||
# questions.
|
||||
#
|
||||
|
||||
#
|
||||
# Makefile to build the SwingSet3 demo.
|
||||
#
|
||||
|
||||
BUILDDIR = ../../..
|
||||
PRODUCT = demo/jfc
|
||||
DEMONAME = SwingSet3
|
||||
include $(BUILDDIR)/common/Defs.gmk
|
||||
|
||||
DEMO_ROOT = $(CLOSED_SRC)/share/demo/jfc/$(DEMONAME)
|
||||
DEMO_DESTDIR = $(DEMODIR)/jfc/$(DEMONAME)
|
||||
DEMO_TOPFILES = ./readme.html ./swingset3.png
|
||||
DEMO_SKIP_SRCZIP = true
|
||||
|
||||
#
|
||||
# Demo jar building rules.
|
||||
#
|
||||
include $(BUILDDIR)/common/Demo.gmk
|
||||
Loading…
x
Reference in New Issue
Block a user