make/common/shared/Defs-java.gmk

Print this page
rev 4354 : Initial standard lambda functions and utils


 117 endif
 118 ifeq ($(JAVAC_MAX_WARNINGS), true)
 119   JAVACFLAGS  += -Xlint:all
 120 endif
 121 ifeq ($(JAVAC_WARNINGS_FATAL), true)
 122   JAVACFLAGS  += -Werror
 123 endif
 124 
 125 #
 126 # Some licensees do not get the Security Source bundles.  We will
 127 # fall back on the prebuilt jce.jar so that we can do a best
 128 # attempt at building.  If sources exist, we always want to
 129 # build/use the most recent source instead of an older jce.jar, whether
 130 # built implicitly/explicitly.
 131 #
 132 ifeq ($(wildcard $(SHARE_SRC)/classes/javax/crypto/Cipher.java),)
 133   JCEFLAGS = $(CLASSPATH_SEPARATOR)$(LIBDIR)/jce.jar
 134 endif
 135 
 136 # Add the source level
 137 SOURCE_LANGUAGE_VERSION = 7
 138 LANGUAGE_VERSION = -source $(SOURCE_LANGUAGE_VERSION)
 139 JAVACFLAGS  += $(LANGUAGE_VERSION)
 140 
 141 # Add the class version we want
 142 TARGET_CLASS_VERSION = 7
 143 CLASS_VERSION = -target $(TARGET_CLASS_VERSION)
 144 JAVACFLAGS  += $(CLASS_VERSION)
 145 JAVACFLAGS  += -encoding ascii
 146 JAVACFLAGS  += "-Xbootclasspath:$(CLASSBINDIR)$(JCEFLAGS)"
 147 JAVACFLAGS  += $(OTHER_JAVACFLAGS)
 148 
 149 # Needed for javah
 150 JAVAHFLAGS += -bootclasspath "$(CLASSBINDIR)$(JCEFLAGS)"
 151 
 152 # Needed for javadoc to ensure it builds documentation
 153 # against the newly built classes
 154 JAVADOCFLAGS += -bootclasspath $(CLASSBINDIR)
 155 
 156 # Needed for JAVADOC and BOOT_JAVACFLAGS
 157 NO_PROPRIETARY_API_WARNINGS = -XDignore.symbol.file=true
 158 
 159 # Langtools
 160 ifdef LANGTOOLS_DIST
 161   JAVAC_JAR   = $(LANGTOOLS_DIST)/bootstrap/lib/javac.jar
 162   JAVAH_JAR   = $(LANGTOOLS_DIST)/bootstrap/lib/javah.jar


 201 #
 202 # The important observation here is that the built jdk is NOT run during
 203 #   the build. If the built jdk needs to be verified that it can build this
 204 #   same jdk, then it should be supplied to the build process as the ALT_BOOTDIR
 205 #   jdk, and this resulting built jdk should be compared to the first one.
 206 #   (They should be the same). Re-using this built jdk as the ALT_BOOTDIR
 207 #   jdk will be the only way and the recommeneded way to verify the built jdk
 208 #   can bootstrap itself.
 209 #
 210 
 211 # The javac options supplied to the boot javac is limited. This compiler
 212 #   should only be used to build the 'make/tools' sources, which are not
 213 #   class files that end up in the classes directory.
 214 ifeq ($(JAVAC_MAX_WARNINGS), true)
 215   BOOT_JAVACFLAGS  += -Xlint:all
 216 endif
 217 ifeq ($(JAVAC_WARNINGS_FATAL), true)
 218   BOOT_JAVACFLAGS  += -Werror
 219 endif
 220 
 221 BOOT_SOURCE_LANGUAGE_VERSION = 6
 222 BOOT_TARGET_CLASS_VERSION = 6
 223 BOOT_JAVACFLAGS  += -encoding ascii -source $(BOOT_SOURCE_LANGUAGE_VERSION) -target $(BOOT_TARGET_CLASS_VERSION)
 224 BOOT_JAR_JFLAGS += $(JAR_JFLAGS)
 225 
 226 BOOT_JAVACFLAGS  += $(NO_PROPRIETARY_API_WARNINGS)
 227 
 228 BOOT_JAVA_CMD      = $(BOOTDIR)/bin/java $(JAVA_TOOLS_FLAGS)
 229 BOOT_JAVAC_CMD     = $(BOOTDIR)/bin/javac $(JAVAC_JVM_FLAGS) $(BOOT_JAVACFLAGS)
 230 BOOT_JAR_CMD       = $(BOOTDIR)/bin/jar
 231 BOOT_JARSIGNER_CMD = $(BOOTDIR)/bin/jarsigner
 232 
 233 # Various tools we need to run (FIXUP: Are these the right ones?)
 234 NATIVE2ASCII    = $(BOOTDIR)/bin/native2ascii $(JAVA_TOOLS_FLAGS:%=-J%)
 235 RMIC            = $(BOOTDIR)/bin/rmic $(JAVA_TOOLS_FLAGS:%=-J%)
 236 IDLJ            = $(BOOTDIR)/bin/idlj $(JAVA_TOOLS_FLAGS:%=-J%)
 237 
 238 # Should not be used
 239 JAVA            = /should/not/be/used
 240 


 117 endif
 118 ifeq ($(JAVAC_MAX_WARNINGS), true)
 119   JAVACFLAGS  += -Xlint:all
 120 endif
 121 ifeq ($(JAVAC_WARNINGS_FATAL), true)
 122   JAVACFLAGS  += -Werror
 123 endif
 124 
 125 #
 126 # Some licensees do not get the Security Source bundles.  We will
 127 # fall back on the prebuilt jce.jar so that we can do a best
 128 # attempt at building.  If sources exist, we always want to
 129 # build/use the most recent source instead of an older jce.jar, whether
 130 # built implicitly/explicitly.
 131 #
 132 ifeq ($(wildcard $(SHARE_SRC)/classes/javax/crypto/Cipher.java),)
 133   JCEFLAGS = $(CLASSPATH_SEPARATOR)$(LIBDIR)/jce.jar
 134 endif
 135 
 136 # Add the source level
 137 SOURCE_LANGUAGE_VERSION = 8
 138 LANGUAGE_VERSION = -source $(SOURCE_LANGUAGE_VERSION)
 139 JAVACFLAGS  += $(LANGUAGE_VERSION)
 140 
 141 # Add the class version we want
 142 TARGET_CLASS_VERSION = 8
 143 CLASS_VERSION = -target $(TARGET_CLASS_VERSION)
 144 JAVACFLAGS  += $(CLASS_VERSION)
 145 JAVACFLAGS  += -encoding ascii
 146 JAVACFLAGS  += "-Xbootclasspath:$(CLASSBINDIR)$(JCEFLAGS)"
 147 JAVACFLAGS  += $(OTHER_JAVACFLAGS)
 148 
 149 # Needed for javah
 150 JAVAHFLAGS += -bootclasspath "$(CLASSBINDIR)$(JCEFLAGS)"
 151 
 152 # Needed for javadoc to ensure it builds documentation
 153 # against the newly built classes
 154 JAVADOCFLAGS += -bootclasspath $(CLASSBINDIR)
 155 
 156 # Needed for JAVADOC and BOOT_JAVACFLAGS
 157 NO_PROPRIETARY_API_WARNINGS = -XDignore.symbol.file=true
 158 
 159 # Langtools
 160 ifdef LANGTOOLS_DIST
 161   JAVAC_JAR   = $(LANGTOOLS_DIST)/bootstrap/lib/javac.jar
 162   JAVAH_JAR   = $(LANGTOOLS_DIST)/bootstrap/lib/javah.jar


 201 #
 202 # The important observation here is that the built jdk is NOT run during
 203 #   the build. If the built jdk needs to be verified that it can build this
 204 #   same jdk, then it should be supplied to the build process as the ALT_BOOTDIR
 205 #   jdk, and this resulting built jdk should be compared to the first one.
 206 #   (They should be the same). Re-using this built jdk as the ALT_BOOTDIR
 207 #   jdk will be the only way and the recommeneded way to verify the built jdk
 208 #   can bootstrap itself.
 209 #
 210 
 211 # The javac options supplied to the boot javac is limited. This compiler
 212 #   should only be used to build the 'make/tools' sources, which are not
 213 #   class files that end up in the classes directory.
 214 ifeq ($(JAVAC_MAX_WARNINGS), true)
 215   BOOT_JAVACFLAGS  += -Xlint:all
 216 endif
 217 ifeq ($(JAVAC_WARNINGS_FATAL), true)
 218   BOOT_JAVACFLAGS  += -Werror
 219 endif
 220 
 221 BOOT_SOURCE_LANGUAGE_VERSION = 7
 222 BOOT_TARGET_CLASS_VERSION = 7
 223 BOOT_JAVACFLAGS  += -encoding ascii -source $(BOOT_SOURCE_LANGUAGE_VERSION) -target $(BOOT_TARGET_CLASS_VERSION)
 224 BOOT_JAR_JFLAGS += $(JAR_JFLAGS)
 225 
 226 BOOT_JAVACFLAGS  += $(NO_PROPRIETARY_API_WARNINGS)
 227 
 228 BOOT_JAVA_CMD      = $(BOOTDIR)/bin/java $(JAVA_TOOLS_FLAGS)
 229 BOOT_JAVAC_CMD     = $(BOOTDIR)/bin/javac $(JAVAC_JVM_FLAGS) $(BOOT_JAVACFLAGS)
 230 BOOT_JAR_CMD       = $(BOOTDIR)/bin/jar
 231 BOOT_JARSIGNER_CMD = $(BOOTDIR)/bin/jarsigner
 232 
 233 # Various tools we need to run (FIXUP: Are these the right ones?)
 234 NATIVE2ASCII    = $(BOOTDIR)/bin/native2ascii $(JAVA_TOOLS_FLAGS:%=-J%)
 235 RMIC            = $(BOOTDIR)/bin/rmic $(JAVA_TOOLS_FLAGS:%=-J%)
 236 IDLJ            = $(BOOTDIR)/bin/idlj $(JAVA_TOOLS_FLAGS:%=-J%)
 237 
 238 # Should not be used
 239 JAVA            = /should/not/be/used
 240