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