jdk/make/common/shared/Defs-windows.gmk
author prr
Wed, 16 Jun 2010 09:42:39 -0700
changeset 5668 15ee66161ec7
parent 5506 202f599c92aa
child 5937 6562557739c0
permissions -rw-r--r--
6961079: Build JDK7 for 64 bit Windows using free Windows 7.1 SDK 64 bit compilers Reviewed-by: ohair, jcoomes
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
#
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 5474
diff changeset
     2
# Copyright (c) 2005, 2009, Oracle and/or its affiliates. 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
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 5474
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 5474
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
2
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
#
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 5474
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 5474
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 5474
diff changeset
    23
# questions.
2
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),)
5381
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   251
    ifdef VS100COMNTOOLS  # /Common/Tools directory, use ../../Vc
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   252
      xVS100COMNTOOLS :="$(subst \,/,$(VS100COMNTOOLS))"
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   253
      _vs100tools     :=$(call FullPath,$(xVS100COMNTOOLS))
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
    endif
5381
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   255
    ifneq ($(_vs100tools),)
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   256
      _msvc_dir   :=$(_vs100tools)/../../Vc
2186
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   257
    else
5381
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   258
      ifdef VS90COMNTOOLS  # /Common/Tools directory, use ../../Vc
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   259
        xVS90COMNTOOLS :="$(subst \,/,$(VS90COMNTOOLS))"
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   260
        _vs90tools     :=$(call FullPath,$(xVS90COMNTOOLS))
2186
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   261
      endif
5381
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   262
      ifneq ($(_vs90tools),)
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   263
        _msvc_dir   :=$(_vs90tools)/../../Vc
2186
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   264
      else
5381
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   265
        ifdef VS80COMNTOOLS  # /Common/Tools directory, use ../../Vc
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   266
          xVS80COMNTOOLS :="$(subst \,/,$(VS80COMNTOOLS))"
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   267
          _vs80tools     :=$(call FullPath,$(xVS80COMNTOOLS))
2186
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   268
        endif
5381
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   269
        ifneq ($(_vs80tools),)
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   270
          _msvc_dir   :=$(_vs80tools)/../../Vc
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   271
        else
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   272
          ifdef VS71COMNTOOLS  # /Common/Tools directory, use ../../Vc7
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   273
            xVS71COMNTOOLS :="$(subst \,/,$(VS71COMNTOOLS))"
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   274
            _vs71tools     :=$(call FullPath,$(xVS71COMNTOOLS))
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   275
          endif
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   276
          ifneq ($(_vs71tools),)
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   277
            _msvc_dir   :=$(_vs71tools)/../../Vc7
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   278
          endif
2186
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   279
        endif
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   280
      endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   281
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   282
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   283
  ifneq ($(_msvc_dir),)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   284
    _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
   285
    # 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
   286
    _ms_sdk       :=$(call FullPath,$(_msvc_dir)/PlatformSDK)
5381
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   287
    # Assume VS100, then VS90, then VS80, then VS71
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   288
    _redist_sdk   :=$(call FullPath,$(_msvc_dir)/redist/x86/Microsoft.VC100.CRT)
2186
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   289
    ifeq ($(_redist_sdk),)
5474
04f6601f2474 6903970: VS2008/VS2010 build fails in make/sun/jkernel because of "afxres.h" missing
prr
parents: 5381
diff changeset
   290
      ifneq ($(VS100COMNTOOLS),)
04f6601f2474 6903970: VS2008/VS2010 build fails in make/sun/jkernel because of "afxres.h" missing
prr
parents: 5381
diff changeset
   291
        _redist_sdk  :=c:/windows/system32
04f6601f2474 6903970: VS2008/VS2010 build fails in make/sun/jkernel because of "afxres.h" missing
prr
parents: 5381
diff changeset
   292
      else
04f6601f2474 6903970: VS2008/VS2010 build fails in make/sun/jkernel because of "afxres.h" missing
prr
parents: 5381
diff changeset
   293
        _redist_sdk   :=$(call FullPath,$(_msvc_dir)/redist/x86/Microsoft.VC90.CRT)
5381
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   294
        ifeq ($(_redist_sdk),)
5474
04f6601f2474 6903970: VS2008/VS2010 build fails in make/sun/jkernel because of "afxres.h" missing
prr
parents: 5381
diff changeset
   295
          _redist_sdk   :=$(call FullPath,$(_msvc_dir)/redist/x86/Microsoft.VC80.CRT)
04f6601f2474 6903970: VS2008/VS2010 build fails in make/sun/jkernel because of "afxres.h" missing
prr
parents: 5381
diff changeset
   296
          ifeq ($(_redist_sdk),)
04f6601f2474 6903970: VS2008/VS2010 build fails in make/sun/jkernel because of "afxres.h" missing
prr
parents: 5381
diff changeset
   297
            _redist_sdk   :=$(call FullPath,$(_msvc_dir)/../SDK/v1.1/Bin)
04f6601f2474 6903970: VS2008/VS2010 build fails in make/sun/jkernel because of "afxres.h" missing
prr
parents: 5381
diff changeset
   298
          endif
5381
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   299
        endif
2186
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   300
      endif
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   301
    endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   302
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   303
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   304
90ce3da70b43 Initial load
duke
parents:
diff changeset
   305
# The Microsoft Platform SDK installed by itself
90ce3da70b43 Initial load
duke
parents:
diff changeset
   306
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
   307
  _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
   308
  _psdk :=$(call FullPath,$(xMSSDK61))
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   309
  ifeq ($(_psdk),)
2186
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   310
    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
   311
    _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
   312
    ifeq ($(_psdk),)
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   313
      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
   314
      _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
   315
    endif
2
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
# If no SDK found yet, look in other places
90ce3da70b43 Initial load
duke
parents:
diff changeset
   320
