jdk/make/common/shared/Defs-windows.gmk
author ohair
Fri, 15 May 2009 13:14:40 -0700
changeset 2797 0285c9a8502b
parent 2624 1ae5a9028dd4
child 2820 21261fc963f2
permissions -rw-r--r--
6841873: Fix windows redist default location for msvc runtime dlls Reviewed-by: tbell
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
#
1247
b4c26443dee5 6754988: Update copyright year
xdono
parents: 1025
diff changeset
     2
# Copyright 2005-2008 Sun Microsystems, Inc.  All Rights Reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
# published by the Free Software Foundation.  Sun designates this
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
# by Sun in the LICENSE file that accompanied this code.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
# accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
# CA 95054 USA or visit www.sun.com if you need additional information or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
# have any questions.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
# Definitions for Windows.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
# Default for COMPILER_WARNINGS_FATAL on Windows (C++ compiler warnings)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
#    Level: Default is 3, 0 means none, 4 is the most but may be unreliable
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
#    Some makefiles may have set this to 0 to turn off warnings completely,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
#    which also effectively creates a COMPILER_WARNINGS_FATAL=false situation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
#    Program.gmk may turn this down to 2 (building .exe's).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
#    Windows 64bit platforms are less likely to be warning free.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
#    Historically, Windows 32bit builds should be mostly warning free.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
ifndef COMPILER_WARNING_LEVEL
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
  COMPILER_WARNING_LEVEL=3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
ifndef COMPILER_WARNINGS_FATAL
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
  COMPILER_WARNINGS_FATAL=false
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
# Windows should use parallel compilation for best build times
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
ifndef COMPILE_APPROACH
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
  COMPILE_APPROACH = normal
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
# Indication that we are doing an incremental build.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
#    This may trigger the creation of make depend files.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
#    (This may not be working on windows yet, always force to false.)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
override INCREMENTAL_BUILD = false
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
# WARNING: This is extremely touch stuff, between CYGWIN vs. MKS and all
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
#          variations of MKS and CYGWIN releases, and 32bit vs 64bit,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
#          this file can give you nightmares.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
# Notes:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
#   Keep all paths in the windows "mixed" style except CYGWIN UNXIXCOMMAND_PATH.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
#   Use of PrefixPath is critical, some variables must end with / (see NOTE).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
#   Use of quotes is critical due to possible spaces in paths coming from
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
#     the environment variables, be careful.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
#   First convert \ to / with subst, keep it quoted due to blanks, then
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
#     use cygpath -s or dosname -s to get the short non-blank name.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
#   If the MKS is old and doesn't have a dosname -s, you will be forced
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
#     to set ALT variables with the short non-space directory names.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
#     If dosname doesn't appear to work, we won't use it.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
#     The dosname utility also wants to accept stdin if it is not supplied
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
#     any path on the command line, this is really dangerous when using
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
#     make variables that can easily become empty, so I use:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
#        echo $1 | dosname -s     instead of    dosname -s $1
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
#     to prevent dosname from hanging up the make process when $1 is empty.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
#     The cygpath utility does not have this problem.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
#   The ALT values should never really have spaces or use \.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
#   Suspect these environment variables to have spaces and/or \ characters:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
#     SYSTEMROOT, SystemRoot, WINDIR, windir, PROGRAMFILES, ProgramFiles,
1776
33e9405ab91b 6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents: 1247
diff changeset
    77
#     DXSDK_DIR, MSTOOLS, Mstools, MSSDK, MSSdk, VCnnCOMNTOOLS, 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
#     MSVCDIR, MSVCDir.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
#     So use $(subst \,/,) on them first adding quotes and placing them in
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
#         their own variable assigned with :=, then use FullPath.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
# Use FullPath to get C:/ style non-spaces path. Never ends with a /!
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
ifdef USING_CYGWIN
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
# We assume cygpath is available in the search path
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
#    NOTE: Use of 'pwd' with CYGWIN will not get you a mixed style path!
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
CYGPATH_CMD=cygpath -a -s -m
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
define FullPath
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
$(shell $(CYGPATH_CMD) $1 2> $(DEV_NULL))
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
endef
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
define OptFullPath
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
$(shell if [ "$1" != "" -a -d "$1" ]; then $(CYGPATH_CMD) "$1"; else echo "$1"; fi)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
endef
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
# Temporary until we upgrade to MKS 8.7, MKS pwd returns mixed mode path
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
define FullPath
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
$(shell cd $1 2> $(DEV_NULL) && pwd)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
endef
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
define OptFullPath
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
$(shell if [ "$1" != "" -a -d "$1" ]; then (cd $1 && pwd); else echo "$1"; fi)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
endef
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
# System drive
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
ifdef SYSTEMDRIVE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
  _system_drive =$(SYSTEMDRIVE)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
  ifdef SystemDrive
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
    _system_drive =$(SystemDrive)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
