hotspot/make/windows/create.bat
author cl
Wed, 23 Feb 2011 15:49:34 -0800
changeset 8287 4de608132976
parent 7452 b3fa838286de
child 8303 81a0b8663748
permissions -rw-r--r--
Merge
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
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
     3
REM Copyright (c) 1999, 2010, 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
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    53
cl 2>&1 | grep "IA-64" >NUL
489c9b5090e2 Initial load
duke
parents:
diff changeset
    54
if %errorlevel% == 0 goto isia64
489c9b5090e2 Initial load
duke
parents:
diff changeset
    55
cl 2>&1 | grep "AMD64" >NUL
489c9b5090e2 Initial load
duke
parents:
diff changeset
    56
if %errorlevel% == 0 goto amd64
489c9b5090e2 Initial load
duke
parents:
diff changeset
    57
set ARCH=x86
489c9b5090e2 Initial load
duke
parents:
diff changeset
    58
set BUILDARCH=i486
489c9b5090e2 Initial load
duke
parents:
diff changeset
    59
set Platform_arch=x86
489c9b5090e2 Initial load
duke
parents:
diff changeset
    60
set Platform_arch_model=x86_32
7452
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
    61
goto done
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    62
:amd64
489c9b5090e2 Initial load
duke
parents:
diff changeset
    63
set ARCH=x86
489c9b5090e2 Initial load
duke
parents:
diff changeset
    64
set BUILDARCH=amd64
489c9b5090e2 Initial load
duke
parents:
diff changeset
    65
set Platform_arch=x86
489c9b5090e2 Initial load
duke
parents:
diff changeset
    66
set Platform_arch_model=x86_64
7452
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
    67
goto done
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    68
:isia64
489c9b5090e2 Initial load
duke
parents:
diff changeset
    69
set ARCH=ia64
489c9b5090e2 Initial load
duke
parents:
diff changeset
    70
set BUILDARCH=ia64
489c9b5090e2 Initial load
duke
parents:
diff changeset
    71
set Platform_arch=ia64
489c9b5090e2 Initial load
duke
parents:
diff changeset
    72
set Platform_arch_model=ia64
7452
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
    73
:done
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    74
489c9b5090e2 Initial load
duke
parents:
diff changeset
    75
setlocal
489c9b5090e2 Initial load
duke
parents:
diff changeset
    76
489c9b5090e2 Initial load
duke
parents:
diff changeset
    77
if "%1" == "" goto usage
489c9b5090e2 Initial load
duke
parents:
diff changeset
    78
7452
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
    79
if not "%2" == "" goto usage
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    80
7452
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
    81
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
    82
for %%i in ("%~dp0..") do ( set HotSpotWorkSpace=%%~dpi)
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
    83
set HotSpotBuildRoot=%HotSpotWorkSpace%build
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
    84
set HotSpotBuildSpace=%HotSpotBuildRoot%\vs
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
    85
set HotSpotJDKDist=%1
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
    86
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    87
489c9b5090e2 Initial load
duke
parents:
diff changeset
    88
REM figure out MSC version
338
5cf9f61d76f4 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 1
diff changeset
    89
for /F %%i in ('sh %HotSpotWorkSpace%/make/windows/get_msc_ver.sh') do set %%i
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    90
489c9b5090e2 Initial load
duke
parents:
diff changeset
    91
echo **************************************************************
7452
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
    92
set ProjectFile=jvm.vcproj
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    93
if "%MSC_VER%" == "1200" (
7452
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
    94
set ProjectFile=jvm.dsp
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    95
echo Will generate VC6 project {unsupported}
489c9b5090e2 Initial load
duke
parents:
diff changeset
    96
) else (
2271
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 670
diff changeset
    97
if "%MSC_VER%" == "1400" (
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 670
diff changeset
    98
echo Will generate VC8 {Visual Studio 2005}
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 670
diff changeset
    99
) else (
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 670
diff changeset
   100
if "%MSC_VER%" == "1500" (
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 670
diff changeset
   101
echo Will generate VC9 {Visual Studio 2008}
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 670
diff changeset
   102
) else (
7452
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
   103
if "%MSC_VER%" == "1600" (
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
   104
echo Detected Visual Studio 2010, but
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
   105
echo will generate VC9 {Visual Studio 2008}
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
   106
echo Use conversion wizard in VS 2010.
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
   107
) else (
2271
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 670
diff changeset
   108
echo Will generate VC7 project {Visual Studio 2003 .NET}
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 670
diff changeset
   109
)
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 670
diff changeset
   110
)
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   111
)
7452
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
   112
)
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   113
echo                            %ProjectFile%
489c9b5090e2 Initial load
duke
parents:
diff changeset
   114
