Changeset 309 for trunk/openjdk/hotspot/make/windows/create.bat
- Timestamp:
- Feb 13, 2012, 10:07:12 PM (14 years ago)
- Location:
- trunk/openjdk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/openjdk
- Property svn:mergeinfo changed
/branches/vendor/oracle/openjdk6/b24 (added) merged: 308 /branches/vendor/oracle/openjdk6/current merged: 307
- Property svn:mergeinfo changed
-
trunk/openjdk/hotspot/make/windows/create.bat
r278 r309 1 1 @echo off 2 2 REM 3 REM Copyright (c) 1999, 20 09, Oracle and/or its affiliates. All rights reserved.3 REM Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. 4 4 REM DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 5 5 REM … … 27 27 REM build execution script). It creates $HotSpotBuildSpace if necessary, 28 28 REM copies the appropriate files out of $HotSpotWorkSpace into it, and 29 REM builds and runs MakeDepsin it. This has the side-effect of creating29 REM builds and runs ProjectCreator in it. This has the side-effect of creating 30 30 REM the vm.vcproj file in the buildspace, which is then used in Visual C++. 31 REM32 REM The generated project file depends upon the include databases. If33 REM those are changed then MakeDeps is rerun.34 31 35 32 REM … … 40 37 REM that "grep" be accessible on the PATH. An MKS install does this. 41 38 REM 39 40 cl 2>NUL >NUL 41 if %errorlevel% == 0 goto nexttest 42 echo Make sure cl.exe is in your PATH before running this script. 43 goto end 44 45 :nexttest 46 grep -V 2>NUL >NUL 47 if %errorlevel% == 0 goto testit 48 echo Make sure grep.exe is in your PATH before running this script. Either cygwin or MKS should work. 49 goto end 50 51 52 :testit 42 53 cl 2>&1 | grep "IA-64" >NUL 43 54 if %errorlevel% == 0 goto isia64 … … 48 59 set Platform_arch=x86 49 60 set Platform_arch_model=x86_32 50 goto end61 goto done 51 62 :amd64 52 63 set ARCH=x86 … … 54 65 set Platform_arch=x86 55 66 set Platform_arch_model=x86_64 56 goto end67 goto done 57 68 :isia64 58 69 set ARCH=ia64 … … 60 71 set Platform_arch=ia64 61 72 set Platform_arch_model=ia64 62 : end73 :done 63 74 64 75 setlocal … … 66 77 if "%1" == "" goto usage 67 78 68 if not "%4" == "" goto usage 69 70 set HotSpotWorkSpace=%1 71 set HotSpotBuildSpace=%2 72 set HotSpotJDKDist=%3 79 if not "%2" == "" goto usage 80 81 REM Set HotSpotWorkSpace to the directy two steps above this script 82 for %%i in ("%~dp0..") do ( set HotSpotWorkSpace=%%~dpi) 83 set HotSpotBuildRoot=%HotSpotWorkSpace%build 84 set HotSpotBuildSpace=%HotSpotBuildRoot%\vs 85 set HotSpotJDKDist=%1 86 73 87 74 88 REM figure out MSC version … … 76 90 77 91 echo ************************************************************** 78 set ProjectFile= vm.vcproj92 set ProjectFile=jvm.vcproj 79 93 if "%MSC_VER%" == "1200" ( 80 set ProjectFile= vm.dsp94 set ProjectFile=jvm.dsp 81 95 echo Will generate VC6 project {unsupported} 82 96 ) else ( … … 87 101 echo Will generate VC9 {Visual Studio 2008} 88 102 ) else ( 103 if "%MSC_VER%" == "1600" ( 104 echo Detected Visual Studio 2010, but 105 echo will generate VC9 {Visual Studio 2008} 106 echo Use conversion wizard in VS 2010. 107 ) else ( 89 108 echo Will generate VC7 project {Visual Studio 2003 .NET} 109 ) 90 110 ) 91 111 ) … … 122 142 :test3 123 143 if not "%HOTSPOTMKSHOME%" == "" goto makedir 144 if exist c:\cygwin\bin set HOTSPOTMKSHOME=c:\cygwin\bin 145 if not "%HOTSPOTMKSHOME%" == "" goto makedir 124 146 echo Warning: please set variable HOTSPOTMKSHOME to place where 125 147 echo your MKS/Cygwin installation is … … 137 159 :copyfiles 138 160 for /D %%i in (compiler1, compiler2, tiered, core, kernel) do ( 139 if NOT EXIST %HotSpotBuildSpace%\%%i mkdir %HotSpotBuildSpace%\%%i140 copy %HotSpotWorkSpace%\make\windows\projectfiles\%%i\* %HotSpotBuildSpace%\%%i\ > NUL161 if NOT EXIST %HotSpotBuildSpace%\%%i\generated mkdir %HotSpotBuildSpace%\%%i\generated 162 copy %HotSpotWorkSpace%\make\windows\projectfiles\%%i\* %HotSpotBuildSpace%\%%i\generated > NUL 141 163 ) 142 164 … … 145 167 146 168 for /D %%i in (compiler1, compiler2, tiered, core, kernel) do ( 147 148 echo # Generated file! > %HotSpotBuildSpace%\%%i\local.make169 echo -- %%i -- 170 echo # Generated file! > %HotSpotBuildSpace%\%%i\local.make 149 171 echo # Changing a variable below and then deleting %ProjectFile% will cause >> %HotSpotBuildSpace%\%%i\local.make 150 172 echo # %ProjectFile% to be regenerated with the new values. Changing the >> %HotSpotBuildSpace%\%%i\local.make 151 echo # version requires rerunning create.bat. >> %HotSpotBuildSpace%\%%i\local.make173 echo # version requires rerunning create.bat. >> %HotSpotBuildSpace%\%%i\local.make 152 174 echo. >> %HotSpotBuildSpace%\%%i\local.make 175 echo Variant=%%i >> %HotSpotBuildSpace%\%%i\local.make 176 echo WorkSpace=%HotSpotWorkSpace% >> %HotSpotBuildSpace%\%%i\local.make 153 177 echo HOTSPOTWORKSPACE=%HotSpotWorkSpace% >> %HotSpotBuildSpace%\%%i\local.make 178 echo HOTSPOTBUILDROOT=%HotSpotBuildRoot% >> %HotSpotBuildSpace%\%%i\local.make 154 179 echo HOTSPOTBUILDSPACE=%HotSpotBuildSpace% >> %HotSpotBuildSpace%\%%i\local.make 155 180 echo HOTSPOTJDKDIST=%HotSpotJDKDist% >> %HotSpotBuildSpace%\%%i\local.make … … 159 184 echo Platform_arch_model=%Platform_arch_model% >> %HotSpotBuildSpace%\%%i\local.make 160 185 161 REM build config specific stuff 162 163 pushd %HotSpotBuildSpace%\%%i 186 for /D %%j in (debug, fastdebug, product) do ( 187 if NOT EXIST %HotSpotBuildSpace%\%%i\%%j mkdir %HotSpotBuildSpace%\%%i\%%j 188 ) 189 190 pushd %HotSpotBuildSpace%\%%i\generated 164 191 nmake /nologo 165 192 popd 166 ) 193 194 ) 195 196 pushd %HotSpotBuildRoot% 197 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 199 nmake /nologo /F %HotSpotWorkSpace%/make/windows/projectfiles/common/Makefile LOCAL_MAKE=%HotSpotBuildSpace%\compiler1\local.make %HotSpotBuildRoot%/%ProjectFile% 200 201 popd 167 202 168 203 goto end 169 204 170 205 :usage 171 echo Usage: create HotSpot WorkSpace HotSpotBuildSpace HotSpotJDKDist172 echo. 173 echo This is the interactivebuild setup script (as opposed to the batch174 echo build execution script). It creates HotSpotBuildSpaceif necessary,175 echo copies the appropriate files out of HotSpotWorkSpace into it, and176 echo builds and runs MakeDepsin it. This has the side-effect of creating206 echo Usage: create HotSpotJDKDist 207 echo. 208 echo This is the VS build setup script (as opposed to the batch 209 echo build execution script). It creates a build directory if necessary, 210 echo copies the appropriate files out of the workspace into it, and 211 echo builds and runs ProjectCreator in it. This has the side-effect of creating 177 212 echo the %ProjectFile% file in the build space, which is then used in Visual C++. 178 echo The HotSpotJDKDist defines place where JVM binaries should be placed. 213 echo. 214 echo The HotSpotJDKDist defines the JDK that should be used when running the JVM. 179 215 echo Environment variable FORCE_MSC_VER allows to override MSVC version autodetection. 180 echo.181 echo The generated project file depends upon the include databases. If182 echo those are changed then MakeDeps is rerun.183 216 echo. 184 217 echo NOTE that it is now NOT safe to modify any of the files in the build
Note:
See TracChangeset
for help on using the changeset viewer.