jdk/make/common/shared/Defs-windows.gmk
author ohair
Tue, 21 Dec 2010 18:21:26 -0800
changeset 7665 bc5dbdc44e1e
parent 6309 d3955f70aad3
child 7669 3ebe17bda998
permissions -rw-r--r--
6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location Reviewed-by: ksrini
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
#
7665
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
     2
# Copyright (c) 2005, 2010, 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
7665
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
    83
ifdef USING_CYGWIN
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
    84
# All possible drive letters
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
    85
drives=a b c d e f g h i j k l m n o p q r s t v u w x y z
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
    86
# Convert /cygdrive/ paths to the mixed style without an exec of cygpath
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
    87
#   Must be a path with no spaces.
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
    88
define MixedPath
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
    89
$(patsubst /%,c:/cygwin/%,$(sort $(filter-out /cygdrive/%,$(foreach drive,$(drives),$(patsubst /cygdrive/$(drive)/%,$(drive):/%,$1)))))
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
    90
endef
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
# Use FullPath to get C:/ style non-spaces path. Never ends with a /!
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
# We assume cygpath is available in the search path
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
#    NOTE: Use of 'pwd' with CYGWIN will not get you a mixed style path!
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
CYGPATH_CMD=cygpath -a -s -m
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
define FullPath
7665
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
    96
