hotspot/make/windows/create.bat
author erikj
Thu, 14 Apr 2016 15:13:42 +0200
changeset 37299 db3b0d4c3bda
parent 35183 30271b37bd14
permissions -rw-r--r--
8149777: Enable enhanced failure handler for "make test" Reviewed-by: ihse
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     1
@echo off
489c9b5090e2 Initial load
duke
parents:
diff changeset
     2
REM
35183
30271b37bd14 8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents: 25052
diff changeset
     3
REM Copyright (c) 1999, 2015, Oracle and/or its affiliates. All rights reserved.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     4
REM DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     5
REM
489c9b5090e2 Initial load
duke
parents:
diff changeset
     6
REM This code is free software; you can redistribute it and/or modify it
489c9b5090e2 Initial load
duke
parents:
diff changeset
     7
REM under the terms of the GNU General Public License version 2 only, as
489c9b5090e2 Initial load
duke
parents:
diff changeset
     8
REM published by the Free Software Foundation.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     9
REM
489c9b5090e2 Initial load
duke
parents:
diff changeset
    10
REM This code is distributed in the hope that it will be useful, but WITHOUT
489c9b5090e2 Initial load
duke
parents:
diff changeset
    11
REM ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
489c9b5090e2 Initial load
duke
parents:
diff changeset
    12
REM FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
489c9b5090e2 Initial load
duke
parents:
diff changeset
    13
REM version 2 for more details (a copy is included in the LICENSE file that
489c9b5090e2 Initial load
duke
parents:
diff changeset
    14
REM accompanied this code).
489c9b5090e2 Initial load
duke
parents:
diff changeset
    15
REM
489c9b5090e2 Initial load
duke
parents:
diff changeset
    16
REM You should have received a copy of the GNU General Public License version
489c9b5090e2 Initial load
duke
parents:
diff changeset
    17
REM 2 along with this work; if not, write to the Free Software Foundation,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    18
REM Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    19
REM
5547
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 5093
diff changeset
    20
REM Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 5093
diff changeset
    21
REM or visit www.oracle.com if you need additional information or have any
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 5093
diff changeset
    22
REM questions.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    23
REM  
489c9b5090e2 Initial load
duke
parents:
diff changeset
    24
REM
489c9b5090e2 Initial load
duke
parents:
diff changeset
    25
489c9b5090e2 Initial load
duke
parents:
diff changeset
    26
REM This is the interactive build setup script (as opposed to the batch
489c9b5090e2 Initial load
duke
parents:
diff changeset
    27
REM build execution script). It creates $HotSpotBuildSpace if necessary,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    28
REM copies the appropriate files out of $HotSpotWorkSpace into it, and
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    29
REM builds and runs ProjectCreator in it. This has the side-effect of creating
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    30
REM the vm.vcproj file in the buildspace, which is then used in Visual C++.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    31
489c9b5090e2 Initial load
duke
parents:
diff changeset
    32
REM
489c9b5090e2 Initial load
duke
parents:
diff changeset
    33
REM Since we don't have uname and we could be cross-compiling,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    34
REM Use the compiler to determine which ARCH we are building
489c9b5090e2 Initial load
duke
parents:
diff changeset
    35
REM 
5093
5fe28adc52ef 6938185: 3/4 6923488 breaks Windows command shell builds
dcubed
parents: 3261
diff changeset
    36
REM Note: Running this batch file from the Windows command shell requires
5fe28adc52ef 6938185: 3/4 6923488 breaks Windows command shell builds
dcubed
parents: 3261
diff changeset
    37
REM that "grep" be accessible on the PATH. An MKS install does this.
5fe28adc52ef 6938185: 3/4 6923488 breaks Windows command shell builds
dcubed
parents: 3261
diff changeset
    38
REM 
7452
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
    39
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
    40
cl 2>NUL >NUL
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
    41
if %errorlevel% == 0 goto nexttest
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
    42
echo Make sure cl.exe is in your PATH before running this script.
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
    43
goto end
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
    44
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
    45
:nexttest
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
    46
grep -V 2>NUL >NUL
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
    47
if %errorlevel% == 0 goto testit
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
    48
echo Make sure grep.exe is in your PATH before running this script. Either cygwin or MKS should work.
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
    49
goto end
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
    50
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
    51
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
    52
:testit
8303
81a0b8663748 7017824: Add support for creating 64-bit Visual Studio projects
sla
parents: 7452
diff changeset
    53
cl 2>&1 | grep "x64" >NUL
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    54
if %errorlevel% == 0 goto amd64
489c9b5090e2 Initial load
duke
parents:
diff changeset
    55