echo **************************************************************
489c9b5090e2 Initial load
duke
parents:
diff changeset
   115
489c9b5090e2 Initial load
duke
parents:
diff changeset
   116
REM Test all variables to see whether the directories they
489c9b5090e2 Initial load
duke
parents:
diff changeset
   117
REM reference exist
489c9b5090e2 Initial load
duke
parents:
diff changeset
   118
489c9b5090e2 Initial load
duke
parents:
diff changeset
   119
if exist %HotSpotWorkSpace% goto test1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   120
489c9b5090e2 Initial load
duke
parents:
diff changeset
   121
echo Error: directory pointed to by HotSpotWorkSpace
489c9b5090e2 Initial load
duke
parents:
diff changeset
   122
echo does not exist, or the variable is not set.
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
489c9b5090e2 Initial load
duke
parents:
diff changeset
   126
:test1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   127
if exist %HotSpotBuildSpace% goto test2
489c9b5090e2 Initial load
duke
parents:
diff changeset
   128
if not "%HotSpotBuildSpace%" == "" mkdir %HotSpotBuildSpace%
489c9b5090e2 Initial load
duke
parents:
diff changeset
   129
if exist %HotSpotBuildSpace% goto test2
489c9b5090e2 Initial load
duke
parents:
diff changeset
   130
echo Error: directory pointed to by HotSpotBuildSpace
489c9b5090e2 Initial load
duke
parents:
diff changeset
   131
echo does not exist, or the variable is not set.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   132
echo.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   133
goto usage
489c9b5090e2 Initial load
duke
parents:
diff changeset
   134
489c9b5090e2 Initial load
duke
parents:
diff changeset
   135
:test2
489c9b5090e2 Initial load
duke
parents:
diff changeset
   136
if exist %HotSpotJDKDist% goto test3
489c9b5090e2 Initial load
duke
parents:
diff changeset
   137
echo Error: directory pointed to by %HotSpotJDKDist%
489c9b5090e2 Initial load
duke
parents:
diff changeset
   138
echo does not exist, or the variable is not set.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   139
echo.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   140
goto usage
489c9b5090e2 Initial load
duke
parents:
diff changeset
   141
489c9b5090e2 Initial load
duke
parents:
diff changeset
   142
:test3
489c9b5090e2 Initial load
duke
parents:
diff changeset
   143
if not "%HOTSPOTMKSHOME%" == "" goto makedir
7452
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
   144
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
   145
if not "%HOTSPOTMKSHOME%" == "" goto makedir
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   146
echo Warning: please set variable HOTSPOTMKSHOME to place where 
489c9b5090e2 Initial load
duke
parents:
diff changeset
   147
echo          your MKS/Cygwin installation is
489c9b5090e2 Initial load
duke
parents:
diff changeset
   148
echo.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   149
goto usage
489c9b5090e2 Initial load
duke
parents:
diff changeset
   150
489c9b5090e2 Initial load
duke
parents:
diff changeset
   151
:makedir
489c9b5090e2 Initial load
duke
parents:
diff changeset
   152
echo NOTE: Using the following settings:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   153
echo   HotSpotWorkSpace=%HotSpotWorkSpace%
489c9b5090e2 Initial load
duke
parents:
diff changeset
   154
echo   HotSpotBuildSpace=%HotSpotBuildSpace%
489c9b5090e2 Initial load
duke
parents:
diff changeset
   155
echo   HotSpotJDKDist=%HotSpotJDKDist%
489c9b5090e2 Initial load
duke
parents:
diff changeset
   156
489c9b5090e2 Initial load
duke
parents:
diff changeset
   157
489c9b5090e2 Initial load
duke
parents:
diff changeset
   158
REM This is now safe to do.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   159
:copyfiles
489c9b5090e2 Initial load
duke
parents:
diff changeset
   160
for /D %%i in (compiler1, compiler2, tiered, core, kernel) do (
7452
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
   161
if NOT EXIST %HotSpotBuildSpace%\%%i\generated mkdir %HotSpotBuildSpace%\%%i\generated
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
   162
copy %HotSpotWorkSpace%\make\windows\projectfiles\%%i\* %HotSpotBuildSpace%\%%i\generated > NUL
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   163
)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   164
489c9b5090e2 Initial load
duke
parents:
diff changeset
   165
REM force regneration of ProjectFile
489c9b5090e2 Initial load
duke
parents:
diff changeset
   166
if exist %HotSpotBuildSpace%\%ProjectFile% del %HotSpotBuildSpace%\%ProjectFile%
489c9b5090e2 Initial load
duke
parents:
diff changeset
   167
489c9b5090e2 Initial load
duke
parents:
diff changeset
   168