$(if $(word 2,$1),$(shell $(CYGPATH_CMD) $1 2> $(DEV_NULL)),$(call MixedPath,$(realpath $(subst ",,$1))))
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
endef
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
define OptFullPath
6309
d3955f70aad3 6974005: Use of cygpath in Makefile logic needs to silence error messages
ohair
parents: 5937
diff changeset
    99
$(shell if [ "$1" != "" -a -d "$1" ]; then $(CYGPATH_CMD) "$1" 2> $(DEV_NULL); else echo "$1"; fi)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
endef
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
# Temporary until we upgrade to MKS 8.7, MKS pwd returns mixed mode path
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
define FullPath
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
$(shell cd $1 2> $(DEV_NULL) && pwd)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
endef
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
define OptFullPath
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
$(shell if [ "$1" != "" -a -d "$1" ]; then (cd $1 && pwd); else echo "$1"; fi)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
endef
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
# System drive
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
ifdef SYSTEMDRIVE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
  _system_drive =$(SYSTEMDRIVE)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
  ifdef SystemDrive
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
    _system_drive =$(SystemDrive)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
_system_drive:=$(call CheckValue,_system_drive,C:)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
# UNIXCOMMAND_PATH: path to where the most common Unix commands are.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
#  NOTE: Must end with / so that it could be empty, allowing PATH usage.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
ifdef ALT_UNIXCOMMAND_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
  xALT_UNIXCOMMAND_PATH  :="$(subst \,/,$(ALT_UNIXCOMMAND_PATH))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
  fxALT_UNIXCOMMAND_PATH :=$(call FullPath,$(xALT_UNIXCOMMAND_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
  UNIXCOMMAND_PATH       :=$(call PrefixPath,$(fxALT_UNIXCOMMAND_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
  ifdef USING_CYGWIN
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
    UNIXCOMMAND_PATH :=$(call PrefixPath,/usr/bin)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
    ifdef ROOTDIR
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
      xROOTDIR :="$(subst \,/,$(ROOTDIR))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
      _rootdir :=$(call FullPath,$(xROOTDIR))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
    else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
      xROOTDIR :="$(_system_drive)/mksnt"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
      _rootdir :=$(call FullPath,$(xROOTDIR))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
    ifneq ($(_rootdir),)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
      UNIXCOMMAND_PATH :=$(call PrefixPath,$(_rootdir)/mksnt)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
UNIXCOMMAND_PATH:=$(call AltCheckSpaces,UNIXCOMMAND_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
# 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
   146
ifndef USING_CYGWIN
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
_MKS_VER :=$(shell $(MKSINFO) 2>&1 | $(GREP) Release | $(TAIL) -1 | $(SED) -e 's@.*\(Release.*\)@\1@')
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
MKS_VER  :=$(call GetVersion,$(_MKS_VER))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
# At this point, we can re-define FullPath to use DOSNAME_CMD
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
CHECK_MKS87:=$(call CheckVersions,$(MKS_VER),8.7)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
TRY_DOSNAME:=false
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
ifeq ($(CHECK_MKS87),same)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
TRY_DOSNAME:=true
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
# Newer should be ok
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
ifeq ($(CHECK_MKS87),newer)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
TRY_DOSNAME:=true
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
ifeq ($(TRY_DOSNAME),true)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
ifeq ($(shell $(UNIXCOMMAND_PATH)dosname -s $(_system_drive)/ 2> $(DEV_NULL)),$(_system_drive)/)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
_DOSNAME=$(UNIXCOMMAND_PATH)dosname
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
DOSNAME_CMD:=$(_DOSNAME) -s
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
define FullPath
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
$(subst //,/,$(shell echo $1 | $(DOSNAME_CMD) 2> $(DEV_NULL)))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
endef
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
endif # test dosname -s
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
endif # TRY_DOSNAME
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
endif # MKS
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
# We try to get references to what we need via the default component
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
#    environment variables, or what was used historically.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
# Process Windows values into FullPath values, these paths may have \ chars
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
# System root
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
ifdef SYSTEMROOT
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
  xSYSTEMROOT  :="$(subst \,/,$(SYSTEMROOT))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
  _system_root :=$(call FullPath,$(xSYSTEMROOT))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
  ifdef SystemRoot
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
     xSYSTEMROOT :="$(subst \,/,$(SystemRoot))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
    _system_root :=$(call FullPath,$(xSYSTEMROOT))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
    ifdef WINDIR
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
      xWINDIR      :="$(subst \,/,$(WINDIR))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
      _system_root :=$(call FullPath,$(xWINDIR))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
    else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
      ifdef windir
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
        xWINDIR      :="$(subst \,/,$(windir))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
        _system_root :=$(call FullPath,$(xWINDIR))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
      endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
_system_root:=$(call CheckValue,_system_root,$(_system_drive)/WINNT)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
# Program Files directory
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
ifdef PROGRAMFILES
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
  xPROGRAMFILES      :="$(subst \,/,$(PROGRAMFILES))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
  ifeq ($(ARCH_DATA_MODEL), 32)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
    xPROGRAMFILES    :="$(_system_drive)/Program Files"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
    xPROGRAMFILES    :="$(_system_drive)/Program Files (x86)"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
ifeq ($(ARCH_DATA_MODEL), 32)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
  _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
   209
  _program_files32   :=$(_program_files)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
  ifdef PROGRAMW6432
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
    xPROGRAMW6432    :="$(subst \,/,$(PROGRAMW6432))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
    xPROGRAMW6432    :="$(_system_drive)/Program Files"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
  _program_files     :=$(call FullPath,$(xPROGRAMW6432))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
  _program_files32   :=$(call FullPath,$(xPROGRAMFILES))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
  ifneq ($(word 1,$(_program_files32)),$(_program_files32))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
    _program_files32:=
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
ifneq ($(word 1,$(_program_files)),$(_program_files))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
  _program_files:=
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
# DirectX SDK
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
ifdef ALT_DXSDK_DRIVE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
  _dx_sdk_dir  =$(ALT_DXSDK_DRIVE):/DXSDK
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
  ifdef DXSDK_DIR
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
    xDXSDK_DIR  :="$(subst \,/,$(DXSDK_DIR))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
    xDXSDK_DIR  :="$(_system_drive)/DXSDK"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
  _dx_sdk_dir :=$(call FullPath,$(xDXSDK_DIR))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
7665
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   238
# Use of the Visual Studio compilers requires certain env variables be set:
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   239
#   PATH should include the path to cl.exe
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   240
#   INCLUDE should be defined
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   241
#   LIB     should be defined
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   242
#   LIBPATH should be defined
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   243
#   VS100COMNTOOLS should be defined
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   244
#   WINDOWSSDKDIR should be defined
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   245
#     The 7.0a path is from VS2010 Pro, the 7.1 path is the standalone SDK.
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   246
#     For 64bit either will work for us.
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   247
#     If a developer chooses to install the standalone SDK in some other
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   248
#     location, then they need to set WINDOWSSDKDIR.
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   249
#
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   250
# Compilers for 64bit may be from the free SDK, or Visual Studio Professional.
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   251
#   The free Express compilers don't contain 64 bit compilers, which is why
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   252
#   you instead need the SDK.
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   253
#   Release enginering will use VS2010 Pro, so the frequency of testing of
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   254
#     SDK based builds will depend entirely on individual usage.
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   255
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   256
# We only need to do this once
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   257
ifndef VS2010_EXISTS
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   258
  # The 2 key paths we need are WINDOWSSDKDIR and VS100COMNTOOLS.
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   259
  #   If not defined try to see if default location exists.
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   260
  #   If defined make sure that the path has no spaces.
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   261
  #   Finally, export path with no spaces so logic minimizes FullPath calls.
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   262
  ifndef WINDOWSSDKDIR
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   263
    # The 7.0a SDK is the second choice.
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   264
    xWINDOWSSDKDIR :="$(_program_files32)/Microsoft SDKs/Windows/v7.0a/"
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   265
    fWINDOWSSDKDIR :=$(call FullPath,$(xWINDOWSSDKDIR))
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   266
    # The 7.1 SDK is the second choice.
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   267
    ifeq ($(fWINDOWSSDKDIR),)
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   268
      xWINDOWSSDKDIR :="$(_program_files32)/Microsoft SDKs/Windows/v7.1/"
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   269
      fWINDOWSSDKDIR :=$(call FullPath,$(xWINDOWSSDKDIR))
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   270
    endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   271
  else
7665
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   272
    ifneq ($(word 2,$(WINDOWSSDKDIR)),)
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   273
      xWINDOWSSDKDIR :="$(subst \,/,$(WINDOWSSDKDIR))"
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   274
      fWINDOWSSDKDIR :=$(call FullPath,$(xWINDOWSSDKDIR))
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   275
    else
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   276
      fWINDOWSSDKDIR :=$(WINDOWSSDKDIR)
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   277
    endif
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   278
  endif
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   279
  ifneq ($(fWINDOWSSDKDIR),)
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   280
    WINDOWSSDKDIR  :=$(fWINDOWSSDKDIR)/
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   281
  endif
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   282
  ifndef VS100COMNTOOLS
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   283
    xVS100COMNTOOLS :="$(_program_files32)/Microsoft Visual Studio 10.0/Common7/Tools/"
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   284
    fVS100COMNTOOLS :=$(call FullPath,$(xVS100COMNTOOLS))
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   285
  else
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   286
    ifneq ($(word 2,$(VS100COMNTOOLS)),)
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   287
      xVS100COMNTOOLS :="$(subst \,/,$(VS100COMNTOOLS))"
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   288
      fVS100COMNTOOLS :=$(call FullPath,$(xVS100COMNTOOLS))
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   289
    else
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   290
      fVS100COMNTOOLS :=$(xVS100COMNTOOLS)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   291
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   292
  endif
7665
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   293
  ifneq ($(fVS100COMNTOOLS),)
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   294
    VS100COMNTOOLS :=$(fVS100COMNTOOLS)/
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   295
  endif
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   296
  # Check to see that both exist
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   297
  ifeq ($(WINDOWSSDKDIR),)
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   298
    _vs2010_message := No WINDOWSSDKDIR found on system. $(_vs2010_message)
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   299
    VS2010_EXISTS   := false
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   300
  endif
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   301
  ifeq ($(VS100COMNTOOLS),)
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   302
    _vs2010_message := No VS100COMNTOOLS found on system. $(_vs2010_message)
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   303
    VS2010_EXISTS   := false
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   304
  endif
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   305
  ifeq ($(VS2010_EXISTS),false)
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   306
    x:=$(warning WARNING: No VS2010 available. $(_vs2010_message))
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   307
    VS100COMNTOOLS :=
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   308
    WINDOWSSDKDIR  :=
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   309
  else
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   310
    VS2010_EXISTS := true
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   311
    _msvc_dir     :=$(VS100COMNTOOLS)/../../Vc
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   312
  endif
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   313
  export VS2010_EXISTS
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   314
  export VS100COMNTOOLS
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   315
  export WINDOWSSDKDIR
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   316
endif
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   317
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   318
# Setup for VS2010 is simple, others logic is historic
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   319
ifeq ($(VS2010_EXISTS),true)
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   320
  
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   321
  # VS2010 Compiler root directory
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   322
  _msvc_dir :=$(VS100COMNTOOLS)/../../Vc
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   323
  # SDK root directory
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   324
  _ms_sdk   :=$(WINDOWSSDKDIR)
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   325
  # Compiler bin directory and redist directory
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   326
  ifeq ($(ARCH_DATA_MODEL), 32)
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   327
    _compiler_bin :=$(_msvc_dir)/Bin
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   328
    _redist_sdk   :=$(call FullPath,$(_msvc_dir)/redist/x86/Microsoft.VC100.CRT)
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   329
  endif
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   330
  ifeq ($(ARCH_DATA_MODEL), 64)
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   331
    _compiler_bin :=$(_msvc_dir)/bin/amd64
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   332
    _redist_sdk   :=$(call FullPath,$(_msvc_dir)/redist/x64/Microsoft.VC100.CRT)
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   333
  endif
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   334
  ifeq ($(_redist_sdk),)
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   335
    _redist_sdk   :=$(_system_root)/system32
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   336
  endif
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   337
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   338
else # Not VS2010
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   339
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   340
  # Compilers, SDK, and Visual Studio (MSDEV) [32bit is different from 64bit]
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   341
  ifeq ($(ARCH_DATA_MODEL), 32)
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   342
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   343
    # Try looking in MSVCDIR or MSVCDir area first 
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   344
    # (set by vcvars32.bat for VC .NET, not defined in the VC 2008/2010)
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   345
    ifdef MSVCDIR
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   346
      xMSVCDIR  :="$(subst \,/,$(MSVCDIR))"
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   347
      _msvc_dir :=$(call FullPath,$(xMSVCDIR))
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   348
    else
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   349
      ifdef MSVCDir
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   350
        xMSVCDIR  :="$(subst \,/,$(MSVCDir))"
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   351
        _msvc_dir :=$(call FullPath,$(xMSVCDIR))
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   352
      endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   353
    endif
7665
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   354
    # If we still don't have it, look for VSnnCOMNTOOLS (newest first),
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   355
    # set by installer?
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   356
    ifeq ($(_msvc_dir),)
5381
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   357
      ifdef VS90COMNTOOLS  # /Common/Tools directory, use ../../Vc
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   358
        xVS90COMNTOOLS :="$(subst \,/,$(VS90COMNTOOLS))"
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   359
        _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
   360
      endif
5381
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   361
      ifneq ($(_vs90tools),)
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   362
        _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
   363
      else
5381
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   364
        ifdef VS80COMNTOOLS  # /Common/Tools directory, use ../../Vc
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   365
          xVS80COMNTOOLS :="$(subst \,/,$(VS80COMNTOOLS))"
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   366
          _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
   367
        endif
5381
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   368
        ifneq ($(_vs80tools),)
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   369
          _msvc_dir   :=$(_vs80tools)/../../Vc
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   370
        else
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   371
          ifdef VS71COMNTOOLS  # /Common/Tools directory, use ../../Vc7
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   372
            xVS71COMNTOOLS :="$(subst \,/,$(VS71COMNTOOLS))"
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   373
            _vs71tools     :=$(call FullPath,$(xVS71COMNTOOLS))
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   374
          endif
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   375
          ifneq ($(_vs71tools),)
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   376
            _msvc_dir   :=$(_vs71tools)/../../Vc7
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
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
        endif
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   379
      endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   380
    endif
7665
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   381
  
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   382
    ifneq ($(_msvc_dir),)
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   383
      _compiler_bin :=$(_msvc_dir)/Bin
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   384
      # Assume PlatformSDK is in VS71 (will be empty if VS90)
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   385
      _ms_sdk       :=$(call FullPath,$(_msvc_dir)/PlatformSDK)
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   386
      _redist_sdk   :=$(call FullPath,$(_msvc_dir)/redist/x86/Microsoft.VC90.CRT)
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   387
      ifeq ($(_redist_sdk),)
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   388
        _redist_sdk   :=$(call FullPath,$(_msvc_dir)/redist/x86/Microsoft.VC80.CRT)
5381
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   389
        ifeq ($(_redist_sdk),)
7665
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   390
          _redist_sdk   :=$(call FullPath,$(_msvc_dir)/../SDK/v1.1/Bin)
5381
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   391
        endif
2186
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   392
      endif
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   393
    endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   394
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   395
7665
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   396
  # The Microsoft Platform SDK installed by itself
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   397
  ifneq ($(_program_files),)
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   398
    _PSDK :="$(_program_files)/Microsoft SDKs/Windows/v6.1/"
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   399
    _psdk :=$(call FullPath,$(xMSSDK61))
2186
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   400
    ifeq ($(_psdk),)
7665
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   401
      xPSDK  :="$(_program_files)/Microsoft Platform SDK"
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   402
      _psdk  :=$(call FullPath,$(xPSDK))
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   403
      ifeq ($(_psdk),)
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   404
        xPSDK  :="$(_program_files)/Microsoft SDK"
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   405
        _psdk :=$(call FullPath,$(xMSSDK))
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   406
      endif
2186
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   407
    endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   408
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   409
7665
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   410
  # If no SDK found yet, look in other places
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   411
  ifeq ($(_ms_sdk),)
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   412
    ifdef MSSDK
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   413
    xMSSDK  :="$(subst \,/,$(MSSDK))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   414
    _ms_sdk :=$(call FullPath,$(xMSSDK))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   415
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   416
    ifdef MSSdk
90ce3da70b43 Initial load
duke
parents:
diff changeset
   417
      xMSSDK  :="$(subst \,/,$(MSSdk))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   418
      _ms_sdk :=$(call FullPath,$(xMSSDK))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   419
    else
7665
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   420
        _ms_sdk :=$(_psdk)
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   421
      endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   422
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   423
  endif
7665
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   424
  
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   425
  # Compilers for 64bit may be from the free SDK, or Visual Studio Professional.
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   426
  ifeq ($(ARCH_DATA_MODEL), 64)
5381
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   427
    xVS2008 :="$(_program_files32)/Microsoft Visual Studio 9.0/"
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   428
    VS2008 :=$(call FullPath,$(xVS2008))
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   429
    ifneq ($(VS2008),)
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   430
      _compiler_bin :=$(VS2008)/VC/Bin/$(ARCH)
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   431
      xMSSDK61      :="$(_program_files)/Microsoft SDKs/Windows/v6.1/"
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   432
      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
   433
      _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
   434
    else
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   435
      ifneq ($(_ms_sdk),)
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   436
        ifeq ($(ARCH), ia64)
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   437
          _compiler_bin :=$(_ms_sdk)/Bin/Win64
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   438
        endif
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   439
        ifeq ($(ARCH), amd64)
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   440
          _compiler_bin :=$(_ms_sdk)/Bin/Win64/x86/$(ARCH)
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   441
          _redist_sdk   :=$(_ms_sdk)/redist/win64/AMD64
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   442
        endif
2186
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   443
      endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   444
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   445
  endif
7665
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   446
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   447
endif # VS2010_EXISTS
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   448
90ce3da70b43 Initial load
duke
parents:
diff changeset
   449
# Location on system where jdk installs might be
90ce3da70b43 Initial load
duke
parents:
diff changeset
   450
ifneq ($(_program_files),)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   451
  USRJDKINSTANCES_PATH =$(_program_files)/Java
90ce3da70b43 Initial load
duke
parents:
diff changeset
   452
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   453
  USRJDKINSTANCES_PATH =$(_system_drive)/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   454
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   455
90ce3da70b43 Initial load
duke
parents:
diff changeset
   456
# SLASH_JAVA: location of all network accessable files
90ce3da70b43 Initial load
duke
parents:
diff changeset
   457
ifdef ALT_SLASH_JAVA
90ce3da70b43 Initial load
duke
parents:
diff changeset
   458
  xALT_SLASH_JAVA :="$(subst \,/,$(ALT_SLASH_JAVA))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   459
  SLASH_JAVA      :=$(call FullPath,$(xALT_SLASH_JAVA))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   460
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   461
  ifdef ALT_JDK_JAVA_DRIVE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   462
    SLASH_JAVA  =$(JDK_JAVA_DRIVE)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   463
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   464
    SLASH_JAVA  =J:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   465
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   466
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   467
SLASH_JAVA:=$(call AltCheckSpaces,SLASH_JAVA)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   468
SLASH_JAVA:=$(call AltCheckValue,SLASH_JAVA)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   469
90ce3da70b43 Initial load
duke
parents:
diff changeset
   470
# JDK_DEVTOOLS_DIR: common path for all the java devtools
90ce3da70b43 Initial load
duke
parents:
diff changeset
   471
ifdef ALT_JDK_DEVTOOLS_DIR
90ce3da70b43 Initial load
duke
parents:
diff changeset
   472
  xALT_JDK_DEVTOOLS_DIR :="$(subst \,/,$(ALT_JDK_DEVTOOLS_DIR))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   473
  JDK_DEVTOOLS_DIR      :=$(call FullPath,$(xALT_JDK_DEVTOOLS_DIR))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   474
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   475
  JDK_DEVTOOLS_DIR =$(SLASH_JAVA)/devtools
90ce3da70b43 Initial load
duke
parents:
diff changeset
   476
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   477
JDK_DEVTOOLS_DIR:=$(call AltCheckSpaces,JDK_DEVTOOLS_DIR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   478
JDK_DEVTOOLS_DIR:=$(call AltCheckValue,JDK_DEVTOOLS_DIR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   479
90ce3da70b43 Initial load
duke
parents:
diff changeset
   480
# COMPILER_PATH: path to where the compiler and tools are installed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   481
#  NOTE: Must end with / so that it could be empty, allowing PATH usage.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   482
ifdef ALT_COMPILER_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   483
  xALT_COMPILER_PATH  :="$(subst \,/,$(ALT_COMPILER_PATH))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   484
  fxALT_COMPILER_PATH :=$(call FullPath,$(xALT_COMPILER_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   485
  COMPILER_PATH       :=$(call PrefixPath,$(fxALT_COMPILER_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   486
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   487
  COMPILER_PATH :=$(call PrefixPath,$(_compiler_bin))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   488
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   489
COMPILER_PATH :=$(call AltCheckSpaces,COMPILER_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   490
90ce3da70b43 Initial load
duke
parents:
diff changeset
   491
# MSDEVTOOLS_PATH: path to where the additional MS Compiler tools are.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   492
#  NOTE: Must end with / so that it could be empty, allowing PATH usage.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   493
ifdef ALT_MSDEVTOOLS_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   494
  xALT_MSDEVTOOLS_PATH  :="$(subst \,/,$(ALT_MSDEVTOOLS_PATH))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   495
  fxALT_MSDEVTOOLS_PATH :=$(call FullPath,$(xALT_MSDEVTOOLS_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   496
  MSDEVTOOLS_PATH       :=$(call PrefixPath,$(fxALT_MSDEVTOOLS_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   497
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   498
  ifeq ($(ARCH_DATA_MODEL), 64)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   499
    ifdef MSTOOLS
90ce3da70b43 Initial load
duke
parents:
diff changeset
   500
      xMSTOOLS  :="$(subst \,/,$(MSTOOLS))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   501
      _ms_tools :=$(call FullPath,$(xMSTOOLS))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   502
    else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   503
      ifdef Mstools
90ce3da70b43 Initial load
duke
parents:
diff changeset
   504
        xMSTOOLS  :="$(subst \,/,$(Mstools))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   505
        _ms_tools :=$(call FullPath,$(xMSTOOLS))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   506
      else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   507
        _ms_tools :=
90ce3da70b43 Initial load
duke
parents:
diff changeset
   508
      endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   509
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   510
    ifneq ($(_ms_tools),)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   511
      _ms_tools_bin :=$(_ms_tools)/Bin
90ce3da70b43 Initial load
duke
parents:
diff changeset
   512
    else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   513
      # Assumes compiler bin is .../Bin/win64/x86/AMD64, rc.exe is 3 levels up
90ce3da70b43 Initial load
duke
parents:
diff changeset
   514
      _ms_tools_bin :=$(_compiler_bin)/../../..
90ce3da70b43 Initial load
duke
parents:
diff changeset
   515
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   516
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   517
    _ms_tools_bin :=$(_compiler_bin)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   518
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   519
  MSDEVTOOLS_PATH :=$(call PrefixPath,$(_ms_tools_bin))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   520
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   521
MSDEVTOOLS_PATH:=$(call AltCheckSpaces,MSDEVTOOLS_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   522
90ce3da70b43 Initial load
duke
parents:
diff changeset
   523
# DEVTOOLS_PATH: for other tools required for building (such as zip, etc.)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   524
#  NOTE: Must end with / so that it could be empty, allowing PATH usage.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   525
ifdef ALT_DEVTOOLS_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   526
  xALT_DEVTOOLS_PATH  :="$(subst \,/,$(ALT_DEVTOOLS_PATH))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   527
  fxALT_DEVTOOLS_PATH :=$(call FullPath,$(xALT_DEVTOOLS_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   528
  DEVTOOLS_PATH       :=$(call PrefixPath,$(fxALT_DEVTOOLS_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   529
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   530
  ifdef USING_CYGWIN
90ce3da70b43 Initial load
duke
parents:
diff changeset
   531
    DEVTOOLS_PATH :=$(UNIXCOMMAND_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   532
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   533
    xDEVTOOLS_PATH  :="$(_system_drive)/utils"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   534
    fxDEVTOOLS_PATH :=$(call FullPath,$(xDEVTOOLS_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   535
    DEVTOOLS_PATH  :=$(call PrefixPath,$(fxDEVTOOLS_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   536
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   537
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   538
DEVTOOLS_PATH:=$(call AltCheckSpaces,DEVTOOLS_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   539
90ce3da70b43 Initial load
duke
parents:
diff changeset
   540
# _BOOTDIR1: First choice for a Bootstrap JDK, previous released JDK.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   541
# _BOOTDIR2: Second choice
2806
27edf81ff967 6833444: _BOOTDIR1/_BOOTDIR2 on MS Windows should be consistent with other platforms
anthony
parents: 2624
diff changeset
   542
# The _BOOTDIR3 is defind optionally.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   543
ifndef ALT_BOOTDIR
90ce3da70b43 Initial load
duke
parents:
diff changeset
   544
  _BOOTDIR1  =$(_system_drive)/jdk$(PREVIOUS_JDK_VERSION)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   545
  _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
   546
  _BOOTDIR3  =$(SLASH_JAVA)/re/jdk/$(PREVIOUS_JDK_VERSION)/archive/fcs/binaries/$(PLATFORM)-$(ARCH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   547
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   548
2186
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   549
# 32 bit always needs 2 runtimes, 64 bit usually does too
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   550
2186
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   551
# 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
   552
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
   553
  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
   554
  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
   555
else
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   556
  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
   557
endif
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   558
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
   559
MSVCRT_DLL_PATH:=$(call AltCheckValue,MSVCRT_DLL_PATH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   560
2186
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   561
# 32bit always needs the MSVCRNN runtime, 64bit does when using VS2008
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   562
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
   563
  _NEEDS_MSVCRNN = true
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   564
else
7665
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 6309
diff changeset
   565
  ifeq ($(VS2010_EXISTS),true)
2186
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   566
    _NEEDS_MSVCRNN = true
5381
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   567
  else 
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   568
    ifneq ($(VS2008),)
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   569
      _NEEDS_MSVCRNN = true
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   570
    else
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   571
      _NEEDS_MSVCRNN = false
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   572
    endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   573
  endif
2186
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   574
endif
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   575
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   576
ifeq ($(_NEEDS_MSVCRNN), true)
1776
33e9405ab91b 6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents: 1247
diff changeset
   577
  # 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
   578
  ifdef ALT_MSVCRNN_DLL_PATH
33e9405ab91b 6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents: 1247
diff changeset
   579
    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
   580
    MSVCRNN_DLL_PATH      :=$(call FullPath,$(xALT_MSVCRNN_DLL_PATH))
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   581
  else
2186
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   582
    MSVCRNN_DLL_PATH :=$(_redist_sdk)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   583
  endif
1776
33e9405ab91b 6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents: 1247
diff changeset
   584
  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
   585
  MSVCRNN_DLL_PATH:=$(call AltCheckValue,MSVCRNN_DLL_PATH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   586
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   587
90ce3da70b43 Initial load
duke
parents:
diff changeset
   588
# DXSDK_PATH: path to Microsoft DirectX SDK Include and Lib
90ce3da70b43 Initial load
duke
parents:
diff changeset
   589
ifdef ALT_DXSDK_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   590
  xALT_DXSDK_PATH :="$(subst \,/,$(ALT_DXSDK_PATH))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   591
  DXSDK_PATH      :=$(call FullPath,$(xALT_DXSDK_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   592
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   593
  _DXSDK_PATH1 :=$(_dx_sdk_dir)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   594
  _DXSDK_PATH2 :=$(JDK_DEVTOOLS_DIR)/windows/dxsdk
90ce3da70b43 Initial load
duke
parents:
diff changeset
   595
  DXSDK_PATH  :=$(call DirExists,$(_DXSDK_PATH1),$(_DXSDK_PATH2),$(_dx_sdk_dir))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   596
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   597
DXSDK_PATH :=$(call AltCheckSpaces,DXSDK_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   598
DXSDK_PATH:=$(call AltCheckValue,DXSDK_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   599
90ce3da70b43 Initial load
duke
parents:
diff changeset
   600
# DXSDK_INCLUDE_PATH: path to Microsoft DirectX SDK Include
90ce3da70b43 Initial load
duke
parents:
diff changeset
   601
ifdef ALT_DXSDK_INCLUDE_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   602
  xALT_DXSDK_INCLUDE_PATH :="$(subst \,/,$(ALT_DXSDK_INCLUDE_PATH))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   603
  DXSDK_INCLUDE_PATH      :=$(call FullPath,$(xALT_DXSDK_INCLUDE_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   604
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   605
  DXSDK_INCLUDE_PATH =$(subst //,/,$(DXSDK_PATH)/Include)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   606
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   607
90ce3da70b43 Initial load
duke
parents:
diff changeset
   608
# DXSDK_LIB_PATH: path to Microsoft DirectX SDK Lib
90ce3da70b43 Initial load
duke
parents:
diff changeset
   609
ifdef ALT_DXSDK_LIB_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   610
  xALT_DXSDK_LIB_PATH :="$(subst \,/,$(ALT_DXSDK_LIB_PATH))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   611
  DXSDK_LIB_PATH      :=$(call FullPath,$(xALT_DXSDK_LIB_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   612
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   613
  ifeq ($(ARCH_DATA_MODEL), 64)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   614
    # 64bit libs are located in "Lib/x64" subdir
90ce3da70b43 Initial load
duke
parents:
diff changeset
   615
    DXSDK_LIB_PATH =$(subst //,/,$(DXSDK_PATH)/Lib/x64)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   616
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   617
    DXSDK_LIB_PATH =$(subst //,/,$(DXSDK_PATH)/Lib)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   618
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   619
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   620
90ce3da70b43 Initial load
duke
parents:
diff changeset
   621
# DEPLOY_MSSDK: Microsoft SDK for this platform (for deploy)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   622
ifdef ALT_DEPLOY_MSSDK
90ce3da70b43 Initial load
duke
parents:
diff changeset
   623
  xALT_DEPLOY_MSSDK :="$(subst \,/,$(ALT_DEPLOY_MSSDK))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   624
  DEPLOY_MSSDK      :=$(call FullPath,$(xALT_DEPLOY_MSSDK))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   625
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   626
  DEPLOY_MSSDK      :=$(_ms_sdk)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   627
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   628
DEPLOY_MSSDK:=$(call AltCheckSpaces,DEPLOY_MSSDK)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   629
90ce3da70b43 Initial load
duke
parents:
diff changeset
   630
# INSTALL_MSSDK: Microsoft Installer SDK for this platform (for install)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   631
ifdef ALT_INSTALL_MSSDK
90ce3da70b43 Initial load
duke
parents:
diff changeset
   632
  xALT_INSTALL_MSSDK :="$(subst \,/,$(ALT_INSTALL_MSSDK))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   633
  INSTALL_MSSDK      :=$(call FullPath,$(xALT_INSTALL_MSSDK))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   634
else
3111
fefdeafb7ab9 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 2624
diff changeset
   635
  INSTALL_MSSDK      :=$(_ms_sdk)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   636
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   637
INSTALL_MSSDK:=$(call AltCheckSpaces,INSTALL_MSSDK)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   638
90ce3da70b43 Initial load
duke
parents:
diff changeset
   639
# INSTALL_MSIVAL2: Installation of MsiVal2 for this platform (for install)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   640
ifdef ALT_INSTALL_MSIVAL2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   641
  xALT_INSTALL_MSIVAL2 :="$(subst \,/,$(ALT_INSTALL_MSIVAL2))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   642
  INSTALL_MSIVAL2      :=$(call FullPath,$(xALT_INSTALL_MSIVAL2))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   643
else
2186
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   644
  INSTALL_MSIVAL2      :=$(_program_files32)/MsiVal2
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   645
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   646
INSTALL_MSIVAL2:=$(call AltCheckSpaces,INSTALL_MSIVAL2)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   647
90ce3da70b43 Initial load
duke
parents:
diff changeset
   648
# WSCRIPT: path to wscript.exe (used in creating install bundles)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   649
ifdef ALT_WSCRIPT
90ce3da70b43 Initial load
duke
parents:
diff changeset
   650
  xALT_WSCRIPT :="$(subst \,/,$(ALT_WSCRIPT))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   651
  WSCRIPT  =$(xALT_WSCRIPT)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   652
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   653
  _WSCRIPT1 :=$(_system_root)/system32/wscript.exe
90ce3da70b43 Initial load
duke
parents:
diff changeset
   654
  _WSCRIPT2 :=$(DEVTOOLS_PATH)wscript.exe
90ce3da70b43 Initial load
duke
parents:
diff changeset
   655
  WSCRIPT  :=$(call FileExists,$(_WSCRIPT1),$(_WSCRIPT2))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   656
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   657
WSCRIPT:=$(call AltCheckSpaces,WSCRIPT)
1025
a9ba5ea0f1f7 6614210: JPRT Windows 32bit msival2 build failure when building 'install' workspace
ksrini
parents: 2
diff changeset
   658
# 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
   659
WSCRIPT += -B
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   660
90ce3da70b43 Initial load
duke
parents:
diff changeset
   661
# CSCRIPT: path to cscript.exe (used in creating install bundles)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   662
ifdef ALT_CSCRIPT
90ce3da70b43 Initial load
duke
parents:
diff changeset
   663
  xALT_CSCRIPT :="$(subst \,/,$(ALT_CSCRIPT))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   664
  CSCRIPT  =$(xALT_CSCRIPT)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   665
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   666
  _CSCRIPT1 :=$(_system_root)/system32/cscript.exe
90ce3da70b43 Initial load
duke
parents:
diff changeset
   667
  _CSCRIPT2 :=$(DEVTOOLS_PATH)cscript.exe
90ce3da70b43 Initial load
duke
parents:
diff changeset
   668
  CSCRIPT  :=$(call FileExists,$(_CSCRIPT1),$(_CSCRIPT2))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   669
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   670
CSCRIPT:=$(call AltCheckSpaces,CSCRIPT)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   671
5381
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   672
# 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
   673
ifdef ALT_CABARC
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   674
  xALT_CABARC :="$(subst \,/,$(ALT_CABARC))"
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   675
  CABARC  =$(xALT_CABARC)
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   676
else
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   677
  _CABARC1 :=$(_system_root)/system32/cabarc.exe
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   678
  _CABARC2 :=$(DEVTOOLS_PATH)cabarc.exe
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   679
  CABARC  :=$(call FileExists,$(_CABARC1),$(_CABARC2))
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   680
endif
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   681
CABARC:=$(call AltCheckSpaces,CABARC)
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3288
diff changeset
   682
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   683
# MSIVAL2: path to msival2.exe (used in validating install msi files)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   684
ifdef ALT_MSIVAL2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   685
  xALT_MSIVAL2 :="$(subst \,/,$(ALT_MSIVAL2))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   686
  MSIVAL2  =$(xALT_MSIVAL2)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   687
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   688
  _MSIVAL2_1 :=$(INSTALL_MSIVAL2)/msival2.exe
90ce3da70b43 Initial load
duke
parents:
diff changeset
   689
  _MSIVAL2_2 :=$(DEVTOOLS_PATH)msival2.exe
90ce3da70b43 Initial load
duke
parents:
diff changeset
   690
  MSIVAL2    :=$(call FileExists,$(_MSIVAL2_1),$(_MSIVAL2_2))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   691
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   692
MSIVAL2:=$(call AltCheckSpaces,MSIVAL2)
1025
a9ba5ea0f1f7 6614210: JPRT Windows 32bit msival2 build failure when building 'install' workspace
ksrini
parents: 2
diff changeset
   693
# 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
   694
ifdef SKIP_MSIVAL2
5b394a4b6ce1 6755943: Java JAR Pack200 Decompression should enforce stricter header checks
ksrini
parents: 2
diff changeset
   695
  MSIVAL2    := $(ECHO)
5b394a4b6ce1 6755943: Java JAR Pack200 Decompression should enforce stricter header checks
ksrini
parents: 2
diff changeset
   696
endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   697
90ce3da70b43 Initial load
duke
parents:
diff changeset
   698
# LOGOCUB: path to cub file for (used in validating install msi files)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   699
ifdef ALT_LOGOCUB
90ce3da70b43 Initial load
duke
parents:
diff changeset
   700
  xALT_LOGOCUB :="$(subst \,/,$(ALT_LOGOCUB))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   701
  LOGOCUB  =$(xALT_LOGOCUB)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   702
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   703
  _LOGOCUB1 :=$(INSTALL_MSIVAL2)/logo.cub
90ce3da70b43 Initial load
duke
parents:
diff changeset
   704
  _LOGOCUB2 :=$(DEVTOOLS_PATH)logo.cub
90ce3da70b43 Initial load
duke
parents:
diff changeset
   705
  LOGOCUB   :=$(call FileExists,$(_LOGOCUB1),$(_LOGOCUB2))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   706
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   707
LOGOCUB:=$(call AltCheckSpaces,LOGOCUB)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   708
90ce3da70b43 Initial load
duke
parents:
diff changeset
   709
# MSITRAN: path to msitran.exe (used in creating install bundles and sponsors)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   710
ifdef ALT_MSITRAN
90ce3da70b43 Initial load
duke
parents:
diff changeset
   711
  xALT_MSITRAN :="$(subst \,/,$(ALT_MSITRAN))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   712
  MSITRAN  =$(xALT_MSITRAN)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   713
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   714
  _MSITRAN1 :=$(INSTALL_MSSDK)/Bin/msitran.exe
90ce3da70b43 Initial load
duke
parents:
diff changeset
   715
  _MSITRAN2 :=$(DEVTOOLS_PATH)msitran.exe
90ce3da70b43 Initial load
duke
parents:
diff changeset
   716
  MSITRAN   :=$(call FileExists,$(_MSITRAN1),$(_MSITRAN2))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   717
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   718
MSITRAN:=$(call AltCheckSpaces,MSITRAN)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   719
90ce3da70b43 Initial load
duke
parents:
diff changeset
   720
# MSICERT: path to msicert.exe (used in creating install bundles)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   721
ifdef ALT_MSICERT
90ce3da70b43 Initial load
duke
parents:
diff changeset
   722
  xALT_MSICERT :="$(subst \,/,$(ALT_MSICERT))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   723
  MSICERT  =$(xALT_MSICERT)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   724
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   725
  _MSICERT1 :=$(INSTALL_MSSDK)/Bin/msicert.exe
90ce3da70b43 Initial load
duke
parents:
diff changeset
   726
  _MSICERT2 :=$(DEVTOOLS_PATH)msicert.exe
90ce3da70b43 Initial load
duke
parents:
diff changeset
   727
  MSICERT   :=$(call FileExists,$(_MSICERT1),$(_MSICERT2))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   728
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   729
MSICERT:=$(call AltCheckSpaces,MSICERT)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   730
90ce3da70b43 Initial load
duke
parents:
diff changeset
   731
# Import JDK images allow for partial builds, components not built are
90ce3da70b43 Initial load
duke
parents:
diff changeset
   732
#    imported (or copied from) these import areas when needed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   733
90ce3da70b43 Initial load
duke
parents:
diff changeset
   734
# BUILD_JDK_IMPORT_PATH: location of JDK install trees to import for
90ce3da70b43 Initial load
duke
parents:
diff changeset
   735
#   multiple platforms, e.g. windows-i586, solaris-sparc, linux-586, etc.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   736
ifdef ALT_BUILD_JDK_IMPORT_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   737
  BUILD_JDK_IMPORT_PATH  :=$(call FullPath,$(ALT_BUILD_JDK_IMPORT_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   738
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   739
  BUILD_JDK_IMPORT_PATH   = $(PROMOTED_BUILD_BINARIES)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   740
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   741
BUILD_JDK_IMPORT_PATH:=$(call AltCheckSpaces,BUILD_JDK_IMPORT_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   742
BUILD_JDK_IMPORT_PATH:=$(call AltCheckValue,BUILD_JDK_IMPORT_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   743
90ce3da70b43 Initial load
duke
parents:
diff changeset
   744
# JDK_IMPORT_PATH: location of previously built JDK (this version) to import
90ce3da70b43 Initial load
duke
parents:
diff changeset
   745
ifdef ALT_JDK_IMPORT_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   746
  JDK_IMPORT_PATH  :=$(call FullPath,$(ALT_JDK_IMPORT_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   747
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   748
  JDK_IMPORT_PATH   = $(BUILD_JDK_IMPORT_PATH)/$(PLATFORM)-$(ARCH)$(_JDK_IMPORT_VARIANT)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   749
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   750
JDK_IMPORT_PATH:=$(call AltCheckSpaces,JDK_IMPORT_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   751
JDK_IMPORT_PATH:=$(call AltCheckValue,JDK_IMPORT_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   752
90ce3da70b43 Initial load
duke
parents:
diff changeset
   753
# HOTSPOT_IMPORT_PATH: location of hotspot pre-built files
90ce3da70b43 Initial load
duke
parents:
diff changeset
   754
ifdef ALT_HOTSPOT_IMPORT_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   755
  HOTSPOT_IMPORT_PATH :=$(call FullPath,$(ALT_HOTSPOT_IMPORT_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   756
else
3116
244619fd110e 6633813: Add standard hotspot import path for Kernel VM
herrick
parents: 3114
diff changeset
   757
  # Default locations include the current $OUTPUTDIR, RE Promotions,
244619fd110e 6633813: Add standard hotspot import path for Kernel VM
herrick
parents: 3114
diff changeset
   758
  # 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
   759
  _HOTSPOT_IMPORT_PATH1 = $(OUTPUTDIR)/hotspot/import
244619fd110e 6633813: Add standard hotspot import path for Kernel VM
herrick
parents: 3114
diff changeset
   760
  _HOTSPOT_IMPORT_PATH2 = $(PROMOTED_BUILD_DISTDIR)/hotspot/import
244619fd110e 6633813: Add standard hotspot import path for Kernel VM
herrick
parents: 3114
diff changeset
   761
  _HOTSPOT_IMPORT_PATH3 = $(JDK_IMPORT_PATH)
244619fd110e 6633813: Add standard hotspot import path for Kernel VM
herrick
parents: 3114
diff changeset
   762
   HOTSPOT_IMPORT_PATH := $(call DirExists,$(_HOTSPOT_IMPORT_PATH1),$(_HOTSPOT_IMPORT_PATH2),$(_HOTSPOT_IMPORT_PATH3))
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   763
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   764
HOTSPOT_IMPORT_PATH:=$(call AltCheckSpaces,HOTSPOT_IMPORT_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   765
HOTSPOT_IMPORT_PATH:=$(call AltCheckValue,HOTSPOT_IMPORT_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   766
90ce3da70b43 Initial load
duke
parents:
diff changeset
   767
# HOTSPOT_CLIENT_PATH: location of client jvm library file.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   768
ifeq ($(ARCH_DATA_MODEL), 32)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   769
  ifdef ALT_HOTSPOT_CLIENT_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   770
    HOTSPOT_CLIENT_PATH :=$(call FullPath,$(ALT_HOTSPOT_CLIENT_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   771
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   772
    HOTSPOT_CLIENT_PATH   =$(HOTSPOT_IMPORT_PATH)/$(ARCH_VM_SUBDIR)/client
90ce3da70b43 Initial load
duke
parents:
diff changeset
   773
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   774
  HOTSPOT_CLIENT_PATH:=$(call AltCheckSpaces,HOTSPOT_CLIENT_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   775
  HOTSPOT_CLIENT_PATH:=$(call AltCheckValue,HOTSPOT_CLIENT_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   776
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   777
90ce3da70b43 Initial load
duke
parents:
diff changeset
   778
# HOTSPOT_SERVER_PATH: location of server jvm library file.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   779
ifdef ALT_HOTSPOT_SERVER_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   780
  HOTSPOT_SERVER_PATH :=$(call FullPath,$(ALT_HOTSPOT_SERVER_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   781
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   782
  HOTSPOT_SERVER_PATH   =$(HOTSPOT_IMPORT_PATH)/$(ARCH_VM_SUBDIR)/server
90ce3da70b43 Initial load
duke
parents:
diff changeset
   783
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   784
HOTSPOT_SERVER_PATH:=$(call AltCheckSpaces,HOTSPOT_SERVER_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   785
HOTSPOT_SERVER_PATH:=$(call AltCheckValue,HOTSPOT_SERVER_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   786
90ce3da70b43 Initial load
duke
parents:
diff changeset
   787
# HOTSPOT_LIB_PATH: location of jvm.lib file.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   788
ifdef ALT_HOTSPOT_LIB_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   789
  xALT_HOTSPOT_LIB_PATH :="$(subst \,/,$(ALT_HOTSPOT_LIB_PATH))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   790
  HOTSPOT_LIB_PATH      :=$(call FullPath,$(xALT_HOTSPOT_LIB_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   791
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   792
  HOTSPOT_LIB_PATH  =$(HOTSPOT_IMPORT_PATH)/lib
90ce3da70b43 Initial load
duke
parents:
diff changeset
   793
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   794
HOTSPOT_LIB_PATH:=$(call AltCheckSpaces,HOTSPOT_LIB_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   795
HOTSPOT_LIB_PATH:=$(call AltCheckValue,HOTSPOT_LIB_PATH)