set ARCH=x86
489c9b5090e2 Initial load
duke
parents:
diff changeset
    56
set BUILDARCH=i486
489c9b5090e2 Initial load
duke
parents:
diff changeset
    57
set Platform_arch=x86
489c9b5090e2 Initial load
duke
parents:
diff changeset
    58
set Platform_arch_model=x86_32
7452
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
    59
goto done
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    60
:amd64
489c9b5090e2 Initial load
duke
parents:
diff changeset
    61
set ARCH=x86
489c9b5090e2 Initial load
duke
parents:
diff changeset
    62
set BUILDARCH=amd64
489c9b5090e2 Initial load
duke
parents:
diff changeset
    63
set Platform_arch=x86
489c9b5090e2 Initial load
duke
parents:
diff changeset
    64
set Platform_arch_model=x86_64
7452
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
    65
:done
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    66
489c9b5090e2 Initial load
duke
parents:
diff changeset
    67
setlocal
489c9b5090e2 Initial load
duke
parents:
diff changeset
    68
489c9b5090e2 Initial load
duke
parents:
diff changeset
    69
if "%1" == "" goto usage
489c9b5090e2 Initial load
duke
parents:
diff changeset
    70
7452
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
    71
if not "%2" == "" goto usage
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    72
7452
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
    73
REM Set HotSpotWorkSpace to the directy two steps above this script
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
    74
for %%i in ("%~dp0..") do ( set HotSpotWorkSpace=%%~dpi)
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
    75
set HotSpotBuildRoot=%HotSpotWorkSpace%build
8303
81a0b8663748 7017824: Add support for creating 64-bit Visual Studio projects
sla
parents: 7452
diff changeset
    76
set HotSpotBuildSpace=%HotSpotBuildRoot%\vs-%BUILDARCH%
7452
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
    77
set HotSpotJDKDist=%1
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
    78
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    79
489c9b5090e2 Initial load
duke
parents:
diff changeset
    80
REM figure out MSC version
338
5cf9f61d76f4 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 1
diff changeset
    81
for /F %%i in ('sh %HotSpotWorkSpace%/make/windows/get_msc_ver.sh') do set %%i
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    82
489c9b5090e2 Initial load
duke
parents:
diff changeset
    83
echo **************************************************************
19687
30bef3e4f058 8020622: create.bat on Windows failed to create project file for Visual Studio 2012
iklam
parents: 19270
diff changeset
    84
echo MSC_VER = "%MSC_VER%" 
8860
98a7ff20acf0 7031571: Generate native VS2010 project files
sla
parents: 8303
diff changeset
    85
set ProjectFile=%HotSpotBuildSpace%\jvm.vcxproj
98a7ff20acf0 7031571: Generate native VS2010 project files
sla
parents: 8303
diff changeset
    86
echo %ProjectFile%
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    87
echo **************************************************************
489c9b5090e2 Initial load
duke
parents:
diff changeset
    88
489c9b5090e2 Initial load
duke
parents:
diff changeset
    89
REM Test all variables to see whether the directories they
489c9b5090e2 Initial load
duke
parents:
diff changeset
    90
REM reference exist
489c9b5090e2 Initial load
duke
parents:
diff changeset
    91
489c9b5090e2 Initial load
duke
parents:
diff changeset
    92
if exist %HotSpotWorkSpace% goto test1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    93
489c9b5090e2 Initial load
duke
parents:
diff changeset
    94
echo Error: directory pointed to by HotSpotWorkSpace
489c9b5090e2 Initial load
duke
parents:
diff changeset
    95
echo does not exist, or the variable is not set.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    96
echo.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    97
goto usage
489c9b5090e2 Initial load
duke
parents:
diff changeset
    98
489c9b5090e2 Initial load
duke
parents:
diff changeset
    99
:test1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   100
if exist %HotSpotBuildSpace% goto test2
489c9b5090e2 Initial load
duke
parents:
diff changeset
   101
if not "%HotSpotBuildSpace%" == "" mkdir %HotSpotBuildSpace%
489c9b5090e2 Initial load
duke
parents:
diff changeset
   102
if exist %HotSpotBuildSpace% goto test2
489c9b5090e2 Initial load
duke
parents:
diff changeset
   103
echo Error: directory pointed to by HotSpotBuildSpace
489c9b5090e2 Initial load
duke
parents:
diff changeset
   104
echo does not exist, or the variable is not set.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   105
echo.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   106
goto usage
489c9b5090e2 Initial load
duke
parents:
diff changeset
   107
489c9b5090e2 Initial load
duke
parents:
diff changeset
   108
:test2
489c9b5090e2 Initial load
duke
parents:
diff changeset
   109