ifeq ($(_ms_sdk),)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   321
  ifdef MSSDK
90ce3da70b43 Initial load
duke
parents:
diff changeset
   322
    xMSSDK  :="$(subst \,/,$(MSSDK))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   323
    _ms_sdk :=$(call FullPath,$(xMSSDK))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   324
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   325
    ifdef MSSdk
90ce3da70b43 Initial load
duke
parents:
diff changeset
   326
      xMSSDK  :="$(subst \,/,$(MSSdk))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   327
      _ms_sdk :=$(call FullPath,$(xMSSDK))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   328
    else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   329
      _ms_sdk :=$(_psdk)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   330
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   331
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   332
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   333
5668
15ee66161ec7 6961079: Build JDK7 for 64 bit Windows using free Windows 7.1 SDK 64 bit compilers
prr
parents: 5506
diff changeset
   334
# Compilers for 64bit may be from the free SDK, or Visual Studio Professional
15ee66161ec7 6961079: Build JDK7 for 64 bit Windows using free Windows 7.1 SDK 64 bit compilers
prr
parents: 5506
diff changeset
   335
# The free Express compilers don't contain 64 bit compilers, which is why
15ee66161ec7 6961079: Build JDK7 for 64 bit Windows using free Windows 7.1 SDK 64 bit compilers
prr
parents: 5506
diff changeset
   336
# you instead need the SDK.
15ee66161ec7 6961079: Build JDK7 for 64 bit Windows using free Windows 7.1 SDK 64 bit compilers
prr
parents: 5506
diff changeset
   337
# So for VS2010 based builds, either VS2010 Pro with the 7.0a SDK, or
15ee66161ec7 6961079: Build JDK7 for 64 bit Windows using free Windows 7.1 SDK 64 bit compilers
prr
parents: 5506
diff changeset
   338
# the Windows 7.1 standalone SDK with compilers may be used.
15ee66161ec7 6961079: Build JDK7 for 64 bit Windows using free Windows 7.1 SDK 64 bit compilers
prr
parents: 5506
diff changeset
   339
# Release enginering will use VS2010 Pro, so the frequency of testing of
15ee66161ec7 6961079: Build JDK7 for 64 bit Windows using free Windows 7.1 SDK 64 bit compilers
prr
parents: 5506
diff changeset
   340
# SDK based builds will depend entirely on individual usage.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   341
ifeq ($(ARCH_DATA_MODEL), 64)
5381
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   342
  ifdef VS100COMNTOOLS  # /Common7/Tools directory, use ../../Vc
5668
15ee66161ec7 6961079: Build JDK7 for 64 bit Windows using free Windows 7.1 SDK 64 bit compilers
prr
parents: 5506
diff changeset
   343
    # VS2010 default location is used when building 64 bit using the 7.1 SDK
15ee66161ec7 6961079: Build JDK7 for 64 bit Windows using free Windows 7.1 SDK 64 bit compilers
prr
parents: 5506
diff changeset
   344
    # This is safe to hardwire as the SDK installer won't let you change it
15ee66161ec7 6961079: Build JDK7 for 64 bit Windows using free Windows 7.1 SDK 64 bit compilers
prr
parents: 5506
diff changeset
   345
    # and the VS2010 variable is only used if the compilers are from the SDK
15ee66161ec7 6961079: Build JDK7 for 64 bit Windows using free Windows 7.1 SDK 64 bit compilers
prr
parents: 5506
diff changeset
   346
    xVS2010 :="$(_program_files32)/Microsoft Visual Studio 10.0/"
15ee66161ec7 6961079: Build JDK7 for 64 bit Windows using free Windows 7.1 SDK 64 bit compilers
prr
parents: 5506
diff changeset
   347
    VS2010 :=$(call FullPath,$(xVS2010))
5381
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   348
    xVS100COMNTOOLS :="$(subst \,/,$(VS100COMNTOOLS))"
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   349
    _vs100tools     :=$(call FullPath,$(xVS100COMNTOOLS))
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   350
  endif
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   351
  ifneq ($(_vs100tools),)
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   352
    _compiler_bin :=$(_vs100tools)/../../Vc/bin/amd64
5668
15ee66161ec7 6961079: Build JDK7 for 64 bit Windows using free Windows 7.1 SDK 64 bit compilers
prr
parents: 5506
diff changeset
   353
    x_redist_sdk   :=$(_vs100tools)/../../Vc/redist/x64/Microsoft.VC100.CRT
15ee66161ec7 6961079: Build JDK7 for 64 bit Windows using free Windows 7.1 SDK 64 bit compilers
prr
parents: 5506
diff changeset
   354
    _redist_sdk    :=$(call FullPath,$(x_redist_sdk))
15ee66161ec7 6961079: Build JDK7 for 64 bit Windows using free Windows 7.1 SDK 64 bit compilers
prr
parents: 5506
diff changeset
   355
    # The SDK doesn't have the redist directory, but the DLL is installed
15ee66161ec7 6961079: Build JDK7 for 64 bit Windows using free Windows 7.1 SDK 64 bit compilers
prr
parents: 5506
diff changeset
   356
    # into the windows directory.
15ee66161ec7 6961079: Build JDK7 for 64 bit Windows using free Windows 7.1 SDK 64 bit compilers
prr
parents: 5506
diff changeset
   357
    ifeq ($(_redist_sdk),)
15ee66161ec7 6961079: Build JDK7 for 64 bit Windows using free Windows 7.1 SDK 64 bit compilers
prr
parents: 5506
diff changeset
   358
      _redist_sdk   :=c:/windows/system32
15ee66161ec7 6961079: Build JDK7 for 64 bit Windows using free Windows 7.1 SDK 64 bit compilers
prr
parents: 5506
diff changeset
   359
    endif