for /D %%i in (compiler1, compiler2, tiered, core, kernel) do (
7452
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
   169
echo -- %%i --
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
   170
echo # Generated file!                                                        >    %HotSpotBuildSpace%\%%i\local.make
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   171
echo # Changing a variable below and then deleting %ProjectFile% will cause  >>    %HotSpotBuildSpace%\%%i\local.make
489c9b5090e2 Initial load
duke
parents:
diff changeset
   172
echo # %ProjectFile% to be regenerated with the new values.  Changing the    >>    %HotSpotBuildSpace%\%%i\local.make
7452
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
   173
echo # version requires rerunning create.bat.                                >>    %HotSpotBuildSpace%\%%i\local.make
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   174
echo.                                      >>    %HotSpotBuildSpace%\%%i\local.make
7452
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
   175
echo Variant=%%i			   >>    %HotSpotBuildSpace%\%%i\local.make
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
   176
echo WorkSpace=%HotSpotWorkSpace%   	   >>    %HotSpotBuildSpace%\%%i\local.make
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   177
echo HOTSPOTWORKSPACE=%HotSpotWorkSpace%   >>    %HotSpotBuildSpace%\%%i\local.make
7452
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
   178
echo HOTSPOTBUILDROOT=%HotSpotBuildRoot%   >>    %HotSpotBuildSpace%\%%i\local.make
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   179
echo HOTSPOTBUILDSPACE=%HotSpotBuildSpace% >>    %HotSpotBuildSpace%\%%i\local.make
489c9b5090e2 Initial load
duke
parents:
diff changeset
   180
echo HOTSPOTJDKDIST=%HotSpotJDKDist%       >>    %HotSpotBuildSpace%\%%i\local.make
489c9b5090e2 Initial load
duke
parents:
diff changeset
   181
echo ARCH=%ARCH%                           >>    %HotSpotBuildSpace%\%%i\local.make
489c9b5090e2 Initial load
duke
parents:
diff changeset
   182
echo BUILDARCH=%BUILDARCH%                 >>    %HotSpotBuildSpace%\%%i\local.make
489c9b5090e2 Initial load
duke
parents:
diff changeset
   183
echo Platform_arch=%Platform_arch%         >>    %HotSpotBuildSpace%\%%i\local.make
489c9b5090e2 Initial load
duke
parents:
diff changeset
   184
echo Platform_arch_model=%Platform_arch_model% >>    %HotSpotBuildSpace%\%%i\local.make
489c9b5090e2 Initial load
duke
parents:
diff changeset
   185
7452
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
   186
for /D %%j in (debug, fastdebug, product) do (
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
   187
if NOT EXIST %HotSpotBuildSpace%\%%i\%%j mkdir %HotSpotBuildSpace%\%%i\%%j
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
   188
)
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
   189
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
   190
pushd %HotSpotBuildSpace%\%%i\generated
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   191
nmake /nologo
489c9b5090e2 Initial load
duke
parents:
diff changeset
   192
popd
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
   193
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   194
)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   195
7452
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
   196
pushd %HotSpotBuildRoot%
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
   197
7452
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
   198
REM It doesn't matter which variant we use here, "compiler1" is as good as any of the others - we need the common variables
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
   199
nmake /nologo /F %HotSpotWorkSpace%/make/windows/projectfiles/common/Makefile LOCAL_MAKE=%HotSpotBuildSpace%\compiler1\local.make %HotSpotBuildRoot%/%ProjectFile%
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
   200
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
   201
popd
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
   202
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   203
goto end
489c9b5090e2 Initial load
duke
parents:
diff changeset
   204
489c9b5090e2 Initial load
duke
parents:
diff changeset
   205
:usage
7452
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
   206
echo Usage: create HotSpotJDKDist
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   207
echo.
7452
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
   208
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
   209
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
   210
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
   211
echo builds and runs ProjectCreator in it. This has the side-effect of creating
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   212
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
   213
echo.
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7397
diff changeset
   214
echo The HotSpotJDKDist defines the JDK that should be used when running the JVM.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   215
echo Environment variable FORCE_MSC_VER allows to override MSVC version autodetection.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   216
echo.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   217
echo NOTE that it is now NOT safe to modify any of the files in the build
489c9b5090e2 Initial load
duke
parents:
diff changeset
   218
echo space, since they may be overwritten whenever this script is run or
489c9b5090e2 Initial load
duke
parents:
diff changeset
   219
echo nmake is run in that directory.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   220
489c9b5090e2 Initial load
duke
parents:
diff changeset
   221
:end
489c9b5090e2 Initial load
duke
parents:
diff changeset
   222
489c9b5090e2 Initial load
duke
parents:
diff changeset
   223
endlocal