if exist %HotSpotJDKDist% goto test3
489c9b5090e2 Initial load
duke
parents:
diff changeset
   110
echo Error: directory pointed to by %HotSpotJDKDist%
489c9b5090e2 Initial load
duke
parents:
diff changeset
   111
echo does not exist, or the variable is not set.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   112
echo.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   113
goto usage
489c9b5090e2 Initial load
duke
parents:
diff changeset
   114
489c9b5090e2 Initial load
duke
parents:
diff changeset
   115
:test3
489c9b5090e2 Initial load
duke
parents:
diff changeset
   116
if not "%HOTSPOTMKSHOME%" == "" goto makedir
7452
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
   117
if exist c:\cygwin\bin set HOTSPOTMKSHOME=c:\cygwin\bin
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
   118
if not "%HOTSPOTMKSHOME%" == "" goto makedir
35183
30271b37bd14 8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents: 25052
diff changeset
   119
if exist c:\cygwin64\bin set HOTSPOTMKSHOME=c:\cygwin64\bin
30271b37bd14 8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents: 25052
diff changeset
   120
if not "%HOTSPOTMKSHOME%" == "" goto makedir
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   121
echo Warning: please set variable HOTSPOTMKSHOME to place where 
489c9b5090e2 Initial load
duke
parents:
diff changeset
   122
echo          your MKS/Cygwin installation is
489c9b5090e2 Initial load
duke
parents:
diff changeset
   123
echo.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   124
goto usage
489c9b5090e2 Initial load
duke
parents:
diff changeset
   125
35183
30271b37bd14 8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents: 25052
diff changeset
   126
:generatefiles
30271b37bd14 8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents: 25052
diff changeset
   127
if NOT EXIST %HotSpotBuildSpace%\%1\generated mkdir %HotSpotBuildSpace%\%1\generated
30271b37bd14 8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents: 25052
diff changeset
   128
copy %HotSpotWorkSpace%\make\windows\projectfiles\%1\* %HotSpotBuildSpace%\%1\generated > NUL
30271b37bd14 8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents: 25052
diff changeset
   129
30271b37bd14 8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents: 25052
diff changeset
   130
REM force regneration of ProjectFile
30271b37bd14 8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents: 25052
diff changeset
   131
if exist %ProjectFile% del %ProjectFile%
30271b37bd14 8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents: 25052
diff changeset
   132
30271b37bd14 8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents: 25052
diff changeset
   133
echo -- %1 --
30271b37bd14 8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents: 25052
diff changeset
   134
echo # Generated file!                                                        >    %HotSpotBuildSpace%\%1\local.make
30271b37bd14 8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents: 25052
diff changeset
   135
echo # Changing a variable below and then deleting %ProjectFile% will cause  >>    %HotSpotBuildSpace%\%1\local.make
30271b37bd14 8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents: 25052
diff changeset
   136
echo # %ProjectFile% to be regenerated with the new values.  Changing the    >>    %HotSpotBuildSpace%\%1\local.make
30271b37bd14 8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents: 25052
diff changeset
   137
echo # version requires rerunning create.bat.                                >>    %HotSpotBuildSpace%\%1\local.make
30271b37bd14 8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents: 25052
diff changeset
   138
echo.                                      >>    %HotSpotBuildSpace%\%1\local.make
30271b37bd14 8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents: 25052
diff changeset
   139
echo Variant=%1			           >>    %HotSpotBuildSpace%\%1\local.make
30271b37bd14 8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents: 25052
diff changeset
   140
echo WorkSpace=%HotSpotWorkSpace%   	   >>    %HotSpotBuildSpace%\%1\local.make
30271b37bd14 8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents: 25052
diff changeset
   141
echo HOTSPOTWORKSPACE=%HotSpotWorkSpace%   >>    %HotSpotBuildSpace%\%1\local.make
30271b37bd14 8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents: 25052
diff changeset
   142
echo HOTSPOTBUILDROOT=%HotSpotBuildRoot%   >>    %HotSpotBuildSpace%\%1\local.make
30271b37bd14 8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents: 25052
diff changeset
   143
echo HOTSPOTBUILDSPACE=%HotSpotBuildSpace% >>    %HotSpotBuildSpace%\%1\local.make
30271b37bd14 8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents: 25052
diff changeset
   144
echo HOTSPOTJDKDIST=%HotSpotJDKDist%       >>    %HotSpotBuildSpace%\%1\local.make
30271b37bd14 8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents: 25052
diff changeset
   145
echo ARCH=%ARCH%                           >>    %HotSpotBuildSpace%\%1\local.make
30271b37bd14 8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents: 25052
diff changeset
   146
