< prev index next >

make/autoconf/flags.m4

Print this page
rev 48062 : 8192833: JEP 322: Time-Based Release Versioning


 296   # On Windows, we need to set RC flags.
 297   if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
 298     RC_FLAGS="-nologo -l0x409"
 299     JVM_RCFLAGS="-nologo"
 300     if test "x$DEBUG_LEVEL" = xrelease; then
 301       RC_FLAGS="$RC_FLAGS -DNDEBUG"
 302       JVM_RCFLAGS="$JVM_RCFLAGS -DNDEBUG"
 303     fi
 304 
 305     # The version variables used to create RC_FLAGS may be overridden
 306     # in a custom configure script, or possibly the command line.
 307     # Let those variables be expanded at make time in spec.gmk.
 308     # The \$ are escaped to the shell, and the $(...) variables
 309     # are evaluated by make.
 310     RC_FLAGS="$RC_FLAGS \
 311         -D\"JDK_VERSION_STRING=\$(VERSION_STRING)\" \
 312         -D\"JDK_COMPANY=\$(COMPANY_NAME)\" \
 313         -D\"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \
 314         -D\"JDK_VER=\$(VERSION_NUMBER)\" \
 315         -D\"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\" \
 316         -D\"JDK_NAME=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) \$(VERSION_MAJOR)\" \
 317         -D\"JDK_FVER=\$(subst .,\$(COMMA),\$(VERSION_NUMBER_FOUR_POSITIONS))\""
 318 
 319     JVM_RCFLAGS="$JVM_RCFLAGS \
 320         -D\"HS_BUILD_ID=\$(VERSION_STRING)\" \
 321         -D\"HS_COMPANY=\$(COMPANY_NAME)\" \
 322         -D\"JDK_DOTVER=\$(VERSION_NUMBER_FOUR_POSITIONS)\" \
 323         -D\"HS_COPYRIGHT=Copyright $COPYRIGHT_YEAR\" \
 324         -D\"HS_NAME=\$(PRODUCT_NAME) \$(VERSION_SHORT)\" \
 325         -D\"JDK_VER=\$(subst .,\$(COMMA),\$(VERSION_NUMBER_FOUR_POSITIONS))\" \
 326         -D\"HS_FNAME=jvm.dll\" \
 327         -D\"HS_INTERNAL_NAME=jvm\""
 328   fi
 329   AC_SUBST(RC_FLAGS)
 330   AC_SUBST(JVM_RCFLAGS)
 331 
 332   if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
 333     # silence copyright notice and other headers.
 334     COMMON_CCXXFLAGS="$COMMON_CCXXFLAGS -nologo"
 335   fi
 336 ])




 296   # On Windows, we need to set RC flags.
 297   if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
 298     RC_FLAGS="-nologo -l0x409"
 299     JVM_RCFLAGS="-nologo"
 300     if test "x$DEBUG_LEVEL" = xrelease; then
 301       RC_FLAGS="$RC_FLAGS -DNDEBUG"
 302       JVM_RCFLAGS="$JVM_RCFLAGS -DNDEBUG"
 303     fi
 304 
 305     # The version variables used to create RC_FLAGS may be overridden
 306     # in a custom configure script, or possibly the command line.
 307     # Let those variables be expanded at make time in spec.gmk.
 308     # The \$ are escaped to the shell, and the $(...) variables
 309     # are evaluated by make.
 310     RC_FLAGS="$RC_FLAGS \
 311         -D\"JDK_VERSION_STRING=\$(VERSION_STRING)\" \
 312         -D\"JDK_COMPANY=\$(COMPANY_NAME)\" \
 313         -D\"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \
 314         -D\"JDK_VER=\$(VERSION_NUMBER)\" \
 315         -D\"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\" \
 316         -D\"JDK_NAME=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) \$(VERSION_FEATURE)\" \
 317         -D\"JDK_FVER=\$(subst .,\$(COMMA),\$(VERSION_NUMBER_FOUR_POSITIONS))\""
 318 
 319     JVM_RCFLAGS="$JVM_RCFLAGS \
 320         -D\"HS_BUILD_ID=\$(VERSION_STRING)\" \
 321         -D\"HS_COMPANY=\$(COMPANY_NAME)\" \
 322         -D\"JDK_DOTVER=\$(VERSION_NUMBER_FOUR_POSITIONS)\" \
 323         -D\"HS_COPYRIGHT=Copyright $COPYRIGHT_YEAR\" \
 324         -D\"HS_NAME=\$(PRODUCT_NAME) \$(VERSION_SHORT)\" \
 325         -D\"JDK_VER=\$(subst .,\$(COMMA),\$(VERSION_NUMBER_FOUR_POSITIONS))\" \
 326         -D\"HS_FNAME=jvm.dll\" \
 327         -D\"HS_INTERNAL_NAME=jvm\""
 328   fi
 329   AC_SUBST(RC_FLAGS)
 330   AC_SUBST(JVM_RCFLAGS)
 331 
 332   if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
 333     # silence copyright notice and other headers.
 334     COMMON_CCXXFLAGS="$COMMON_CCXXFLAGS -nologo"
 335   fi
 336 ])


< prev index next >