Defs-windows.gmk revision 914
#
# Copyright 2005-2008 Sun Microsystems, Inc. All Rights Reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation. Sun designates this
# particular file as subject to the "Classpath" exception as provided
# by Sun in the LICENSE file that accompanied this code.
#
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
#
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
# CA 95054 USA or visit www.sun.com if you need additional information or
# have any questions.
#
#
# Definitions for Windows.
#
# Default for COMPILER_WARNINGS_FATAL on Windows (C++ compiler warnings)
# Level: Default is 3, 0 means none, 4 is the most but may be unreliable
# Some makefiles may have set this to 0 to turn off warnings completely,
# which also effectively creates a COMPILER_WARNINGS_FATAL=false situation.
# Program.gmk may turn this down to 2 (building .exe's).
# Windows 64bit platforms are less likely to be warning free.
# Historically, Windows 32bit builds should be mostly warning free.
COMPILER_WARNINGS_FATAL=false
# Windows should use parallel compilation for best build times
# Indication that we are doing an incremental build.
# This may trigger the creation of make depend files.
# (This may not be working on windows yet, always force to false.)
override INCREMENTAL_BUILD = false
# WARNING: This is extremely touch stuff, between CYGWIN vs. MKS and all
# variations of MKS and CYGWIN releases, and 32bit vs 64bit,
# this file can give you nightmares.
#
# Notes:
# Keep all paths in the windows "mixed" style except CYGWIN UNXIXCOMMAND_PATH.
# Use of PrefixPath is critical, some variables must end with / (see NOTE).
# Use of quotes is critical due to possible spaces in paths coming from
# the environment variables, be careful.
# First convert \ to / with subst, keep it quoted due to blanks, then
# use cygpath -s or dosname -s to get the short non-blank name.
# If the MKS is old and doesn't have a dosname -s, you will be forced
# to set ALT variables with the short non-space directory names.
# If dosname doesn't appear to work, we won't use it.
# The dosname utility also wants to accept stdin if it is not supplied
# any path on the command line, this is really dangerous when using
# make variables that can easily become empty, so I use:
# echo $1 | dosname -s instead of dosname -s $1
# to prevent dosname from hanging up the make process when $1 is empty.
# The cygpath utility does not have this problem.
# The ALT values should never really have spaces or use \.
# SYSTEMROOT, SystemRoot, WINDIR, windir, PROGRAMFILES, ProgramFiles,
# DXSDK_DIR, MSTOOLS, Mstools, MSSDK, MSSdk, VCnnCOMNTOOLS,
# MSVCDIR, MSVCDir.
# So use $(subst \,/,) on them first adding quotes and placing them in
# their own variable assigned with :=, then use FullPath.
#
# Use FullPath to get C:/ style non-spaces path. Never ends with a /!
# We assume cygpath is available in the search path
# NOTE: Use of 'pwd' with CYGWIN will not get you a mixed style path!
CYGPATH_CMD=cygpath -a -s -m
else
# Temporary until we upgrade to MKS 8.7, MKS pwd returns mixed mode path
# System drive
else
_system_drive:=$(call CheckValue,_system_drive,C:)
# UNIXCOMMAND_PATH: path to where the most common Unix commands are.
# NOTE: Must end with / so that it could be empty, allowing PATH usage.
else
UNIXCOMMAND_PATH :=$(call PrefixPath,/usr/bin)
else
else
# Get version of MKS or CYGWIN
_MKS_VER :=$(shell $(MKSINFO) 2>&1 | $(GREP) Release | $(TAIL) -1 | $(SED) -e 's@.*\(Release.*\)@\1@')
# At this point, we can re-define FullPath to use DOSNAME_CMD
TRY_DOSNAME:=false
TRY_DOSNAME:=true
# Newer should be ok
TRY_DOSNAME:=true
DOSNAME_CMD:=$(_DOSNAME) -s
endif # test dosname -s
endif # TRY_DOSNAME
endif # MKS
# We try to get references to what we need via the default component
# environment variables, or what was used historically.
# Process Windows values into FullPath values, these paths may have \ chars
# System root
else
else
else
# Program Files directory
else
else
else
else
# DirectX SDK
else
else
# Compilers, SDK, and Visual Studio (MSDEV) [32bit is different from 64bit]
# Try looking in MSVCDIR or MSVCDir area first (set by vcvars32.bat)
else
else
# If we still don't have it, look for VSnnCOMNTOOLS (newest first),
# set by installer?
_redist_sdk :=$(_vs71tools)/../..
# The Microsoft Platform SDK installed by itself
# If no SDK found yet, look in other places
else
else
# Compilers for 64bit are from SDK
# Location on system where jdk installs might be
else
# SLASH_JAVA: location of all network accessable files
else
else
SLASH_JAVA =J:
# JDK_DEVTOOLS_DIR: common path for all the java devtools
else
# COMPILER_PATH: path to where the compiler and tools are installed.
# NOTE: Must end with / so that it could be empty, allowing PATH usage.
else
# MSDEVTOOLS_PATH: path to where the additional MS Compiler tools are.
# NOTE: Must end with / so that it could be empty, allowing PATH usage.
else
else
else
_ms_tools :=
else
_ms_tools_bin :=$(_compiler_bin)/../../..
else
# DEVTOOLS_PATH: for other tools required for building (such as zip, etc.)
# NOTE: Must end with / so that it could be empty, allowing PATH usage.
else
else
# _BOOTDIR1: First choice for a Bootstrap JDK, previous released JDK.
# _BOOTDIR2: Second choice
# See if SDK area has a msvcrt.dll file, directory may exist w/o msvcr* files
_REDIST_SDK_EXISTS := $(shell \
echo "true"; \
else \
echo "false"; \
fi)
_REDISTNN_SDK_EXISTS := $(shell \
echo "true"; \
else \
echo "false"; \
fi)
# 32 bit needs 2 runtimes
# MSVCRT_DLL_PATH: location of msvcrt.dll that will be re-distributed
else
xREDIST_DIR :=$(_redist_sdk)
else
# MSVCRNN_DLL_PATH: location of msvcrnn.dll that will be re-distributed
else
xREDISTNN_DIR :=$(_redist_sdk)
else
else
# MSVCRT_DLL_PATH: location of msvcrt.dll that will be re-distributed
else
xREDIST_DIR :=$(_redist_sdk)
else
# DXSDK_PATH: path to Microsoft DirectX SDK Include and Lib
else
_DXSDK_PATH1 :=$(_dx_sdk_dir)
# DXSDK_INCLUDE_PATH: path to Microsoft DirectX SDK Include
else
# DXSDK_LIB_PATH: path to Microsoft DirectX SDK Lib
else
else
# DEPLOY_MSSDK: Microsoft SDK for this platform (for deploy)
else
DEPLOY_MSSDK :=$(_ms_sdk)
# INSTALL_MSSDK: Microsoft Installer SDK for this platform (for install)
else
INSTALL_MSSDK :=$(_psdk)
# INSTALL_MSIVAL2: Installation of MsiVal2 for this platform (for install)
else
# WSCRIPT: path to wscript.exe (used in creating install bundles)
WSCRIPT =$(xALT_WSCRIPT)
else
# batch mode no modal dialogs on errors, please.
WSCRIPT += -B
# CSCRIPT: path to cscript.exe (used in creating install bundles)
CSCRIPT =$(xALT_CSCRIPT)
else
# MSIVAL2: path to msival2.exe (used in validating install msi files)
MSIVAL2 =$(xALT_MSIVAL2)
else
# suppress msival2 checks, as it hangs jprt builds
# LOGOCUB: path to cub file for (used in validating install msi files)
LOGOCUB =$(xALT_LOGOCUB)
else
# MSITRAN: path to msitran.exe (used in creating install bundles and sponsors)
MSITRAN =$(xALT_MSITRAN)
else
# MSICERT: path to msicert.exe (used in creating install bundles)
MSICERT =$(xALT_MSICERT)
else
# Import JDK images allow for partial builds, components not built are
# imported (or copied from) these import areas when needed.
# BUILD_JDK_IMPORT_PATH: location of JDK install trees to import for
# multiple platforms, e.g. windows-i586, solaris-sparc, linux-586, etc.
else
# JDK_IMPORT_PATH: location of previously built JDK (this version) to import
else
# HOTSPOT_IMPORT_PATH: location of hotspot pre-built files
else
# HOTSPOT_CLIENT_PATH: location of client jvm library file.
else
# HOTSPOT_SERVER_PATH: location of server jvm library file.
else
# HOTSPOT_LIB_PATH: location of jvm.lib file.
else