15ee66161ec7 6961079: Build JDK7 for 64 bit Windows using free Windows 7.1 SDK 64 bit compilers
prr
parents: 5506
diff changeset
   360
    # Not currently using MSSDK7n, but maybe we can make use of it for
15ee66161ec7 6961079: Build JDK7 for 64 bit Windows using free Windows 7.1 SDK 64 bit compilers
prr
parents: 5506
diff changeset
   361
    # doing default location lookup to find some SDK tools that presently
15ee66161ec7 6961079: Build JDK7 for 64 bit Windows using free Windows 7.1 SDK 64 bit compilers
prr
parents: 5506
diff changeset
   362
    # require the developer to explicitly set the path.
15ee66161ec7 6961079: Build JDK7 for 64 bit Windows using free Windows 7.1 SDK 64 bit compilers
prr
parents: 5506
diff changeset
   363
    # The 7.0a path is from VS2010 Pro, the 7.1 path is the standalone SDK.
15ee66161ec7 6961079: Build JDK7 for 64 bit Windows using free Windows 7.1 SDK 64 bit compilers
prr
parents: 5506
diff changeset
   364
    # Either will work for us.
15ee66161ec7 6961079: Build JDK7 for 64 bit Windows using free Windows 7.1 SDK 64 bit compilers
prr
parents: 5506
diff changeset
   365
    # If a developer chooses to install the standalone SDK in some other
15ee66161ec7 6961079: Build JDK7 for 64 bit Windows using free Windows 7.1 SDK 64 bit compilers
prr
parents: 5506
diff changeset
   366
    # location, then this will fail to find it, which won't matter so long as
15ee66161ec7 6961079: Build JDK7 for 64 bit Windows using free Windows 7.1 SDK 64 bit compilers
prr
parents: 5506
diff changeset
   367
    # we aren't using this variable. If we do they'd still need to set the
15ee66161ec7 6961079: Build JDK7 for 64 bit Windows using free Windows 7.1 SDK 64 bit compilers
prr
parents: 5506
diff changeset
   368
    # ALT_MSDEVTOOLS_PATH as now.
15ee66161ec7 6961079: Build JDK7 for 64 bit Windows using free Windows 7.1 SDK 64 bit compilers
prr
parents: 5506
diff changeset
   369
    # %WindowsSdkDir% could be referenced instead but the SDK installer
15ee66161ec7 6961079: Build JDK7 for 64 bit Windows using free Windows 7.1 SDK 64 bit compilers
prr
parents: 5506
diff changeset
   370
    # doesn't set it and in the case of the VS2010 compilers,
15ee66161ec7 6961079: Build JDK7 for 64 bit Windows using free Windows 7.1 SDK 64 bit compilers
prr
parents: 5506
diff changeset
   371
    # you can't change this location in the installer anyway.
15ee66161ec7 6961079: Build JDK7 for 64 bit Windows using free Windows 7.1 SDK 64 bit compilers
prr
parents: 5506
diff changeset
   372
    xMSSDK7n      :="$(_program_files32)/Microsoft SDKs/Windows/v7.0a/"
15ee66161ec7 6961079: Build JDK7 for 64 bit Windows using free Windows 7.1 SDK 64 bit compilers
prr
parents: 5506
diff changeset
   373
    MSSDK7n       :=$(call FullPath,$(xMSSDK7n))
15ee66161ec7 6961079: Build JDK7 for 64 bit Windows using free Windows 7.1 SDK 64 bit compilers
prr
parents: 5506
diff changeset
   374
    ifeq ($(MSSDK7n),)
15ee66161ec7 6961079: Build JDK7 for 64 bit Windows using free Windows 7.1 SDK 64 bit compilers
prr
parents: 5506
diff changeset
   375
      xMSSDK7n      :="$(_program_files32)/Microsoft SDKs/Windows/v7.1/"
15ee66161ec7 6961079: Build JDK7 for 64 bit Windows using free Windows 7.1 SDK 64 bit compilers
prr
parents: 5506
diff changeset
   376
      MSSDK7n       :=$(call FullPath,$(xMSSDK7n))
15ee66161ec7 6961079: Build JDK7 for 64 bit Windows using free Windows 7.1 SDK 64 bit compilers
prr
parents: 5506
diff changeset
   377
    endif
2186
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   378
  else
5381
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   379
    xVS2008 :="$(_program_files32)/Microsoft Visual Studio 9.0/"
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   380
    VS2008 :=$(call FullPath,$(xVS2008))
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   381
    ifneq ($(VS2008),)
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   382
      _compiler_bin :=$(VS2008)/VC/Bin/$(ARCH)
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   383
      xMSSDK61      :="$(_program_files)/Microsoft SDKs/Windows/v6.1/"
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   384
      MSSDK61       :=$(call FullPath,$(xMSSDK61))
5668
15ee66161ec7 6961079: Build JDK7 for 64 bit Windows using free Windows 7.1 SDK 64 bit compilers
prr
parents: 5506
diff changeset
   385
      _redist_sdk   :=$(VS2008)/VC/redist/x64/Microsoft.VC90.CRT
5381
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   386
    else
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   387
      ifneq ($(_ms_sdk),)
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   388
        ifeq ($(ARCH), ia64)
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   389
          _compiler_bin :=$(_ms_sdk)/Bin/Win64
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   390
        endif
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   391
        ifeq ($(ARCH), amd64)
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   392
          _compiler_bin :=$(_ms_sdk)/Bin/Win64/x86/$(ARCH)
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   393
          _redist_sdk   :=$(_ms_sdk)/redist/win64/AMD64
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   394
        endif
2186
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   395
      endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   396
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   397
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   398
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   399
90ce3da70b43 Initial load
duke
parents:
diff changeset
   400
