makefiles/CopyIntoClasses.gmk

Print this page




 132     $(wildcard $(SWING_PLAF_GTK_RESOURCES_DIR)/icons/*.png) \
 133     $(wildcard $(SWING_PLAF_GTK_RESOURCES_DIR)/resources/metacity/SwingFallbackTheme/metacity-1/*.xml)
 134 endif
 135 # END: Swing plaf resources
 136 
 137 SWING_BEANINFO_RESOURCES_SRC_DIR = $(JDK_TOPDIR)/make/tools/swing-beans/beaninfo/images
 138 SWING_BEANINFO_RESOURCES_SRC = $(wildcard $(SWING_BEANINFO_RESOURCES_SRC_DIR)/*.gif)
 139 OUT_BEANINFO_RESOURCES = $(patsubst $(SWING_BEANINFO_RESOURCES_SRC_DIR)%,\
 140                                     $(JDK_OUTPUTDIR)/classes/javax/swing/beaninfo/images/%,\
 141                                     $(SWING_BEANINFO_RESOURCES_SRC))
 142 
 143 COPY_EXTRA += $(OUT_BEANINFO_RESOURCES)
 144 # END: Swing beaninfo resources
 145 
 146 # Swing text resources
 147 SWING_TEXT_RESOURCEDIR = $(JDK_TOPDIR)/src/share/classes/javax/swing/text
 148 COPY_FILES += \
 149   $(SWING_TEXT_RESOURCEDIR)/html/default.css \
 150   $(wildcard $(SWING_TEXT_RESOURCEDIR)/rtf/charsets/*.txt)
 151 










 152 ##########################################################################################
 153 #
 154 # Copy the META-INF/services configuration files that are scattered around the source tree
 155 # into classes/META-INF/services. Be aware that META-INF directories that are located at a
 156 # source root (.../classes/META-INF) are automatically copied verbatim by the
 157 # SetupJavaCompilation macro. 
 158 #
 159 # Any other META-INF/services configuration file is found here and platform specific comments
 160 # are uncommented and the configuration file is stored in the output META-INF directory.
 161 
 162 # Make sure the output directory is created.
 163 $(eval $(call MakeDir,$(JDK_OUTPUTDIR)/classes/META-INF/services))
 164 # Find all META-INF/services/* files
 165 ALL_META-INF_DIRS_share:=$(shell $(FIND) $(JDK_TOPDIR)/src/share/classes -type d -a -name META-INF)
 166 ALL_META-INF_DIRS_targetapi:=$(shell $(FIND) $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/classes -type d -a -name META-INF)
 167 # Platform specific overrides shared
 168 ifneq ($(ALL_META-INF_DIRS_targetapi),)
 169     ALL_META-INF_DIRS:=$(ALL_META-INF_DIRS_targetapi) \
 170         $(filter-out %$(patsubst $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/classes%,%,$(ALL_META-INF_DIRS_targetapi)),\
 171                 $(ALL_META-INF_DIRS_share))




 132     $(wildcard $(SWING_PLAF_GTK_RESOURCES_DIR)/icons/*.png) \
 133     $(wildcard $(SWING_PLAF_GTK_RESOURCES_DIR)/resources/metacity/SwingFallbackTheme/metacity-1/*.xml)
 134 endif
 135 # END: Swing plaf resources
 136 
 137 SWING_BEANINFO_RESOURCES_SRC_DIR = $(JDK_TOPDIR)/make/tools/swing-beans/beaninfo/images
 138 SWING_BEANINFO_RESOURCES_SRC = $(wildcard $(SWING_BEANINFO_RESOURCES_SRC_DIR)/*.gif)
 139 OUT_BEANINFO_RESOURCES = $(patsubst $(SWING_BEANINFO_RESOURCES_SRC_DIR)%,\
 140                                     $(JDK_OUTPUTDIR)/classes/javax/swing/beaninfo/images/%,\
 141                                     $(SWING_BEANINFO_RESOURCES_SRC))
 142 
 143 COPY_EXTRA += $(OUT_BEANINFO_RESOURCES)
 144 # END: Swing beaninfo resources
 145 
 146 # Swing text resources
 147 SWING_TEXT_RESOURCEDIR = $(JDK_TOPDIR)/src/share/classes/javax/swing/text
 148 COPY_FILES += \
 149   $(SWING_TEXT_RESOURCEDIR)/html/default.css \
 150   $(wildcard $(SWING_TEXT_RESOURCEDIR)/rtf/charsets/*.txt)
 151 
 152 
 153 ifndef OPENJDK
 154   ifeq ($(INCLUDE_JAVASCRIPT),yes)
 155 
 156     JS_RESOURCES_SRC_DIR := $(JDK_TOPDIR)/src/closed/share/classes/sun/org/mozilla/javascript/internal/resources
 157     COPY_FILES += $(wildcard $(JS_RESOURCES_SRC_DIR)/Messages*.properties)
 158 
 159   endif
 160 endif
 161 
 162 ##########################################################################################
 163 #
 164 # Copy the META-INF/services configuration files that are scattered around the source tree
 165 # into classes/META-INF/services. Be aware that META-INF directories that are located at a
 166 # source root (.../classes/META-INF) are automatically copied verbatim by the
 167 # SetupJavaCompilation macro. 
 168 #
 169 # Any other META-INF/services configuration file is found here and platform specific comments
 170 # are uncommented and the configuration file is stored in the output META-INF directory.
 171 
 172 # Make sure the output directory is created.
 173 $(eval $(call MakeDir,$(JDK_OUTPUTDIR)/classes/META-INF/services))
 174 # Find all META-INF/services/* files
 175 ALL_META-INF_DIRS_share:=$(shell $(FIND) $(JDK_TOPDIR)/src/share/classes -type d -a -name META-INF)
 176 ALL_META-INF_DIRS_targetapi:=$(shell $(FIND) $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/classes -type d -a -name META-INF)
 177 # Platform specific overrides shared
 178 ifneq ($(ALL_META-INF_DIRS_targetapi),)
 179     ALL_META-INF_DIRS:=$(ALL_META-INF_DIRS_targetapi) \
 180         $(filter-out %$(patsubst $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/classes%,%,$(ALL_META-INF_DIRS_targetapi)),\
 181                 $(ALL_META-INF_DIRS_share))