--- a/jdk/makefiles/GenerateJavaSources.gmk Wed Jul 05 18:14:56 2017 +0200
+++ b/jdk/makefiles/GenerateJavaSources.gmk Tue Jul 03 16:10:44 2012 -0700
@@ -65,7 +65,7 @@
include GensrcExceptions.gmk
GENSRC += $(GENSRC_EXCEPTIONS)
-ifneq ($(HOST_OS),windows)
+ifneq ($(OPENJDK_TARGET_OS),windows)
include GensrcIcons.gmk
GENSRC += $(GENSRC_ICONS)
@@ -78,6 +78,11 @@
GENSRC += $(GENSRC_SWING_NIMBUS)
endif
+ifeq ($(OPENJDK_TARGET_OS), macosx)
+ include GensrcJObjC.gmk
+ GENSRC += $(GENSRC_JOBJC)
+endif
+
$(GENSRC) : $(BUILD_TOOLS)
# The exception handling of swing beaninfo
@@ -100,7 +105,10 @@
$(MKDIR) -p gensrc/javax/swing/plaf && \
$(CP) -rp gensrc_swing/javax/swing/plaf/* gensrc/javax/swing/plaf) \
fi
-ifneq ($(HOST_OS),windows)
+ if [ -d $(JDK_OUTPUTDIR)/gensrc_jobjc ] ; then \
+ (cd $(JDK_OUTPUTDIR) && cp -rp gensrc_jobjc/src/* gensrc) \
+ fi
+ifneq ($(OPENJDK_TARGET_OS),windows)
(cd $(JDK_OUTPUTDIR) && \
$(CP) -rp gensrc_icons/* gensrc && \
$(CP) -rp gensrc_x11wrappers/classes/* gensrc)