# Location on system where jdk installs might be
90ce3da70b43 Initial load
duke
parents:
diff changeset
   401
ifneq ($(_program_files),)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   402
  USRJDKINSTANCES_PATH =$(_program_files)/Java
90ce3da70b43 Initial load
duke
parents:
diff changeset
   403
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   404
  USRJDKINSTANCES_PATH =$(_system_drive)/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   405
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   406
90ce3da70b43 Initial load
duke
parents:
diff changeset
   407
# SLASH_JAVA: location of all network accessable files
90ce3da70b43 Initial load
duke
parents:
diff changeset
   408
ifdef ALT_SLASH_JAVA
90ce3da70b43 Initial load
duke
parents:
diff changeset
   409
  xALT_SLASH_JAVA :="$(subst \,/,$(ALT_SLASH_JAVA))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   410
  SLASH_JAVA      :=$(call FullPath,$(xALT_SLASH_JAVA))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   411
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   412
  ifdef ALT_JDK_JAVA_DRIVE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   413
    SLASH_JAVA  =$(JDK_JAVA_DRIVE)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   414
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   415
    SLASH_JAVA  =J:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   416
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   417
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   418
SLASH_JAVA:=$(call AltCheckSpaces,SLASH_JAVA)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   419
SLASH_JAVA:=$(call AltCheckValue,SLASH_JAVA)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   420
90ce3da70b43 Initial load
duke
parents:
diff changeset
   421
# JDK_DEVTOOLS_DIR: common path for all the java devtools
90ce3da70b43 Initial load
duke
parents:
diff changeset
   422
ifdef ALT_JDK_DEVTOOLS_DIR
90ce3da70b43 Initial load
duke
parents:
diff changeset
   423
  xALT_JDK_DEVTOOLS_DIR :="$(subst \,/,$(ALT_JDK_DEVTOOLS_DIR))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   424
  JDK_DEVTOOLS_DIR      :=$(call FullPath,$(xALT_JDK_DEVTOOLS_DIR))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   425
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   426
  JDK_DEVTOOLS_DIR =$(SLASH_JAVA)/devtools
