Ignore:
Timestamp:
Feb 13, 2012, 10:07:12 PM (14 years ago)
Author:
dmik
Message:

trunk: Merged in openjdk6 b24 from branches/vendor/oracle.

Location:
trunk/openjdk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/openjdk

  • trunk/openjdk/hotspot/make/windows/create.bat

    r278 r309  
    11@echo off
    22REM
    3 REM Copyright (c) 1999, 2009, Oracle and/or its affiliates. All rights reserved.
     3REM Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
    44REM DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    55REM
     
    2727REM build execution script). It creates $HotSpotBuildSpace if necessary,
    2828REM copies the appropriate files out of $HotSpotWorkSpace into it, and
    29 REM builds and runs MakeDeps in it. This has the side-effect of creating
     29REM builds and runs ProjectCreator in it. This has the side-effect of creating
    3030REM the vm.vcproj file in the buildspace, which is then used in Visual C++.
    31 REM
    32 REM The generated project file depends upon the include databases. If
    33 REM those are changed then MakeDeps is rerun.
    3431
    3532REM
     
    4037REM that "grep" be accessible on the PATH. An MKS install does this.
    4138REM
     39
     40cl 2>NUL >NUL
     41if %errorlevel% == 0 goto nexttest
     42echo Make sure cl.exe is in your PATH before running this script.
     43goto end
     44
     45:nexttest
     46grep -V 2>NUL >NUL
     47if %errorlevel% == 0 goto testit
     48echo Make sure grep.exe is in your PATH before running this script. Either cygwin or MKS should work.
     49goto end
     50
     51
     52:testit
    4253cl 2>&1 | grep "IA-64" >NUL
    4354if %errorlevel% == 0 goto isia64
     
    4859set Platform_arch=x86
    4960set Platform_arch_model=x86_32
    50 goto end
     61goto done
    5162:amd64
    5263set ARCH=x86
     
    5465set Platform_arch=x86
    5566set Platform_arch_model=x86_64
    56 goto end
     67goto done
    5768:isia64
    5869set ARCH=ia64
     
    6071set Platform_arch=ia64
    6172set Platform_arch_model=ia64
    62 :end
     73:done
    6374
    6475setlocal
     
    6677if "%1" == "" goto usage
    6778
    68 if not "%4" == "" goto usage
    69 
    70 set HotSpotWorkSpace=%1
    71 set HotSpotBuildSpace=%2
    72 set HotSpotJDKDist=%3
     79if not "%2" == "" goto usage
     80
     81REM Set HotSpotWorkSpace to the directy two steps above this script
     82for %%i in ("%~dp0..") do ( set HotSpotWorkSpace=%%~dpi)
     83set HotSpotBuildRoot=%HotSpotWorkSpace%build
     84set HotSpotBuildSpace=%HotSpotBuildRoot%\vs
     85set HotSpotJDKDist=%1
     86
    7387
    7488REM figure out MSC version
     
    7690
    7791echo **************************************************************
    78 set ProjectFile=vm.vcproj
     92set ProjectFile=jvm.vcproj
    7993if "%MSC_VER%" == "1200" (
    80 set ProjectFile=vm.dsp
     94set ProjectFile=jvm.dsp
    8195echo Will generate VC6 project {unsupported}
    8296) else (
     
    87101echo Will generate VC9 {Visual Studio 2008}
    88102) else (
     103if "%MSC_VER%" == "1600" (
     104echo Detected Visual Studio 2010, but
     105echo will generate VC9 {Visual Studio 2008}
     106echo Use conversion wizard in VS 2010.
     107) else (
    89108echo Will generate VC7 project {Visual Studio 2003 .NET}
     109)
    90110)
    91111)
     
    122142:test3
    123143if not "%HOTSPOTMKSHOME%" == "" goto makedir
     144if exist c:\cygwin\bin set HOTSPOTMKSHOME=c:\cygwin\bin
     145if not "%HOTSPOTMKSHOME%" == "" goto makedir
    124146echo Warning: please set variable HOTSPOTMKSHOME to place where
    125147echo          your MKS/Cygwin installation is
     
    137159:copyfiles
    138160for /D %%i in (compiler1, compiler2, tiered, core, kernel) do (
    139 if NOT EXIST %HotSpotBuildSpace%\%%i mkdir %HotSpotBuildSpace%\%%i
    140 copy %HotSpotWorkSpace%\make\windows\projectfiles\%%i\* %HotSpotBuildSpace%\%%i\ > NUL
     161if NOT EXIST %HotSpotBuildSpace%\%%i\generated mkdir %HotSpotBuildSpace%\%%i\generated
     162copy %HotSpotWorkSpace%\make\windows\projectfiles\%%i\* %HotSpotBuildSpace%\%%i\generated > NUL
    141163)
    142164
     
    145167
    146168for /D %%i in (compiler1, compiler2, tiered, core, kernel) do (
    147 
    148 echo # Generated file!                                                 >    %HotSpotBuildSpace%\%%i\local.make
     169echo -- %%i --
     170echo # Generated file!                                                        >    %HotSpotBuildSpace%\%%i\local.make
    149171echo # Changing a variable below and then deleting %ProjectFile% will cause  >>    %HotSpotBuildSpace%\%%i\local.make
    150172echo # %ProjectFile% to be regenerated with the new values.  Changing the    >>    %HotSpotBuildSpace%\%%i\local.make
    151 echo # version requires rerunning create.bat.                         >>    %HotSpotBuildSpace%\%%i\local.make
     173echo # version requires rerunning create.bat.                                >>    %HotSpotBuildSpace%\%%i\local.make
    152174echo.                                      >>    %HotSpotBuildSpace%\%%i\local.make
     175echo Variant=%%i                           >>    %HotSpotBuildSpace%\%%i\local.make
     176echo WorkSpace=%HotSpotWorkSpace%          >>    %HotSpotBuildSpace%\%%i\local.make
    153177echo HOTSPOTWORKSPACE=%HotSpotWorkSpace%   >>    %HotSpotBuildSpace%\%%i\local.make
     178echo HOTSPOTBUILDROOT=%HotSpotBuildRoot%   >>    %HotSpotBuildSpace%\%%i\local.make
    154179echo HOTSPOTBUILDSPACE=%HotSpotBuildSpace% >>    %HotSpotBuildSpace%\%%i\local.make
    155180echo HOTSPOTJDKDIST=%HotSpotJDKDist%       >>    %HotSpotBuildSpace%\%%i\local.make
     
    159184echo Platform_arch_model=%Platform_arch_model% >>    %HotSpotBuildSpace%\%%i\local.make
    160185
    161 REM build config specific stuff
    162 
    163 pushd %HotSpotBuildSpace%\%%i
     186for /D %%j in (debug, fastdebug, product) do (
     187if NOT EXIST %HotSpotBuildSpace%\%%i\%%j mkdir %HotSpotBuildSpace%\%%i\%%j
     188)
     189
     190pushd %HotSpotBuildSpace%\%%i\generated
    164191nmake /nologo
    165192popd
    166 )
     193
     194)
     195
     196pushd %HotSpotBuildRoot%
     197
     198REM It doesn't matter which variant we use here, "compiler1" is as good as any of the others - we need the common variables
     199nmake /nologo /F %HotSpotWorkSpace%/make/windows/projectfiles/common/Makefile LOCAL_MAKE=%HotSpotBuildSpace%\compiler1\local.make %HotSpotBuildRoot%/%ProjectFile%
     200
     201popd
    167202
    168203goto end
    169204
    170205:usage
    171 echo Usage: create HotSpotWorkSpace HotSpotBuildSpace HotSpotJDKDist
    172 echo.
    173 echo This is the interactive build setup script (as opposed to the batch
    174 echo build execution script). It creates HotSpotBuildSpace if necessary,
    175 echo copies the appropriate files out of HotSpotWorkSpace into it, and
    176 echo builds and runs MakeDeps in it. This has the side-effect of creating
     206echo Usage: create HotSpotJDKDist
     207echo.
     208echo This is the VS build setup script (as opposed to the batch
     209echo build execution script). It creates a build directory if necessary,
     210echo copies the appropriate files out of the workspace into it, and
     211echo builds and runs ProjectCreator in it. This has the side-effect of creating
    177212echo 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.
     213echo.
     214echo The HotSpotJDKDist defines the JDK that should be used when running the JVM.
    179215echo Environment variable FORCE_MSC_VER allows to override MSVC version autodetection.
    180 echo.
    181 echo The generated project file depends upon the include databases. If
    182 echo those are changed then MakeDeps is rerun.
    183216echo.
    184217echo 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.