jdk/makefiles/GenerateJavaSources.gmk
changeset 14231 a0c23c1c010f
parent 13583 dc0017b1a452
child 18241 3e009b5be123
equal deleted inserted replaced
14104:8d9d430b4244 14231:a0c23c1c010f
    65 include GensrcExceptions.gmk
    65 include GensrcExceptions.gmk
    66 GENSRC += $(GENSRC_EXCEPTIONS)
    66 GENSRC += $(GENSRC_EXCEPTIONS)
    67 
    67 
    68 ifneq ($(OPENJDK_TARGET_OS),windows)
    68 ifneq ($(OPENJDK_TARGET_OS),windows)
    69 include GensrcIcons.gmk
    69 include GensrcIcons.gmk
    70 GENSRC += $(GENSRC_ICONS)
    70 GENSRC += $(GENSRC_X11_ICONS)
       
    71 
       
    72 ifeq ($(OPENJDK_TARGET_OS),macosx)
       
    73 GENSRC += $(GENSRC_OSX_ICONS)
       
    74 endif
    71 
    75 
    72 include GensrcX11Wrappers.gmk
    76 include GensrcX11Wrappers.gmk
    73 GENSRC += $(GENSRC_X11WRAPPERS)
    77 GENSRC += $(GENSRC_X11WRAPPERS)
    74 endif
    78 endif
    75 
    79 
    76 include GensrcCLDR.gmk
    80 include GensrcCLDR.gmk
    77 GENSRC += $(GENSRC_CLDR)
    81 GENSRC += $(GENSRC_CLDR)
    78 
    82 
    79 include GensrcSwing.gmk
    83 include GensrcSwing.gmk
    80 ifndef DISABLE_NIMBUS
    84 GENSRC += $(GENSRC_SWING_BEANINFO) $(GENSRC_SWING_NIMBUS)
    81   GENSRC += $(GENSRC_SWING_NIMBUS)
       
    82 endif
       
    83 
    85 
    84 ifeq ($(OPENJDK_TARGET_OS), macosx)
    86 ifeq ($(OPENJDK_TARGET_OS), macosx)
    85      include GensrcJObjC.gmk
    87      include GensrcJObjC.gmk
    86      GENSRC += $(GENSRC_JOBJC)
    88      GENSRC += $(GENSRC_JOBJC)
    87 endif
    89 endif
    88 
    90 
    89 $(GENSRC) : $(BUILD_TOOLS)
    91 $(GENSRC) : $(BUILD_TOOLS)
    90 
    92 
    91 # The exception handling of swing beaninfo
    93 all: $(GENSRC)
    92 # gensrc_swing/javax/swing/beaninfo/* have not be in src.zip
    94 
    93 all: $(GENSRC) $(GENSRC_SWING_BEANINFO)
       
    94 	$(MKDIR) -p $(JDK_OUTPUTDIR)/gensrc
       
    95 	(cd $(JDK_OUTPUTDIR) && \
       
    96 		$(CHMOD) -R u+rw gensrc && \
       
    97 		$(CP) -rp gensrc_characterdata/* gensrc && \
       
    98 		$(CP) -rp gensrc_properties/* gensrc && \
       
    99 		$(CP) -rp gensrc_localedatametainfo/* gensrc && \
       
   100 		$(CP) -rp gensrc_jdwp/* gensrc && \
       
   101 		$(CP) -rp gensrc_misc/* gensrc && \
       
   102 		$(CP) -rp gensrc_charsetmapping/* gensrc && \
       
   103 		$(CP) -rp gensrc_charsetcoder/* gensrc && \
       
   104 		$(CP) -rp gensrc_exceptions/* gensrc && \
       
   105 		$(CP) -rp gensrc_buffer/* gensrc && \
       
   106 		$(CP) -rp gensrc_cldr/* gensrc)
       
   107 	if [ -d  $(JDK_OUTPUTDIR)/gensrc_swing/javax/swing/plaf ] ; then \
       
   108 		(cd $(JDK_OUTPUTDIR) && \
       
   109 		$(MKDIR) -p gensrc/javax/swing/plaf && \
       
   110 		$(CP) -rp gensrc_swing/javax/swing/plaf/* gensrc/javax/swing/plaf) \
       
   111 	fi
       
   112 	if [ -d $(JDK_OUTPUTDIR)/gensrc_jobjc ] ; then \
       
   113 		(cd $(JDK_OUTPUTDIR) && cp -rp gensrc_jobjc/src/* gensrc) \
       
   114 	fi
       
   115 ifneq ($(OPENJDK_TARGET_OS),windows)
       
   116 	(cd $(JDK_OUTPUTDIR) && \
       
   117 		$(CP) -rp gensrc_icons/* gensrc && \
       
   118 		$(CP) -rp gensrc_x11wrappers/classes/* gensrc)
       
   119 endif
       
   120 
    95 
   121 .PHONY: all
    96 .PHONY: all