90ce3da70b43 Initial load
duke
parents:
diff changeset
   427
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   428
JDK_DEVTOOLS_DIR:=$(call AltCheckSpaces,JDK_DEVTOOLS_DIR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   429
JDK_DEVTOOLS_DIR:=$(call AltCheckValue,JDK_DEVTOOLS_DIR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   430
90ce3da70b43 Initial load
duke
parents:
diff changeset
   431
# COMPILER_PATH: path to where the compiler and tools are installed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   432
#  NOTE: Must end with / so that it could be empty, allowing PATH usage.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   433
ifdef ALT_COMPILER_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   434
  xALT_COMPILER_PATH  :="$(subst \,/,$(ALT_COMPILER_PATH))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   435
  fxALT_COMPILER_PATH :=$(call FullPath,$(xALT_COMPILER_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   436
  COMPILER_PATH       :=$(call PrefixPath,$(fxALT_COMPILER_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   437
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   438
  COMPILER_PATH :=$(call PrefixPath,$(_compiler_bin))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   439
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   440
COMPILER_PATH :=$(call AltCheckSpaces,COMPILER_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   441
90ce3da70b43 Initial load
duke
parents:
diff changeset
   442
# MSDEVTOOLS_PATH: path to where the additional MS Compiler tools are.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   443
#  NOTE: Must end with / so that it could be empty, allowing PATH usage.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   444
ifdef ALT_MSDEVTOOLS_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   445
  xALT_MSDEVTOOLS_PATH  :="$(subst \,/,$(ALT_MSDEVTOOLS_PATH))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   446
  fxALT_MSDEVTOOLS_PATH :=$(call FullPath,$(xALT_MSDEVTOOLS_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   447
  MSDEVTOOLS_PATH       :=$(call PrefixPath,$(fxALT_MSDEVTOOLS_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   448
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   449
  ifeq ($(ARCH_DATA_MODEL), 64)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   450
    ifdef MSTOOLS
90ce3da70b43 Initial load
duke
parents:
diff changeset
   451
      xMSTOOLS  :="$(subst \,/,$(MSTOOLS))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   452
      _ms_tools :=$(call FullPath,$(xMSTOOLS))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   453
    else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   454
      ifdef Mstools
90ce3da70b43 Initial load
duke
parents:
diff changeset
   455
        xMSTOOLS  :="$(subst \,/,$(Mstools))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   456
        _ms_tools :=$(call FullPath,$(xMSTOOLS))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   457
      else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   458
        _ms_tools :=
90ce3da70b43 Initial load
duke
parents:
diff changeset
   459
      endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   460
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   461
    ifneq ($(_ms_tools),)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   462
      _ms_tools_bin :=$(_ms_tools)/Bin
90ce3da70b43 Initial load
duke
parents:
diff changeset
   463
    else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   464
      # Assumes compiler bin is .../Bin/win64/x86/AMD64, rc.exe is 3 levels up
90ce3da70b43 Initial load
duke
parents:
diff changeset
   465
      _ms_tools_bin :=$(_compiler_bin)/../../..
90ce3da70b43 Initial load
duke
parents:
diff changeset
   466
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   467
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   468
    _ms_tools_bin :=$(_compiler_bin)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   469
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   470
  MSDEVTOOLS_PATH :=$(call PrefixPath,$(_ms_tools_bin))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   471
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   472
MSDEVTOOLS_PATH:=$(call AltCheckSpaces,MSDEVTOOLS_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   473
90ce3da70b43 Initial load
duke
parents:
diff changeset
   474
# DEVTOOLS_PATH: for other tools required for building (such as zip, etc.)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   475
#  NOTE: Must end with / so that it could be empty, allowing PATH usage.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   476
ifdef ALT_DEVTOOLS_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   477
  xALT_DEVTOOLS_PATH  :="$(subst \,/,$(ALT_DEVTOOLS_PATH))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   478
  fxALT_DEVTOOLS_PATH :=$(call FullPath,$(xALT_DEVTOOLS_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   479
  DEVTOOLS_PATH       :=$(call PrefixPath,$(fxALT_DEVTOOLS_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   480
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   481
  ifdef USING_CYGWIN
90ce3da70b43 Initial load
duke
parents:
diff changeset
   482
    DEVTOOLS_PATH :=$(UNIXCOMMAND_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   483
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   484
    xDEVTOOLS_PATH  :="$(_system_drive)/utils"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   485
    fxDEVTOOLS_PATH :=$(call FullPath,$(xDEVTOOLS_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   486
    DEVTOOLS_PATH  :=$(call PrefixPath,$(fxDEVTOOLS_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   487
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   488
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   489
DEVTOOLS_PATH:=$(call AltCheckSpaces,DEVTOOLS_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   490
90ce3da70b43 Initial load
duke
parents:
diff changeset
   491
# _BOOTDIR1: First choice for a Bootstrap JDK, previous released JDK.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   492
# _BOOTDIR2: Second choice
2806
27edf81ff967 6833444: _BOOTDIR1/_BOOTDIR2 on MS Windows should be consistent with other platforms
anthony
parents: 2624
diff changeset
   493
# The _BOOTDIR3 is defind optionally.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   494
ifndef ALT_BOOTDIR
90ce3da70b43 Initial load
duke
parents:
diff changeset
   495
  _BOOTDIR1  =$(_system_drive)/jdk$(PREVIOUS_JDK_VERSION)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   496
  _BOOTDIR2  =$(USRJDKINSTANCES_PATH)/jdk$(PREVIOUS_JDK_VERSION)
2806
27edf81ff967 6833444: _BOOTDIR1/_BOOTDIR2 on MS Windows should be consistent with other platforms
anthony
parents: 2624
diff changeset
   497
  _BOOTDIR3  =$(SLASH_JAVA)/re/jdk/$(PREVIOUS_JDK_VERSION)/archive/fcs/binaries/$(PLATFORM)-$(ARCH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   498
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   499
2186
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   500
# 32 bit always needs 2 runtimes, 64 bit usually does too
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   501
2186
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   502
# 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
   503
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
   504
  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
   505
  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
   506
else
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   507
  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
   508
endif
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   509
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
   510
MSVCRT_DLL_PATH:=$(call AltCheckValue,MSVCRT_DLL_PATH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   511
2186
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   512
# 32bit always needs the MSVCRNN runtime, 64bit does when using VS2008
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   513
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
   514
  _NEEDS_MSVCRNN = true
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   515
else
5381
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   516
  ifneq ($(VS2010),)
2186
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   517
    _NEEDS_MSVCRNN = true
5381
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   518
  else 
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   519
    ifneq ($(VS2008),)
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   520
      _NEEDS_MSVCRNN = true
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   521
    else
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   522
      _NEEDS_MSVCRNN = false
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   523
    endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   524
  endif
2186
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   525
endif
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   526
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   527
ifeq ($(_NEEDS_MSVCRNN), true)
1776
33e9405ab91b 6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents: 1247
diff changeset
   528
  # 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
   529
  ifdef ALT_MSVCRNN_DLL_PATH
33e9405ab91b 6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents: 1247
diff changeset
   530
    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
   531
    MSVCRNN_DLL_PATH      :=$(call FullPath,$(xALT_MSVCRNN_DLL_PATH))
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   532
  else
2186
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   533
    MSVCRNN_DLL_PATH :=$(_redist_sdk)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   534
  endif
1776
33e9405ab91b 6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents: 1247
diff changeset
   535
  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
   536
  MSVCRNN_DLL_PATH:=$(call AltCheckValue,MSVCRNN_DLL_PATH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   537
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   538
90ce3da70b43 Initial load
duke
parents:
diff changeset
   539
# DXSDK_PATH: path to Microsoft DirectX SDK Include and Lib
90ce3da70b43 Initial load
duke
parents:
diff changeset
   540
ifdef ALT_DXSDK_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   541
  xALT_DXSDK_PATH :="$(subst \,/,$(ALT_DXSDK_PATH))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   542
  DXSDK_PATH      :=$(call FullPath,$(xALT_DXSDK_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   543
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   544
  _DXSDK_PATH1 :=$(_dx_sdk_dir)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   545
  _DXSDK_PATH2 :=$(JDK_DEVTOOLS_DIR)/windows/dxsdk
90ce3da70b43 Initial load
duke
parents:
diff changeset
   546
  DXSDK_PATH  :=$(call DirExists,$(_DXSDK_PATH1),$(_DXSDK_PATH2),$(_dx_sdk_dir))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   547
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   548
DXSDK_PATH :=$(call AltCheckSpaces,DXSDK_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   549
DXSDK_PATH:=$(call AltCheckValue,DXSDK_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   550
90ce3da70b43 Initial load
duke
parents:
diff changeset
   551
# DXSDK_INCLUDE_PATH: path to Microsoft DirectX SDK Include
90ce3da70b43 Initial load
duke
parents:
diff changeset
   552
ifdef ALT_DXSDK_INCLUDE_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   553
  xALT_DXSDK_INCLUDE_PATH :="$(subst \,/,$(ALT_DXSDK_INCLUDE_PATH))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   554
  DXSDK_INCLUDE_PATH      :=$(call FullPath,$(xALT_DXSDK_INCLUDE_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   555
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   556
  DXSDK_INCLUDE_PATH =$(subst //,/,$(DXSDK_PATH)/Include)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   557
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   558
90ce3da70b43 Initial load
duke
parents:
diff changeset
   559
# DXSDK_LIB_PATH: path to Microsoft DirectX SDK Lib
90ce3da70b43 Initial load
duke
parents:
diff changeset
   560
ifdef ALT_DXSDK_LIB_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   561
  xALT_DXSDK_LIB_PATH :="$(subst \,/,$(ALT_DXSDK_LIB_PATH))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   562
  DXSDK_LIB_PATH      :=$(call FullPath,$(xALT_DXSDK_LIB_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   563
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   564
  ifeq ($(ARCH_DATA_MODEL), 64)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   565
    # 64bit libs are located in "Lib/x64" subdir
90ce3da70b43 Initial load
duke
parents:
diff changeset
   566
    DXSDK_LIB_PATH =$(subst //,/,$(DXSDK_PATH)/Lib/x64)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   567
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   568
    DXSDK_LIB_PATH =$(subst //,/,$(DXSDK_PATH)/Lib)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   569
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   570
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   571
90ce3da70b43 Initial load
duke
parents:
diff changeset
   572
# DEPLOY_MSSDK: Microsoft SDK for this platform (for deploy)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   573
ifdef ALT_DEPLOY_MSSDK
90ce3da70b43 Initial load
duke
parents:
diff changeset
   574
  xALT_DEPLOY_MSSDK :="$(subst \,/,$(ALT_DEPLOY_MSSDK))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   575
  DEPLOY_MSSDK      :=$(call FullPath,$(xALT_DEPLOY_MSSDK))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   576
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   577
  DEPLOY_MSSDK      :=$(_ms_sdk)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   578
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   579
DEPLOY_MSSDK:=$(call AltCheckSpaces,DEPLOY_MSSDK)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   580
90ce3da70b43 Initial load
duke
parents:
diff changeset
   581
# INSTALL_MSSDK: Microsoft Installer SDK for this platform (for install)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   582
ifdef ALT_INSTALL_MSSDK
90ce3da70b43 Initial load
duke
parents:
diff changeset
   583
  xALT_INSTALL_MSSDK :="$(subst \,/,$(ALT_INSTALL_MSSDK))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   584
  INSTALL_MSSDK      :=$(call FullPath,$(xALT_INSTALL_MSSDK))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   585
else
3111
fefdeafb7ab9 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 2624
diff changeset
   586
  INSTALL_MSSDK      :=$(_ms_sdk)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   587
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   588
INSTALL_MSSDK:=$(call AltCheckSpaces,INSTALL_MSSDK)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   589
90ce3da70b43 Initial load
duke
parents:
diff changeset
   590
# INSTALL_MSIVAL2: Installation of MsiVal2 for this platform (for install)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   591
ifdef ALT_INSTALL_MSIVAL2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   592
  xALT_INSTALL_MSIVAL2 :="$(subst \,/,$(ALT_INSTALL_MSIVAL2))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   593
  INSTALL_MSIVAL2      :=$(call FullPath,$(xALT_INSTALL_MSIVAL2))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   594
else
2186
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   595
  INSTALL_MSIVAL2      :=$(_program_files32)/MsiVal2
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   596
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   597
INSTALL_MSIVAL2:=$(call AltCheckSpaces,INSTALL_MSIVAL2)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   598
90ce3da70b43 Initial load
duke
parents:
diff changeset
   599
# WSCRIPT: path to wscript.exe (used in creating install bundles)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   600
ifdef ALT_WSCRIPT
90ce3da70b43 Initial load
duke
parents:
diff changeset
   601
  xALT_WSCRIPT :="$(subst \,/,$(ALT_WSCRIPT))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   602
  WSCRIPT  =$(xALT_WSCRIPT)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   603
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   604
  _WSCRIPT1 :=$(_system_root)/system32/wscript.exe
90ce3da70b43 Initial load
duke
parents:
diff changeset
   605
  _WSCRIPT2 :=$(DEVTOOLS_PATH)wscript.exe
90ce3da70b43 Initial load
duke
parents:
diff changeset
   606
  WSCRIPT  :=$(call FileExists,$(_WSCRIPT1),$(_WSCRIPT2))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   607
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   608
WSCRIPT:=$(call AltCheckSpaces,WSCRIPT)
1025
a9ba5ea0f1f7 6614210: JPRT Windows 32bit msival2 build failure when building 'install' workspace
ksrini
parents: 2
diff changeset
   609
# 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
   610
WSCRIPT += -B
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   611
90ce3da70b43 Initial load
duke
parents:
diff changeset
   612
# CSCRIPT: path to cscript.exe (used in creating install bundles)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   613
ifdef ALT_CSCRIPT
90ce3da70b43 Initial load
duke
parents:
diff changeset
   614
  xALT_CSCRIPT :="$(subst \,/,$(ALT_CSCRIPT))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   615
  CSCRIPT  =$(xALT_CSCRIPT)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   616
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   617
  _CSCRIPT1 :=$(_system_root)/system32/cscript.exe
90ce3da70b43 Initial load
duke
parents:
diff changeset
   618
  _CSCRIPT2 :=$(DEVTOOLS_PATH)cscript.exe
90ce3da70b43 Initial load
duke
parents:
diff changeset
   619
  CSCRIPT  :=$(call FileExists,$(_CSCRIPT1),$(_CSCRIPT2))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   620
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   621
CSCRIPT:=$(call AltCheckSpaces,CSCRIPT)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   622
5381
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   623
# CABARC: path to cabarc.exe (used in creating install bundles)
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   624
ifdef ALT_CABARC
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   625
  xALT_CABARC :="$(subst \,/,$(ALT_CABARC))"
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   626
  CABARC  =$(xALT_CABARC)
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   627
else
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   628
  _CABARC1 :=$(_system_root)/system32/cabarc.exe
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   629
  _CABARC2 :=$(DEVTOOLS_PATH)cabarc.exe
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   630
  CABARC  :=$(call FileExists,$(_CABARC1),$(_CABARC2))
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   631
endif
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   632
CABARC:=$(call AltCheckSpaces,CABARC)
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   633
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   634
# MSIVAL2: path to msival2.exe (used in validating install msi files)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   635
ifdef ALT_MSIVAL2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   636
  xALT_MSIVAL2 :="$(subst \,/,$(ALT_MSIVAL2))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   637
  MSIVAL2  =$(xALT_MSIVAL2)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   638
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   639
  _MSIVAL2_1 :=$(INSTALL_MSIVAL2)/msival2.exe
90ce3da70b43 Initial load
duke
parents:
diff changeset
   640
  _MSIVAL2_2 :=$(DEVTOOLS_PATH)msival2.exe
90ce3da70b43 Initial load
duke
parents:
diff changeset
   641
  MSIVAL2    :=$(call FileExists,$(_MSIVAL2_1),$(_MSIVAL2_2))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   642
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   643
MSIVAL2:=$(call AltCheckSpaces,MSIVAL2)
1025
a9ba5ea0f1f7 6614210: JPRT Windows 32bit msival2 build failure when building 'install' workspace
ksrini
parents: 2
diff changeset
   644
# 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
   645
ifdef SKIP_MSIVAL2
5b394a4b6ce1 6755943: Java JAR Pack200 Decompression should enforce stricter header checks
ksrini
parents: 2
diff changeset
   646
  MSIVAL2    := $(ECHO)
5b394a4b6ce1 6755943: Java JAR Pack200 Decompression should enforce stricter header checks
ksrini
parents: 2
diff changeset
   647
endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   648
90ce3da70b43 Initial load
duke
parents:
diff changeset
   649
# LOGOCUB: path to cub file for (used in validating install msi files)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   650
ifdef ALT_LOGOCUB
90ce3da70b43 Initial load
duke
parents:
diff changeset
   651
  xALT_LOGOCUB :="$(subst \,/,$(ALT_LOGOCUB))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   652
  LOGOCUB  =$(xALT_LOGOCUB)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   653
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   654
  _LOGOCUB1 :=$(INSTALL_MSIVAL2)/logo.cub
90ce3da70b43 Initial load
duke
parents:
diff changeset
   655
  _LOGOCUB2 :=$(DEVTOOLS_PATH)logo.cub
90ce3da70b43 Initial load
duke
parents:
diff changeset
   656
  LOGOCUB   :=$(call FileExists,$(_LOGOCUB1),$(_LOGOCUB2))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   657
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   658
LOGOCUB:=$(call AltCheckSpaces,LOGOCUB)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   659
90ce3da70b43 Initial load
duke
parents:
diff changeset
   660
# MSITRAN: path to msitran.exe (used in creating install bundles and sponsors)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   661
ifdef ALT_MSITRAN
90ce3da70b43 Initial load
duke
parents:
diff changeset
   662
  xALT_MSITRAN :="$(subst \,/,$(ALT_MSITRAN))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   663
  MSITRAN  =$(xALT_MSITRAN)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   664
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   665
  _MSITRAN1 :=$(INSTALL_MSSDK)/Bin/msitran.exe
90ce3da70b43 Initial load
duke
parents:
diff changeset
   666
  _MSITRAN2 :=$(DEVTOOLS_PATH)msitran.exe
90ce3da70b43 Initial load
duke
parents:
diff changeset
   667
  MSITRAN   :=$(call FileExists,$(_MSITRAN1),$(_MSITRAN2))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   668
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   669
MSITRAN:=$(call AltCheckSpaces,MSITRAN)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   670
90ce3da70b43 Initial load
duke
parents:
diff changeset
   671
# MSICERT: path to msicert.exe (used in creating install bundles)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   672
ifdef ALT_MSICERT
90ce3da70b43 Initial load
duke
parents:
diff changeset
   673
  xALT_MSICERT :="$(subst \,/,$(ALT_MSICERT))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   674
  MSICERT  =$(xALT_MSICERT)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   675
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   676
  _MSICERT1 :=$(INSTALL_MSSDK)/Bin/msicert.exe
90ce3da70b43 Initial load
duke
parents:
diff changeset
   677
  _MSICERT2 :=$(DEVTOOLS_PATH)msicert.exe
90ce3da70b43 Initial load
duke
parents:
diff changeset
   678
  MSICERT   :=$(call FileExists,$(_MSICERT1),$(_MSICERT2))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   679
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   680
MSICERT:=$(call AltCheckSpaces,MSICERT)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   681
90ce3da70b43 Initial load
duke
parents:
diff changeset
   682
# Import JDK images allow for partial builds, components not built are
90ce3da70b43 Initial load
duke
parents:
diff changeset
   683
#    imported (or copied from) these import areas when needed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   684
90ce3da70b43 Initial load
duke
parents:
diff changeset
   685
# BUILD_JDK_IMPORT_PATH: location of JDK install trees to import for
90ce3da70b43 Initial load
duke
parents:
diff changeset
   686
#   multiple platforms, e.g. windows-i586, solaris-sparc, linux-586, etc.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   687
ifdef ALT_BUILD_JDK_IMPORT_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   688
  BUILD_JDK_IMPORT_PATH  :=$(call FullPath,$(ALT_BUILD_JDK_IMPORT_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   689
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   690
  BUILD_JDK_IMPORT_PATH   = $(PROMOTED_BUILD_BINARIES)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   691
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   692
BUILD_JDK_IMPORT_PATH:=$(call AltCheckSpaces,BUILD_JDK_IMPORT_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   693
BUILD_JDK_IMPORT_PATH:=$(call AltCheckValue,BUILD_JDK_IMPORT_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   694
90ce3da70b43 Initial load
duke
parents:
diff changeset
   695
# JDK_IMPORT_PATH: location of previously built JDK (this version) to import
90ce3da70b43 Initial load
duke
parents:
diff changeset
   696
ifdef ALT_JDK_IMPORT_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   697
  JDK_IMPORT_PATH  :=$(call FullPath,$(ALT_JDK_IMPORT_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   698
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   699
  JDK_IMPORT_PATH   = $(BUILD_JDK_IMPORT_PATH)/$(PLATFORM)-$(ARCH)$(_JDK_IMPORT_VARIANT)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   700
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   701
JDK_IMPORT_PATH:=$(call AltCheckSpaces,JDK_IMPORT_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   702
JDK_IMPORT_PATH:=$(call AltCheckValue,JDK_IMPORT_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   703
90ce3da70b43 Initial load
duke
parents:
diff changeset
   704
# HOTSPOT_IMPORT_PATH: location of hotspot pre-built files
90ce3da70b43 Initial load
duke
parents:
diff changeset
   705
ifdef ALT_HOTSPOT_IMPORT_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   706
  HOTSPOT_IMPORT_PATH :=$(call FullPath,$(ALT_HOTSPOT_IMPORT_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   707
else
3116
244619fd110e 6633813: Add standard hotspot import path for Kernel VM
herrick
parents: 3114
diff changeset
   708
  # Default locations include the current $OUTPUTDIR, RE Promotions,
244619fd110e 6633813: Add standard hotspot import path for Kernel VM
herrick
parents: 3114
diff changeset
   709
  # and a JDK.  Please be aware the JDK does not include a Kernel VM.
244619fd110e 6633813: Add standard hotspot import path for Kernel VM
herrick
parents: 3114
diff changeset
   710
  _HOTSPOT_IMPORT_PATH1 = $(OUTPUTDIR)/hotspot/import
244619fd110e 6633813: Add standard hotspot import path for Kernel VM
herrick
parents: 3114
diff changeset
   711
  _HOTSPOT_IMPORT_PATH2 = $(PROMOTED_BUILD_DISTDIR)/hotspot/import
244619fd110e 6633813: Add standard hotspot import path for Kernel VM
herrick
parents: 3114
diff changeset
   712
  _HOTSPOT_IMPORT_PATH3 = $(JDK_IMPORT_PATH)
244619fd110e 6633813: Add standard hotspot import path for Kernel VM
herrick
parents: 3114
diff changeset
   713
   HOTSPOT_IMPORT_PATH := $(call DirExists,$(_HOTSPOT_IMPORT_PATH1),$(_HOTSPOT_IMPORT_PATH2),$(_HOTSPOT_IMPORT_PATH3))
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   714
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   715
HOTSPOT_IMPORT_PATH:=$(call AltCheckSpaces,HOTSPOT_IMPORT_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   716
HOTSPOT_IMPORT_PATH:=$(call AltCheckValue,HOTSPOT_IMPORT_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   717
90ce3da70b43 Initial load
duke
parents:
diff changeset
   718
# HOTSPOT_CLIENT_PATH: location of client jvm library file.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   719
ifeq ($(ARCH_DATA_MODEL), 32)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   720
  ifdef ALT_HOTSPOT_CLIENT_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   721
    HOTSPOT_CLIENT_PATH :=$(call FullPath,$(ALT_HOTSPOT_CLIENT_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   722
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   723
    HOTSPOT_CLIENT_PATH   =$(HOTSPOT_IMPORT_PATH)/$(ARCH_VM_SUBDIR)/client
90ce3da70b43 Initial load
duke
parents:
diff changeset
   724
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   725
  HOTSPOT_CLIENT_PATH:=$(call AltCheckSpaces,HOTSPOT_CLIENT_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   726
  HOTSPOT_CLIENT_PATH:=$(call AltCheckValue,HOTSPOT_CLIENT_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   727
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   728
90ce3da70b43 Initial load
duke
parents:
diff changeset
   729
# HOTSPOT_SERVER_PATH: location of server jvm library file.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   730
ifdef ALT_HOTSPOT_SERVER_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   731
  HOTSPOT_SERVER_PATH :=$(call FullPath,$(ALT_HOTSPOT_SERVER_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   732
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   733
  HOTSPOT_SERVER_PATH   =$(HOTSPOT_IMPORT_PATH)/$(ARCH_VM_SUBDIR)/server
90ce3da70b43 Initial load
duke
parents:
diff changeset
   734
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   735
HOTSPOT_SERVER_PATH:=$(call AltCheckSpaces,HOTSPOT_SERVER_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   736
HOTSPOT_SERVER_PATH:=$(call AltCheckValue,HOTSPOT_SERVER_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   737
90ce3da70b43 Initial load
duke
parents:
diff changeset
   738
# HOTSPOT_LIB_PATH: location of jvm.lib file.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   739
ifdef ALT_HOTSPOT_LIB_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   740
  xALT_HOTSPOT_LIB_PATH :="$(subst \,/,$(ALT_HOTSPOT_LIB_PATH))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   741
  HOTSPOT_LIB_PATH      :=$(call FullPath,$(xALT_HOTSPOT_LIB_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   742
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   743
  HOTSPOT_LIB_PATH  =$(HOTSPOT_IMPORT_PATH)/lib
90ce3da70b43 Initial load
duke
parents:
diff changeset
   744
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   745
HOTSPOT_LIB_PATH:=$(call AltCheckSpaces,HOTSPOT_LIB_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   746
HOTSPOT_LIB_PATH:=$(call AltCheckValue,HOTSPOT_LIB_PATH)