echo BUILDARCH=%BUILDARCH%                 >>    %HotSpotBuildSpace%\%1\local.make
30271b37bd14 8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents: 25052
diff changeset
   147
echo Platform_arch=%Platform_arch%         >>    %HotSpotBuildSpace%\%1\local.make
30271b37bd14 8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents: 25052
diff changeset
   148
echo Platform_arch_model=%Platform_arch_model% >>    %HotSpotBuildSpace%\%1\local.make
30271b37bd14 8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents: 25052
diff changeset
   149
echo MSC_VER=%MSC_VER% 			   >>    %HotSpotBuildSpace%\%1\local.make
30271b37bd14 8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents: 25052
diff changeset
   150
30271b37bd14 8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents: 25052
diff changeset
   151
for /D %%j in (debug, fastdebug, product) do (
30271b37bd14 8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents: 25052
diff changeset
   152
  if NOT EXIST %HotSpotBuildSpace%\%1\%%j mkdir %HotSpotBuildSpace%\%1\%%j
30271b37bd14 8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents: 25052
diff changeset
   153
)
30271b37bd14 8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents: 25052
diff changeset
   154
30271b37bd14 8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents: 25052
diff changeset
   155
pushd %HotSpotBuildSpace%\%1\generated
30271b37bd14 8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents: 25052
diff changeset
   156
nmake /nologo
30271b37bd14 8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents: 25052
diff changeset
   157
popd
30271b37bd14 8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents: 25052
diff changeset
   158
30271b37bd14 8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents: 25052
diff changeset
   159
goto :eof
30271b37bd14 8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents: 25052
diff changeset
   160
30271b37bd14 8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents: 25052
diff changeset
   161
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   162
:makedir
489c9b5090e2 Initial load
duke
parents:
diff changeset
   163
echo NOTE: Using the following settings:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   164
echo   HotSpotWorkSpace=%HotSpotWorkSpace%
489c9b5090e2 Initial load
duke
parents:
diff changeset
   165
echo   HotSpotBuildSpace=%HotSpotBuildSpace%
489c9b5090e2 Initial load
duke
parents:
diff changeset
   166
echo   HotSpotJDKDist=%HotSpotJDKDist%
489c9b5090e2 Initial load
duke
parents:
diff changeset
   167
35183
30271b37bd14 8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents: 25052
diff changeset
   168
echo COPYFILES %BUILDARCH%
30271b37bd14 8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents: 25052
diff changeset
   169
call :generatefiles compiler1
30271b37bd14 8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents: 25052
diff changeset
   170
call :generatefiles tiered
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   171
7452
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
   172
pushd %HotSpotBuildRoot%
35183
30271b37bd14 8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents: 25052
diff changeset
   173
REM It doesn't matter which variant we use here, "tiered" is as good as any of the others - we need the common variables
30271b37bd14 8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents: 25052
diff changeset
   174
nmake /nologo /F %HotSpotWorkSpace%/make/windows/projectfiles/common/Makefile LOCAL_MAKE=%HotSpotBuildSpace%\tiered\local.make %ProjectFile%
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
   175
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
   176
popd
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
   177
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   178
goto end
489c9b5090e2 Initial load
duke
parents:
diff changeset
   179
489c9b5090e2 Initial load
duke
parents:
diff changeset
   180
:usage
7452
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
   181
echo Usage: create HotSpotJDKDist
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   182
echo.
7452
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
   183
echo This is the VS build setup script (as opposed to the batch
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
   184
echo build execution script). It creates a build directory if necessary,
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
   185
echo copies the appropriate files out of the workspace into it, and
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
   186
echo builds and runs ProjectCreator in it. This has the side-effect of creating
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   187
echo the %ProjectFile% file in the build space, which is then used in Visual C++.
7452
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
   188
echo.
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
   189
echo The HotSpotJDKDist defines the JDK that should be used when running the JVM.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   190
echo Environment variable FORCE_MSC_VER allows to override MSVC version autodetection.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   191
echo.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   192
echo NOTE that it is now NOT safe to modify any of the files in the build
489c9b5090e2 Initial load
duke
parents:
diff changeset
   193
echo space, since they may be overwritten whenever this script is run or
489c9b5090e2 Initial load
duke
parents:
diff changeset
   194
echo nmake is run in that directory.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   195
489c9b5090e2 Initial load
duke
parents:
diff changeset
   196
:end
489c9b5090e2 Initial load
duke
parents:
diff changeset
   197
489c9b5090e2 Initial load
duke
parents:
diff changeset
   198
endlocal