jdk/makefiles/javax/swing/plaf/Makefile
changeset 13063 c1602d72983b
parent 13062 ee5778a552cb
parent 12974 7e981cb0ad6a
child 13064 7eae1fc045c9
child 13176 2c1fa96ba3d7
equal deleted inserted replaced
13062:ee5778a552cb 13063:c1602d72983b
     1 #
       
     2 # Copyright (c) 1998, 2011, Oracle and/or its affiliates. All rights reserved.
       
     3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       
     4 #
       
     5 # This code is free software; you can redistribute it and/or modify it
       
     6 # under the terms of the GNU General Public License version 2 only, as
       
     7 # published by the Free Software Foundation.  Oracle designates this
       
     8 # particular file as subject to the "Classpath" exception as provided
       
     9 # by Oracle in the LICENSE file that accompanied this code.
       
    10 #
       
    11 # This code is distributed in the hope that it will be useful, but WITHOUT
       
    12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
       
    13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
       
    14 # version 2 for more details (a copy is included in the LICENSE file that
       
    15 # accompanied this code).
       
    16 #
       
    17 # You should have received a copy of the GNU General Public License version
       
    18 # 2 along with this work; if not, write to the Free Software Foundation,
       
    19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
       
    20 #
       
    21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
       
    22 # or visit www.oracle.com if you need additional information or have any
       
    23 # questions.
       
    24 #
       
    25 
       
    26 BUILDDIR  = ../../..
       
    27 PACKAGE   = javax.swing.plaf
       
    28 PRODUCT   = com
       
    29 SWING_SRC = $(SHARE_SRC)/classes/javax/swing
       
    30 include $(BUILDDIR)/common/Defs.gmk
       
    31 
       
    32 #
       
    33 # Files
       
    34 #
       
    35 include FILES.gmk
       
    36 AUTO_FILES_JAVA_DIRS = javax/swing/plaf sun/swing com/sun/java/swing/plaf
       
    37 
       
    38 ifeq ($(PLATFORM), windows)
       
    39     # Don't build GTK L&F on Windows
       
    40     AUTO_JAVA_PRUNE = gtk
       
    41 endif
       
    42 
       
    43 ifdef DISABLE_NIMBUS
       
    44     AUTO_JAVA_PRUNE += nimbus
       
    45 endif
       
    46 
       
    47 MISC_FILES = $(MISC_SWING_FILES)
       
    48 ifneq ($(PLATFORM), windows)
       
    49     # Only include GTK icons on Solaris/Linux
       
    50     MISC_FILES += $(MISC_SWING_FILES_UNIX)
       
    51 endif
       
    52 
       
    53 NIMBUS_GENSRC_DIR = $(GENSRCDIR)/javax/swing/plaf/nimbus
       
    54 NIMBUS_SKIN_FILE = $(SWING_SRC)/plaf/nimbus/skin.laf
       
    55 
       
    56 FILES_java = $(FILES_SWING_java)
       
    57 
       
    58 #
       
    59 # Resources
       
    60 #
       
    61 LOCALE_SET_DEFINITION = jre
       
    62 RESOURCE_BUNDLES_COMPILED_PROPERTIES = \
       
    63 	com/sun/swing/internal/plaf/basic/resources/basic.properties \
       
    64 	com/sun/swing/internal/plaf/metal/resources/metal.properties \
       
    65 	com/sun/swing/internal/plaf/synth/resources/synth.properties \
       
    66 	com/sun/java/swing/plaf/motif/resources/motif.properties \
       
    67         com/sun/java/swing/plaf/windows/resources/windows.properties
       
    68 ifneq ($(PLATFORM), windows)
       
    69     # Only compile GTK resource bundles on Solaris/Linux
       
    70     RESOURCE_BUNDLES_COMPILED_PROPERTIES += \
       
    71         com/sun/java/swing/plaf/gtk/resources/gtk.properties
       
    72 endif
       
    73 
       
    74 #
       
    75 # Rules.
       
    76 # Process LOGO_ICONS and Motif Icons first.
       
    77 #
       
    78 build: $(LOGO_ICONS) $(MISC_SWING_FILES_MOTIF_GIF) $(MISC_SWING_FILES_MOTIF_PNG) other_files
       
    79 
       
    80 $(NIMBUS_GENSRC_DIR): $(NIMBUS_SKIN_FILE) $(BUILD_TOOLS)
       
    81 	@$(ECHO) "Generating Nimbus source files:"
       
    82 	$(RM) -r $(NIMBUS_GENSRC_DIR)
       
    83 	$(TOOL_GENERATENIMBUS) \
       
    84 	    -skinFile $(NIMBUS_SKIN_FILE) -buildDir $(GENSRCDIR) \
       
    85 	    -packagePrefix $(PACKAGE).nimbus -lafName Nimbus
       
    86 	@$(ECHO) "Finished generating Nimbus source files"
       
    87 
       
    88 clean:: classes.clean
       
    89 	$(RM) -r $(NIMBUS_GENSRC_DIR)
       
    90 
       
    91 #
       
    92 # Include
       
    93 #
       
    94 ifndef DISABLE_NIMBUS
       
    95     CLASSES_INIT = $(NIMBUS_GENSRC_DIR)
       
    96 endif
       
    97 
       
    98 include $(BUILDDIR)/common/Classes.gmk
       
    99 
       
   100 ifndef OPENJDK
       
   101 $(LOGO_ICONS): $(CLASSBINDIR)/%.png: $(CLOSED_SRC)/share/classes/%.png
       
   102 	$(install-file)
       
   103 
       
   104 $(MISC_SWING_FILES_MOTIF_GIF): $(CLASSBINDIR)/%.gif: $(CLOSED_SRC)/share/classes/%.gif
       
   105 	$(install-file)
       
   106 
       
   107 $(MISC_SWING_FILES_MOTIF_PNG): $(CLASSBINDIR)/%.png: $(CLOSED_SRC)/share/classes/%.png
       
   108 	$(install-file)
       
   109 endif	
       
   110 
       
   111 other_files: $(MISC_FILES)
       
   112 
       
   113 $(CLASSBINDIR)/%.wav: $(SHARE_SRC)/classes/%.wav
       
   114 	$(install-file)
       
   115 
       
   116 $(CLASSBINDIR)/%.gif: $(SHARE_SRC)/classes/%.gif
       
   117 	$(install-file)
       
   118 
       
   119 $(CLASSBINDIR)/%.png: $(SHARE_SRC)/classes/%.png
       
   120 	$(install-file)
       
   121 
       
   122 $(CLASSBINDIR)/%.xml: $(SHARE_SRC)/classes/%.xml
       
   123 	$(install-file)
       
   124 
       
   125 $(CLASSBINDIR)/%.css: $(SHARE_SRC)/classes/%.css
       
   126 	$(install-file)
       
   127 
       
   128 $(CLASSBINDIR)/%.bdtd: $(SHARE_SRC)/classes/%.bdtd
       
   129 	$(install-file)
       
   130 
       
   131 $(CLASSBINDIR)/%.txt: $(SHARE_SRC)/classes/%.txt
       
   132 	$(install-file)
       
   133