_system_drive:=$(call CheckValue,_system_drive,C:)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
# UNIXCOMMAND_PATH: path to where the most common Unix commands are.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
#  NOTE: Must end with / so that it could be empty, allowing PATH usage.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
ifdef ALT_UNIXCOMMAND_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
  xALT_UNIXCOMMAND_PATH  :="$(subst \,/,$(ALT_UNIXCOMMAND_PATH))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
  fxALT_UNIXCOMMAND_PATH :=$(call FullPath,$(xALT_UNIXCOMMAND_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
  UNIXCOMMAND_PATH       :=$(call PrefixPath,$(fxALT_UNIXCOMMAND_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
  ifdef USING_CYGWIN
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
    UNIXCOMMAND_PATH :=$(call PrefixPath,/usr/bin)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
    ifdef ROOTDIR
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
      xROOTDIR :="$(subst \,/,$(ROOTDIR))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
      _rootdir :=$(call FullPath,$(xROOTDIR))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
    else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
      xROOTDIR :="$(_system_drive)/mksnt"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
      _rootdir :=$(call FullPath,$(xROOTDIR))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
    ifneq ($(_rootdir),)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
      UNIXCOMMAND_PATH :=$(call PrefixPath,$(_rootdir)/mksnt)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
UNIXCOMMAND_PATH:=$(call AltCheckSpaces,UNIXCOMMAND_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
# Get version of MKS or CYGWIN
2158
68869a085470 6799141: Build with --hash-style=both so that binaries can work on SuSE 10
ohair
parents: 1776
diff changeset
   139
ifndef USING_CYGWIN
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
_MKS_VER :=$(shell $(MKSINFO) 2>&1 | $(GREP) Release | $(TAIL) -1 | $(SED) -e 's@.*\(Release.*\)@\1@')
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
MKS_VER  :=$(call GetVersion,$(_MKS_VER))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
# At this point, we can re-define FullPath to use DOSNAME_CMD
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
CHECK_MKS87:=$(call CheckVersions,$(MKS_VER),8.7)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
TRY_DOSNAME:=false
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
ifeq ($(CHECK_MKS87),same)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
TRY_DOSNAME:=true
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
# Newer should be ok
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
ifeq ($(CHECK_MKS87),newer)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
TRY_DOSNAME:=true
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
ifeq ($(TRY_DOSNAME),true)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
ifeq ($(shell $(UNIXCOMMAND_PATH)dosname -s $(_system_drive)/ 2> $(DEV_NULL)),$(_system_drive)/)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
_DOSNAME=$(UNIXCOMMAND_PATH)dosname
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
DOSNAME_CMD:=$(_DOSNAME) -s
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
define FullPath
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
$(subst //,/,$(shell echo $1 | $(DOSNAME_CMD) 2> $(DEV_NULL)))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
endef
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
endif # test dosname -s
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
endif # TRY_DOSNAME
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
endif # MKS
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
# We try to get references to what we need via the default component
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
#    environment variables, or what was used historically.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
# Process Windows values into FullPath values, these paths may have \ chars
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
# System root
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
ifdef SYSTEMROOT
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
  xSYSTEMROOT  :="$(subst \,/,$(SYSTEMROOT))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
  _system_root :=$(call FullPath,$(xSYSTEMROOT))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
  ifdef SystemRoot
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
     xSYSTEMROOT :="$(subst \,/,$(SystemRoot))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
    _system_root :=$(call FullPath,$(xSYSTEMROOT))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
    ifdef WINDIR
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
      xWINDIR      :="$(subst \,/,$(WINDIR))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
      _system_root :=$(call FullPath,$(xWINDIR))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
    else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
      ifdef windir
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
        xWINDIR      :="$(subst \,/,$(windir))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
        _system_root :=$(call FullPath,$(xWINDIR))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
      endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
_system_root:=$(call CheckValue,_system_root,$(_system_drive)/WINNT)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
# Program Files directory
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
ifdef PROGRAMFILES
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
  xPROGRAMFILES      :="$(subst \,/,$(PROGRAMFILES))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
  ifeq ($(ARCH_DATA_MODEL), 32)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
    xPROGRAMFILES    :="$(_system_drive)/Program Files"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
    xPROGRAMFILES    :="$(_system_drive)/Program Files (x86)"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
ifeq ($(ARCH_DATA_MODEL), 32)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
  _program_files     :=$(call FullPath,$(xPROGRAMFILES))
2186
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   202
  _program_files32   :=$(_program_files)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
  ifdef PROGRAMW6432
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
    xPROGRAMW6432    :="$(subst \,/,$(PROGRAMW6432))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
    xPROGRAMW6432    :="$(_system_drive)/Program Files"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
  _program_files     :=$(call FullPath,$(xPROGRAMW6432))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
  _program_files32   :=$(call FullPath,$(xPROGRAMFILES))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
  ifneq ($(word 1,$(_program_files32)),$(_program_files32))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
    _program_files32:=
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
ifneq ($(word 1,$(_program_files)),$(_program_files))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
  _program_files:=
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
# DirectX SDK
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
ifdef ALT_DXSDK_DRIVE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
  _dx_sdk_dir  =$(ALT_DXSDK_DRIVE):/DXSDK
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
  ifdef DXSDK_DIR
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
    xDXSDK_DIR  :="$(subst \,/,$(DXSDK_DIR))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
    xDXSDK_DIR  :="$(_system_drive)/DXSDK"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
  _dx_sdk_dir :=$(call FullPath,$(xDXSDK_DIR))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
# Compilers, SDK, and Visual Studio (MSDEV) [32bit is different from 64bit]
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
ifeq ($(ARCH_DATA_MODEL), 32)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
  # Try looking in MSVCDIR or MSVCDir area first (set by vcvars32.bat)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
  ifdef MSVCDIR
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
    xMSVCDIR  :="$(subst \,/,$(MSVCDIR))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
    _msvc_dir :=$(call FullPath,$(xMSVCDIR))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
    ifdef MSVCDir
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
      xMSVCDIR  :="$(subst \,/,$(MSVCDir))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
      _msvc_dir :=$(call FullPath,$(xMSVCDIR))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
    else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
      ifneq ($(_program_files),)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
        xMSVCDIR  :="$(_program_files)/Microsoft Visual Studio .NET 2003/Vc7"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
        _msvc_dir :=$(call FullPath,$(xMSVCDIR))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
      endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
  endif
1776
33e9405ab91b 6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents: 1247
diff changeset
   248
  # If we still don't have it, look for VSnnCOMNTOOLS (newest first),
33e9405ab91b 6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents: 1247
diff changeset
   249
  # set by installer?
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
  ifeq ($(_msvc_dir),)
1776
33e9405ab91b 6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents: 1247
diff changeset
   251
    ifdef VS90COMNTOOLS  # /Common/Tools directory, use ../../Vc
33e9405ab91b 6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents: 1247
diff changeset
   252
      xVS90COMNTOOLS :="$(subst \,/,$(VS90COMNTOOLS))"
33e9405ab91b 6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents: 1247
diff changeset
   253
      _vs90tools     :=$(call FullPath,$(xVS90COMNTOOLS))
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
    endif
1776
33e9405ab91b 6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents: 1247
diff changeset
   255
    ifneq ($(_vs90tools),)
2186
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   256
      _msvc_dir   :=$(_vs90tools)/../../Vc
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   257
    else
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   258
      ifdef VS80COMNTOOLS  # /Common/Tools directory, use ../../Vc
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   259
        xVS80COMNTOOLS :="$(subst \,/,$(VS80COMNTOOLS))"
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   260
        _vs80tools     :=$(call FullPath,$(xVS80COMNTOOLS))
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   261
      endif
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   262
      ifneq ($(_vs80tools),)
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   263
        _msvc_dir   :=$(_vs80tools)/../../Vc
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   264
      else
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   265
        ifdef VS71COMNTOOLS  # /Common/Tools directory, use ../../Vc7
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   266
          xVS71COMNTOOLS :="$(subst \,/,$(VS71COMNTOOLS))"
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   267
          _vs71tools     :=$(call FullPath,$(xVS71COMNTOOLS))
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   268
        endif
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   269
        ifneq ($(_vs71tools),)
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   270
          _msvc_dir   :=$(_vs71tools)/../../Vc7
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   271
        endif
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   272
      endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   273
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   274
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   275
  ifneq ($(_msvc_dir),)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   276
    _compiler_bin :=$(_msvc_dir)/Bin
2186
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   277
    # Assume PlatformSDK is in VS71 (will be empty if VS90)
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   278
    _ms_sdk       :=$(call FullPath,$(_msvc_dir)/PlatformSDK)
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   279
    # Assume VS90, then VS80, then VS71
2797
0285c9a8502b 6841873: Fix windows redist default location for msvc runtime dlls
ohair
parents: 2624
diff changeset
   280
    _redist_sdk   :=$(call FullPath,$(_msvc_dir)/redist/x86/Microsoft.VC90.CRT)
2186
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   281
    ifeq ($(_redist_sdk),)
2797
0285c9a8502b 6841873: Fix windows redist default location for msvc runtime dlls
ohair
parents: 2624
diff changeset
   282
      _redist_sdk   :=$(call FullPath,$(_msvc_dir)/redist/x86/Microsoft.VC80.CRT)
2186
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   283
      ifeq ($(_redist_sdk),)
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   284
        _redist_sdk   :=$(call FullPath,$(_msvc_dir)/../SDK/v1.1/Bin)
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   285
      endif
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   286
    endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   287
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   288
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   289
90ce3da70b43 Initial load
duke
parents:
diff changeset
   290
# The Microsoft Platform SDK installed by itself
90ce3da70b43 Initial load
duke
parents:
diff changeset
   291
ifneq ($(_program_files),)
2186
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   292
  _PSDK :="$(_program_files)/Microsoft SDKs/Windows/v6.1/"
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   293
  _psdk :=$(call FullPath,$(xMSSDK61))
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   294
  ifeq ($(_psdk),)
2186
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   295
    xPSDK  :="$(_program_files)/Microsoft Platform SDK"
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   296
    _psdk  :=$(call FullPath,$(xPSDK))
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   297
    ifeq ($(_psdk),)
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   298
      xPSDK  :="$(_program_files)/Microsoft SDK"
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   299
      _psdk :=$(call FullPath,$(xMSSDK))
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   300
    endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   301
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   302
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   303
90ce3da70b43 Initial load
duke
parents:
diff changeset
   304
# If no SDK found yet, look in other places
90ce3da70b43 Initial load
duke
parents:
diff changeset
   305
ifeq ($(_ms_sdk),)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   306
  ifdef MSSDK
90ce3da70b43 Initial load
duke
parents:
diff changeset
   307
    xMSSDK  :="$(subst \,/,$(MSSDK))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   308
    _ms_sdk :=$(call FullPath,$(xMSSDK))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   309
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   310
    ifdef MSSdk
90ce3da70b43 Initial load
duke
parents:
diff changeset
   311
      xMSSDK  :="$(subst \,/,$(MSSdk))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   312
      _ms_sdk :=$(call FullPath,$(xMSSDK))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   313
    else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   314
      _ms_sdk :=$(_psdk)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   315
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   316
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   317
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   318
90ce3da70b43 Initial load
duke
parents:
diff changeset
   319
# Compilers for 64bit are from SDK
90ce3da70b43 Initial load
duke
parents:
diff changeset
   320
ifeq ($(ARCH_DATA_MODEL), 64)
2186
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   321
  xVS2008 :="$(_program_files32)/Microsoft Visual Studio 9.0/"
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   322
  VS2008 :=$(call FullPath,$(xVS2008))
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   323
  ifneq ($(VS2008),)
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   324
    _compiler_bin :=$(VS2008)/VC/Bin/$(ARCH)
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   325
    xMSSDK61      :="$(_program_files)/Microsoft SDKs/Windows/v6.1/"
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   326
    MSSDK61       :=$(call FullPath,$(xMSSDK61))
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   327
    _redist_sdk   :=$(VS2008)/VC/redist/x86/Microsoft.VC90.CRT
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   328
  else
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   329
    ifneq ($(_ms_sdk),)
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   330
      ifeq ($(ARCH), ia64)
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   331
        _compiler_bin :=$(_ms_sdk)/Bin/Win64
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   332
      endif
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   333
      ifeq ($(ARCH), amd64)
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   334
        _compiler_bin :=$(_ms_sdk)/Bin/Win64/x86/$(ARCH)
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   335
        _redist_sdk   :=$(_ms_sdk)/redist/win64/AMD64
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   336
      endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   337
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   338
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   339
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   340
90ce3da70b43 Initial load
duke
parents:
diff changeset
   341
# Location on system where jdk installs might be
90ce3da70b43 Initial load
duke
parents:
diff changeset
   342
ifneq ($(_program_files),)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   343
  USRJDKINSTANCES_PATH =$(_program_files)/Java
90ce3da70b43 Initial load
duke
parents:
diff changeset
   344
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   345
  USRJDKINSTANCES_PATH =$(_system_drive)/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   346
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   347
90ce3da70b43 Initial load
duke
parents:
diff changeset
   348
# SLASH_JAVA: location of all network accessable files
90ce3da70b43 Initial load
duke
parents:
diff changeset
   349
ifdef ALT_SLASH_JAVA
90ce3da70b43 Initial load
duke
parents:
diff changeset
   350
  xALT_SLASH_JAVA :="$(subst \,/,$(ALT_SLASH_JAVA))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   351
  SLASH_JAVA      :=$(call FullPath,$(xALT_SLASH_JAVA))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   352
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   353
  ifdef ALT_JDK_JAVA_DRIVE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   354
    SLASH_JAVA  =$(JDK_JAVA_DRIVE)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   355
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   356
    SLASH_JAVA  =J:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   357
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   358
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   359
SLASH_JAVA:=$(call AltCheckSpaces,SLASH_JAVA)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   360
SLASH_JAVA:=$(call AltCheckValue,SLASH_JAVA)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   361
90ce3da70b43 Initial load
duke
parents:
diff changeset
   362
# JDK_DEVTOOLS_DIR: common path for all the java devtools
90ce3da70b43 Initial load
duke
parents:
diff changeset
   363
ifdef ALT_JDK_DEVTOOLS_DIR
90ce3da70b43 Initial load
duke
parents:
diff changeset
   364
  xALT_JDK_DEVTOOLS_DIR :="$(subst \,/,$(ALT_JDK_DEVTOOLS_DIR))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   365
  JDK_DEVTOOLS_DIR      :=$(call FullPath,$(xALT_JDK_DEVTOOLS_DIR))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   366
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   367
  JDK_DEVTOOLS_DIR =$(SLASH_JAVA)/devtools
90ce3da70b43 Initial load
duke
parents:
diff changeset
   368
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   369
JDK_DEVTOOLS_DIR:=$(call AltCheckSpaces,JDK_DEVTOOLS_DIR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   370
JDK_DEVTOOLS_DIR:=$(call AltCheckValue,JDK_DEVTOOLS_DIR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   371
90ce3da70b43 Initial load
duke
parents:
diff changeset
   372
# COMPILER_PATH: path to where the compiler and tools are installed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   373
#  NOTE: Must end with / so that it could be empty, allowing PATH usage.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   374
ifdef ALT_COMPILER_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   375
  xALT_COMPILER_PATH  :="$(subst \,/,$(ALT_COMPILER_PATH))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   376
  fxALT_COMPILER_PATH :=$(call FullPath,$(xALT_COMPILER_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   377
  COMPILER_PATH       :=$(call PrefixPath,$(fxALT_COMPILER_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   378
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   379
  COMPILER_PATH :=$(call PrefixPath,$(_compiler_bin))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   380
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   381
COMPILER_PATH :=$(call AltCheckSpaces,COMPILER_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   382
90ce3da70b43 Initial load
duke
parents:
diff changeset
   383
# MSDEVTOOLS_PATH: path to where the additional MS Compiler tools are.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   384
#  NOTE: Must end with / so that it could be empty, allowing PATH usage.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   385
ifdef ALT_MSDEVTOOLS_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   386
  xALT_MSDEVTOOLS_PATH  :="$(subst \,/,$(ALT_MSDEVTOOLS_PATH))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   387
  fxALT_MSDEVTOOLS_PATH :=$(call FullPath,$(xALT_MSDEVTOOLS_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   388
  MSDEVTOOLS_PATH       :=$(call PrefixPath,$(fxALT_MSDEVTOOLS_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   389
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   390
  ifeq ($(ARCH_DATA_MODEL), 64)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   391
    ifdef MSTOOLS
90ce3da70b43 Initial load
duke
parents:
diff changeset
   392
      xMSTOOLS  :="$(subst \,/,$(MSTOOLS))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   393
      _ms_tools :=$(call FullPath,$(xMSTOOLS))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   394
    else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   395
      ifdef Mstools
90ce3da70b43 Initial load
duke
parents:
diff changeset
   396
        xMSTOOLS  :="$(subst \,/,$(Mstools))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   397
        _ms_tools :=$(call FullPath,$(xMSTOOLS))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   398
      else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   399
        _ms_tools :=
90ce3da70b43 Initial load
duke
parents:
diff changeset
   400
      endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   401
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   402
    ifneq ($(_ms_tools),)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   403
      _ms_tools_bin :=$(_ms_tools)/Bin
90ce3da70b43 Initial load
duke
parents:
diff changeset
   404
    else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   405
      # Assumes compiler bin is .../Bin/win64/x86/AMD64, rc.exe is 3 levels up
90ce3da70b43 Initial load
duke
parents:
diff changeset
   406
      _ms_tools_bin :=$(_compiler_bin)/../../..
90ce3da70b43 Initial load
duke
parents:
diff changeset
   407
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   408
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   409
    _ms_tools_bin :=$(_compiler_bin)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   410
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   411
  MSDEVTOOLS_PATH :=$(call PrefixPath,$(_ms_tools_bin))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   412
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   413
MSDEVTOOLS_PATH:=$(call AltCheckSpaces,MSDEVTOOLS_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   414
90ce3da70b43 Initial load
duke
parents:
diff changeset
   415
# DEVTOOLS_PATH: for other tools required for building (such as zip, etc.)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   416
#  NOTE: Must end with / so that it could be empty, allowing PATH usage.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   417
ifdef ALT_DEVTOOLS_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   418
  xALT_DEVTOOLS_PATH  :="$(subst \,/,$(ALT_DEVTOOLS_PATH))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   419
  fxALT_DEVTOOLS_PATH :=$(call FullPath,$(xALT_DEVTOOLS_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   420
  DEVTOOLS_PATH       :=$(call PrefixPath,$(fxALT_DEVTOOLS_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   421
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   422
  ifdef USING_CYGWIN
90ce3da70b43 Initial load
duke
parents:
diff changeset
   423
    DEVTOOLS_PATH :=$(UNIXCOMMAND_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   424
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   425
    xDEVTOOLS_PATH  :="$(_system_drive)/utils"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   426
    fxDEVTOOLS_PATH :=$(call FullPath,$(xDEVTOOLS_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   427
    DEVTOOLS_PATH  :=$(call PrefixPath,$(fxDEVTOOLS_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   428
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   429
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   430
DEVTOOLS_PATH:=$(call AltCheckSpaces,DEVTOOLS_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   431
90ce3da70b43 Initial load
duke
parents:
diff changeset
   432
# _BOOTDIR1: First choice for a Bootstrap JDK, previous released JDK.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   433
# _BOOTDIR2: Second choice
90ce3da70b43 Initial load
duke
parents:
diff changeset
   434
ifndef ALT_BOOTDIR
90ce3da70b43 Initial load
duke
parents:
diff changeset
   435
  _BOOTDIR1  =$(_system_drive)/jdk$(PREVIOUS_JDK_VERSION)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   436
  _BOOTDIR2  =$(USRJDKINSTANCES_PATH)/jdk$(PREVIOUS_JDK_VERSION)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   437
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   438
2186
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   439
# 32 bit always needs 2 runtimes, 64 bit usually does too
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   440
2186
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   441
# MSVCRT_DLL_PATH: location of msvcrt.dll that will be re-distributed
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   442
ifdef ALT_MSVCRT_DLL_PATH
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   443
  xALT_MSVCRT_DLL_PATH :="$(subst \,/,$(ALT_MSVCRT_DLL_PATH))"
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   444
  MSVCRT_DLL_PATH      :=$(call FullPath,$(xALT_MSVCRT_DLL_PATH))
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   445
else
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   446
  MSVCRT_DLL_PATH :=$(call FullPath,$(_system_root)/system32/)
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   447
endif
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   448
MSVCRT_DLL_PATH:=$(call AltCheckSpaces,MSVCRT_DLL_PATH)
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   449
MSVCRT_DLL_PATH:=$(call AltCheckValue,MSVCRT_DLL_PATH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   450
2186
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   451
# 32bit always needs the MSVCRNN runtime, 64bit does when using VS2008
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   452
ifeq ($(ARCH_DATA_MODEL), 32)
2186
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   453
  _NEEDS_MSVCRNN = true
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   454
else
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   455
  ifeq ($(VS2008),)
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   456
    _NEEDS_MSVCRNN = false
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   457
  else
2186
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   458
    _NEEDS_MSVCRNN = true
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   459
  endif
2186
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   460
endif
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   461
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   462
ifeq ($(_NEEDS_MSVCRNN), true)
1776
33e9405ab91b 6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents: 1247
diff changeset
   463
  # MSVCRNN_DLL_PATH: location of msvcrnn.dll that will be re-distributed
33e9405ab91b 6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents: 1247
diff changeset
   464
  ifdef ALT_MSVCRNN_DLL_PATH
33e9405ab91b 6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents: 1247
diff changeset
   465
    xALT_MSVCRNN_DLL_PATH :="$(subst \,/,$(ALT_MSVCRNN_DLL_PATH))"
33e9405ab91b 6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents: 1247
diff changeset
   466
    MSVCRNN_DLL_PATH      :=$(call FullPath,$(xALT_MSVCRNN_DLL_PATH))
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   467
  else
2186
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   468
    MSVCRNN_DLL_PATH :=$(_redist_sdk)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   469
  endif
1776
33e9405ab91b 6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents: 1247
diff changeset
   470
  MSVCRNN_DLL_PATH :=$(call AltCheckSpaces,MSVCRNN_DLL_PATH)
33e9405ab91b 6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents: 1247
diff changeset
   471
  MSVCRNN_DLL_PATH:=$(call AltCheckValue,MSVCRNN_DLL_PATH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   472
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   473
90ce3da70b43 Initial load
duke
parents:
diff changeset
   474
# DXSDK_PATH: path to Microsoft DirectX SDK Include and Lib
90ce3da70b43 Initial load
duke
parents:
diff changeset
   475
ifdef ALT_DXSDK_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   476
  xALT_DXSDK_PATH :="$(subst \,/,$(ALT_DXSDK_PATH))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   477
  DXSDK_PATH      :=$(call FullPath,$(xALT_DXSDK_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   478
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   479
  _DXSDK_PATH1 :=$(_dx_sdk_dir)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   480
  _DXSDK_PATH2 :=$(JDK_DEVTOOLS_DIR)/windows/dxsdk
90ce3da70b43 Initial load
duke
parents:
diff changeset
   481
  DXSDK_PATH  :=$(call DirExists,$(_DXSDK_PATH1),$(_DXSDK_PATH2),$(_dx_sdk_dir))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   482
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   483
DXSDK_PATH :=$(call AltCheckSpaces,DXSDK_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   484
DXSDK_PATH:=$(call AltCheckValue,DXSDK_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   485
90ce3da70b43 Initial load
duke
parents:
diff changeset
   486
# DXSDK_INCLUDE_PATH: path to Microsoft DirectX SDK Include
90ce3da70b43 Initial load
duke
parents:
diff changeset
   487
ifdef ALT_DXSDK_INCLUDE_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   488
  xALT_DXSDK_INCLUDE_PATH :="$(subst \,/,$(ALT_DXSDK_INCLUDE_PATH))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   489
  DXSDK_INCLUDE_PATH      :=$(call FullPath,$(xALT_DXSDK_INCLUDE_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   490
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   491
  DXSDK_INCLUDE_PATH =$(subst //,/,$(DXSDK_PATH)/Include)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   492
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   493
90ce3da70b43 Initial load
duke
parents:
diff changeset
   494
# DXSDK_LIB_PATH: path to Microsoft DirectX SDK Lib
90ce3da70b43 Initial load
duke
parents:
diff changeset
   495
ifdef ALT_DXSDK_LIB_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   496
  xALT_DXSDK_LIB_PATH :="$(subst \,/,$(ALT_DXSDK_LIB_PATH))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   497
  DXSDK_LIB_PATH      :=$(call FullPath,$(xALT_DXSDK_LIB_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   498
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   499
  ifeq ($(ARCH_DATA_MODEL), 64)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   500
    # 64bit libs are located in "Lib/x64" subdir
90ce3da70b43 Initial load
duke
parents:
diff changeset
   501
    DXSDK_LIB_PATH =$(subst //,/,$(DXSDK_PATH)/Lib/x64)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   502
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   503
    DXSDK_LIB_PATH =$(subst //,/,$(DXSDK_PATH)/Lib)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   504
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   505
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   506
90ce3da70b43 Initial load
duke
parents:
diff changeset
   507
# DEPLOY_MSSDK: Microsoft SDK for this platform (for deploy)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   508
ifdef ALT_DEPLOY_MSSDK
90ce3da70b43 Initial load
duke
parents:
diff changeset
   509
  xALT_DEPLOY_MSSDK :="$(subst \,/,$(ALT_DEPLOY_MSSDK))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   510
  DEPLOY_MSSDK      :=$(call FullPath,$(xALT_DEPLOY_MSSDK))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   511
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   512
  DEPLOY_MSSDK      :=$(_ms_sdk)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   513
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   514
DEPLOY_MSSDK:=$(call AltCheckSpaces,DEPLOY_MSSDK)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   515
90ce3da70b43 Initial load
duke
parents:
diff changeset
   516
# INSTALL_MSSDK: Microsoft Installer SDK for this platform (for install)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   517
ifdef ALT_INSTALL_MSSDK
90ce3da70b43 Initial load
duke
parents:
diff changeset
   518
  xALT_INSTALL_MSSDK :="$(subst \,/,$(ALT_INSTALL_MSSDK))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   519
  INSTALL_MSSDK      :=$(call FullPath,$(xALT_INSTALL_MSSDK))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   520
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   521
  INSTALL_MSSDK      :=$(_psdk)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   522
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   523
INSTALL_MSSDK:=$(call AltCheckSpaces,INSTALL_MSSDK)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   524
90ce3da70b43 Initial load
duke
parents:
diff changeset
   525
# INSTALL_MSIVAL2: Installation of MsiVal2 for this platform (for install)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   526
ifdef ALT_INSTALL_MSIVAL2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   527
  xALT_INSTALL_MSIVAL2 :="$(subst \,/,$(ALT_INSTALL_MSIVAL2))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   528
  INSTALL_MSIVAL2      :=$(call FullPath,$(xALT_INSTALL_MSIVAL2))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   529
else
2186
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   530
  INSTALL_MSIVAL2      :=$(_program_files32)/MsiVal2
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   531
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   532
INSTALL_MSIVAL2:=$(call AltCheckSpaces,INSTALL_MSIVAL2)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   533
90ce3da70b43 Initial load
duke
parents:
diff changeset
   534
# WSCRIPT: path to wscript.exe (used in creating install bundles)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   535
ifdef ALT_WSCRIPT
90ce3da70b43 Initial load
duke
parents:
diff changeset
   536
  xALT_WSCRIPT :="$(subst \,/,$(ALT_WSCRIPT))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   537
  WSCRIPT  =$(xALT_WSCRIPT)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   538
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   539
  _WSCRIPT1 :=$(_system_root)/system32/wscript.exe
90ce3da70b43 Initial load
duke
parents:
diff changeset
   540
  _WSCRIPT2 :=$(DEVTOOLS_PATH)wscript.exe
90ce3da70b43 Initial load
duke
parents:
diff changeset
   541
  WSCRIPT  :=$(call FileExists,$(_WSCRIPT1),$(_WSCRIPT2))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   542
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   543
WSCRIPT:=$(call AltCheckSpaces,WSCRIPT)
1025
a9ba5ea0f1f7 6614210: JPRT Windows 32bit msival2 build failure when building 'install' workspace
ksrini
parents: 2
diff changeset
   544
# batch mode no modal dialogs on errors, please.
2602
5b394a4b6ce1 6755943: Java JAR Pack200 Decompression should enforce stricter header checks
ksrini
parents: 2
diff changeset
   545
WSCRIPT += -B
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   546
90ce3da70b43 Initial load
duke
parents:
diff changeset
   547
# CSCRIPT: path to cscript.exe (used in creating install bundles)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   548
ifdef ALT_CSCRIPT
90ce3da70b43 Initial load
duke
parents:
diff changeset
   549
  xALT_CSCRIPT :="$(subst \,/,$(ALT_CSCRIPT))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   550
  CSCRIPT  =$(xALT_CSCRIPT)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   551
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   552
  _CSCRIPT1 :=$(_system_root)/system32/cscript.exe
90ce3da70b43 Initial load
duke
parents:
diff changeset
   553
  _CSCRIPT2 :=$(DEVTOOLS_PATH)cscript.exe
90ce3da70b43 Initial load
duke
parents:
diff changeset
   554
  CSCRIPT  :=$(call FileExists,$(_CSCRIPT1),$(_CSCRIPT2))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   555
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   556
CSCRIPT:=$(call AltCheckSpaces,CSCRIPT)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   557
90ce3da70b43 Initial load
duke
parents:
diff changeset
   558
# MSIVAL2: path to msival2.exe (used in validating install msi files)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   559
ifdef ALT_MSIVAL2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   560
  xALT_MSIVAL2 :="$(subst \,/,$(ALT_MSIVAL2))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   561
  MSIVAL2  =$(xALT_MSIVAL2)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   562
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   563
  _MSIVAL2_1 :=$(INSTALL_MSIVAL2)/msival2.exe
90ce3da70b43 Initial load
duke
parents:
diff changeset
   564
  _MSIVAL2_2 :=$(DEVTOOLS_PATH)msival2.exe
90ce3da70b43 Initial load
duke
parents:
diff changeset
   565
  MSIVAL2    :=$(call FileExists,$(_MSIVAL2_1),$(_MSIVAL2_2))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   566
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   567
MSIVAL2:=$(call AltCheckSpaces,MSIVAL2)
1025
a9ba5ea0f1f7 6614210: JPRT Windows 32bit msival2 build failure when building 'install' workspace
ksrini
parents: 2
diff changeset
   568
# suppress msival2 checks, as it hangs jprt builds
2602
5b394a4b6ce1 6755943: Java JAR Pack200 Decompression should enforce stricter header checks
ksrini
parents: 2
diff changeset
   569
ifdef SKIP_MSIVAL2
5b394a4b6ce1 6755943: Java JAR Pack200 Decompression should enforce stricter header checks
ksrini
parents: 2
diff changeset
   570
  MSIVAL2    := $(ECHO)
5b394a4b6ce1 6755943: Java JAR Pack200 Decompression should enforce stricter header checks
ksrini
parents: 2
diff changeset
   571
endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   572
90ce3da70b43 Initial load
duke
parents:
diff changeset
   573
# LOGOCUB: path to cub file for (used in validating install msi files)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   574
ifdef ALT_LOGOCUB
90ce3da70b43 Initial load
duke
parents:
diff changeset
   575
  xALT_LOGOCUB :="$(subst \,/,$(ALT_LOGOCUB))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   576
  LOGOCUB  =$(xALT_LOGOCUB)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   577
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   578
  _LOGOCUB1 :=$(INSTALL_MSIVAL2)/logo.cub
90ce3da70b43 Initial load
duke
parents:
diff changeset
   579
  _LOGOCUB2 :=$(DEVTOOLS_PATH)logo.cub
90ce3da70b43 Initial load
duke
parents:
diff changeset
   580
  LOGOCUB   :=$(call FileExists,$(_LOGOCUB1),$(_LOGOCUB2))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   581
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   582
LOGOCUB:=$(call AltCheckSpaces,LOGOCUB)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   583
90ce3da70b43 Initial load
duke
parents:
diff changeset
   584
# MSITRAN: path to msitran.exe (used in creating install bundles and sponsors)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   585
ifdef ALT_MSITRAN
90ce3da70b43 Initial load
duke
parents:
diff changeset
   586
  xALT_MSITRAN :="$(subst \,/,$(ALT_MSITRAN))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   587
  MSITRAN  =$(xALT_MSITRAN)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   588
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   589
  _MSITRAN1 :=$(INSTALL_MSSDK)/Bin/msitran.exe
90ce3da70b43 Initial load
duke
parents:
diff changeset
   590
  _MSITRAN2 :=$(DEVTOOLS_PATH)msitran.exe
90ce3da70b43 Initial load
duke
parents:
diff changeset
   591
  MSITRAN   :=$(call FileExists,$(_MSITRAN1),$(_MSITRAN2))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   592
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   593
MSITRAN:=$(call AltCheckSpaces,MSITRAN)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   594
90ce3da70b43 Initial load
duke
parents:
diff changeset
   595
# MSICERT: path to msicert.exe (used in creating install bundles)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   596
ifdef ALT_MSICERT
90ce3da70b43 Initial load
duke
parents:
diff changeset
   597
  xALT_MSICERT :="$(subst \,/,$(ALT_MSICERT))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   598
  MSICERT  =$(xALT_MSICERT)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   599
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   600
  _MSICERT1 :=$(INSTALL_MSSDK)/Bin/msicert.exe
90ce3da70b43 Initial load
duke
parents:
diff changeset
   601
  _MSICERT2 :=$(DEVTOOLS_PATH)msicert.exe
90ce3da70b43 Initial load
duke
parents:
diff changeset
   602
  MSICERT   :=$(call FileExists,$(_MSICERT1),$(_MSICERT2))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   603
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   604
MSICERT:=$(call AltCheckSpaces,MSICERT)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   605
90ce3da70b43 Initial load
duke
parents:
diff changeset
   606
# Import JDK images allow for partial builds, components not built are
90ce3da70b43 Initial load
duke
parents:
diff changeset
   607
#    imported (or copied from) these import areas when needed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   608
90ce3da70b43 Initial load
duke
parents:
diff changeset
   609
# BUILD_JDK_IMPORT_PATH: location of JDK install trees to import for
90ce3da70b43 Initial load
duke
parents:
diff changeset
   610
#   multiple platforms, e.g. windows-i586, solaris-sparc, linux-586, etc.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   611
ifdef ALT_BUILD_JDK_IMPORT_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   612
  BUILD_JDK_IMPORT_PATH  :=$(call FullPath,$(ALT_BUILD_JDK_IMPORT_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   613
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   614
  BUILD_JDK_IMPORT_PATH   = $(PROMOTED_BUILD_BINARIES)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   615
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   616
BUILD_JDK_IMPORT_PATH:=$(call AltCheckSpaces,BUILD_JDK_IMPORT_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   617
BUILD_JDK_IMPORT_PATH:=$(call AltCheckValue,BUILD_JDK_IMPORT_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   618
90ce3da70b43 Initial load
duke
parents:
diff changeset
   619
# JDK_IMPORT_PATH: location of previously built JDK (this version) to import
90ce3da70b43 Initial load
duke
parents:
diff changeset
   620
ifdef ALT_JDK_IMPORT_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   621
  JDK_IMPORT_PATH  :=$(call FullPath,$(ALT_JDK_IMPORT_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   622
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   623
  JDK_IMPORT_PATH   = $(BUILD_JDK_IMPORT_PATH)/$(PLATFORM)-$(ARCH)$(_JDK_IMPORT_VARIANT)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   624
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   625
JDK_IMPORT_PATH:=$(call AltCheckSpaces,JDK_IMPORT_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   626
JDK_IMPORT_PATH:=$(call AltCheckValue,JDK_IMPORT_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   627
90ce3da70b43 Initial load
duke
parents:
diff changeset
   628
# HOTSPOT_IMPORT_PATH: location of hotspot pre-built files
90ce3da70b43 Initial load
duke
parents:
diff changeset
   629
ifdef ALT_HOTSPOT_IMPORT_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   630
  HOTSPOT_IMPORT_PATH :=$(call FullPath,$(ALT_HOTSPOT_IMPORT_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   631
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   632
  HOTSPOT_IMPORT_PATH =$(JDK_IMPORT_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   633
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   634
HOTSPOT_IMPORT_PATH:=$(call AltCheckSpaces,HOTSPOT_IMPORT_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   635
HOTSPOT_IMPORT_PATH:=$(call AltCheckValue,HOTSPOT_IMPORT_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   636
90ce3da70b43 Initial load
duke
parents:
diff changeset
   637
# HOTSPOT_CLIENT_PATH: location of client jvm library file.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   638
ifeq ($(ARCH_DATA_MODEL), 32)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   639
  ifdef ALT_HOTSPOT_CLIENT_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   640
    HOTSPOT_CLIENT_PATH :=$(call FullPath,$(ALT_HOTSPOT_CLIENT_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   641
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   642
    HOTSPOT_CLIENT_PATH   =$(HOTSPOT_IMPORT_PATH)/$(ARCH_VM_SUBDIR)/client
90ce3da70b43 Initial load
duke
parents:
diff changeset
   643
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   644
  HOTSPOT_CLIENT_PATH:=$(call AltCheckSpaces,HOTSPOT_CLIENT_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   645
  HOTSPOT_CLIENT_PATH:=$(call AltCheckValue,HOTSPOT_CLIENT_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   646
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   647
90ce3da70b43 Initial load
duke
parents:
diff changeset
   648
# HOTSPOT_SERVER_PATH: location of server jvm library file.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   649
ifdef ALT_HOTSPOT_SERVER_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   650
  HOTSPOT_SERVER_PATH :=$(call FullPath,$(ALT_HOTSPOT_SERVER_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   651
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   652
  HOTSPOT_SERVER_PATH   =$(HOTSPOT_IMPORT_PATH)/$(ARCH_VM_SUBDIR)/server
90ce3da70b43 Initial load
duke
parents:
diff changeset
   653
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   654
HOTSPOT_SERVER_PATH:=$(call AltCheckSpaces,HOTSPOT_SERVER_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   655
HOTSPOT_SERVER_PATH:=$(call AltCheckValue,HOTSPOT_SERVER_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   656
90ce3da70b43 Initial load
duke
parents:
diff changeset
   657
# HOTSPOT_LIB_PATH: location of jvm.lib file.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   658
ifdef ALT_HOTSPOT_LIB_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   659
  xALT_HOTSPOT_LIB_PATH :="$(subst \,/,$(ALT_HOTSPOT_LIB_PATH))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   660
  HOTSPOT_LIB_PATH      :=$(call FullPath,$(xALT_HOTSPOT_LIB_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   661
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   662
  HOTSPOT_LIB_PATH  =$(HOTSPOT_IMPORT_PATH)/lib
90ce3da70b43 Initial load
duke
parents:
diff changeset
   663
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   664
HOTSPOT_LIB_PATH:=$(call AltCheckSpaces,HOTSPOT_LIB_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   665
HOTSPOT_LIB_PATH:=$(call AltCheckValue,HOTSPOT_LIB_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   666