jdk/make/javax/swing/plaf/Makefile
changeset 3742 5e1b8bc3cb1a
parent 2800 f7318b0bd705
child 4665 d14dc3d9e1fa
equal deleted inserted replaced
3741:4021567cd4ca 3742:5e1b8bc3cb1a
    32 #
    32 #
    33 # Files
    33 # Files
    34 #
    34 #
    35 include FILES.gmk
    35 include FILES.gmk
    36 AUTO_FILES_JAVA_DIRS = javax/swing/plaf sun/swing com/sun/java/swing/plaf
    36 AUTO_FILES_JAVA_DIRS = javax/swing/plaf sun/swing com/sun/java/swing/plaf
    37 ifndef DISABLE_NIMBUS
       
    38   SUBDIRS = nimbus
       
    39 endif
       
    40 
       
    41 # Nimbus is handled in its own directory
       
    42 AUTO_JAVA_PRUNE = nimbus
       
    43 
    37 
    44 ifeq ($(PLATFORM), windows)
    38 ifeq ($(PLATFORM), windows)
    45     # Don't build GTK L&F on Windows
    39     # Don't build GTK L&F on Windows
    46     AUTO_JAVA_PRUNE += gtk
    40     AUTO_JAVA_PRUNE = gtk
       
    41 endif
       
    42 
       
    43 ifdef DISABLE_NIMBUS
       
    44     AUTO_JAVA_PRUNE += nimbus
    47 endif
    45 endif
    48 
    46 
    49 MISC_FILES = $(MISC_SWING_FILES)
    47 MISC_FILES = $(MISC_SWING_FILES)
    50 ifneq ($(PLATFORM), windows)
    48 ifneq ($(PLATFORM), windows)
    51     # Only include GTK icons on Solaris/Linux
    49     # Only include GTK icons on Solaris/Linux
    52     MISC_FILES += $(MISC_SWING_FILES_UNIX)
    50     MISC_FILES += $(MISC_SWING_FILES_UNIX)
    53 endif
    51 endif
       
    52 
       
    53 NIMBUS_GENSRC_DIR = $(GENSRCDIR)/javax/swing/plaf/nimbus
       
    54 NIMBUS_SKIN_FILE = $(SWING_SRC)/plaf/nimbus/skin.laf
       
    55 NIMBUS_GENERATOR_JAR = $(BUILDTOOLJARDIR)/generatenimbus.jar
    54 
    56 
    55 FILES_java = $(FILES_SWING_java)
    57 FILES_java = $(FILES_SWING_java)
    56 
    58 
    57 #
    59 #
    58 # Resources
    60 # Resources
    73 #
    75 #
    74 # Rules.
    76 # Rules.
    75 # Process LOGO_ICONS and Motif Icons first.
    77 # Process LOGO_ICONS and Motif Icons first.
    76 #
    78 #
    77 build: $(LOGO_ICONS) $(MISC_SWING_FILES_MOTIF_GIF) $(MISC_SWING_FILES_MOTIF_PNG) other_files
    79 build: $(LOGO_ICONS) $(MISC_SWING_FILES_MOTIF_GIF) $(MISC_SWING_FILES_MOTIF_PNG) other_files
    78 	$(SUBDIRS-loop)
       
    79 
    80 
    80 clean clobber::
    81 $(NIMBUS_GENSRC_DIR): $(NIMBUS_SKIN_FILE) $(NIMBUS_GENERATOR_JAR)
    81 	$(SUBDIRS-loop)
    82 	@$(ECHO) "Generating Nimbus source files:"
       
    83 	$(RM) -r $(NIMBUS_GENSRC_DIR)
       
    84 	$(BOOT_JAVA_CMD) -jar $(NIMBUS_GENERATOR_JAR) \
       
    85 	    -skinFile $(NIMBUS_SKIN_FILE) -buildDir $(GENSRCDIR) \
       
    86 	    -packagePrefix $(PACKAGE).nimbus -lafName Nimbus
       
    87 	@$(ECHO) "Finished generating Nimbus source files"
       
    88 
       
    89 clean:: classes.clean
       
    90 	$(RM) -r $(NIMBUS_GENSRC_DIR)
    82 
    91 
    83 #
    92 #
    84 # Include
    93 # Include
    85 #
    94 #
       
    95 ifndef DISABLE_NIMBUS
       
    96     CLASSES_INIT = $(NIMBUS_GENSRC_DIR)
       
    97 endif
       
    98 
    86 include $(BUILDDIR)/common/Classes.gmk
    99 include $(BUILDDIR)/common/Classes.gmk
    87 
   100 
    88 ifndef OPENJDK
   101 ifndef OPENJDK
    89 $(LOGO_ICONS): $(CLASSBINDIR)/%.png: $(CLOSED_SRC)/share/classes/%.png
   102 $(LOGO_ICONS): $(CLASSBINDIR)/%.png: $(CLOSED_SRC)/share/classes/%.png
    90 	$(install-file)
   103 	$(install-file)