annotate make/windows/create.bat @ 16524:a08a58d0736b

[SPARC] Emit compareAndSwap for AtomicInteger and AtomicLong, Removing o7 register from usable ones, as this register is always overwritten, when using Call or JumpAndLink instructions in SPARC, even callee does not overwrite explicitly, implicit exception is defined when doing integer division, parameter constraint narrowed to only register on Unary2Op, Fix SPARCTestOp, as it did a compare instead of an and with condition codes
author Stefan Anzinger <stefan.anzinger@gmail.com>
date Tue, 15 Jul 2014 19:07:29 -0700
parents cefad50507d8
children be896a1983c0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a61af66fc99e Initial load
duke
parents:
diff changeset
1 @echo off
a61af66fc99e Initial load
duke
parents:
diff changeset
2 REM
12014
31f3b1e1c5e5 8016601: Unable to build hsx24 on Windows using project creator and Visual Studio
dcubed
parents: 8821
diff changeset
3 REM Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
4 REM DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
a61af66fc99e Initial load
duke
parents:
diff changeset
5 REM
a61af66fc99e Initial load
duke
parents:
diff changeset
6 REM This code is free software; you can redistribute it and/or modify it
a61af66fc99e Initial load
duke
parents:
diff changeset
7 REM under the terms of the GNU General Public License version 2 only, as
a61af66fc99e Initial load
duke
parents:
diff changeset
8 REM published by the Free Software Foundation.
a61af66fc99e Initial load
duke
parents:
diff changeset
9 REM
a61af66fc99e Initial load
duke
parents:
diff changeset
10 REM This code is distributed in the hope that it will be useful, but WITHOUT
a61af66fc99e Initial load
duke
parents:
diff changeset
11 REM ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
a61af66fc99e Initial load
duke
parents:
diff changeset
12 REM FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
a61af66fc99e Initial load
duke
parents:
diff changeset
13 REM version 2 for more details (a copy is included in the LICENSE file that
a61af66fc99e Initial load
duke
parents:
diff changeset
14 REM accompanied this code).
a61af66fc99e Initial load
duke
parents:
diff changeset
15 REM
a61af66fc99e Initial load
duke
parents:
diff changeset
16 REM You should have received a copy of the GNU General Public License version
a61af66fc99e Initial load
duke
parents:
diff changeset
17 REM 2 along with this work; if not, write to the Free Software Foundation,
a61af66fc99e Initial load
duke
parents:
diff changeset
18 REM Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
a61af66fc99e Initial load
duke
parents:
diff changeset
19 REM
1552
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 1328
diff changeset
20 REM Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 1328
diff changeset
21 REM or visit www.oracle.com if you need additional information or have any
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 1328
diff changeset
22 REM questions.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
23 REM
a61af66fc99e Initial load
duke
parents:
diff changeset
24 REM
a61af66fc99e Initial load
duke
parents:
diff changeset
25
a61af66fc99e Initial load
duke
parents:
diff changeset
26 REM This is the interactive build setup script (as opposed to the batch
a61af66fc99e Initial load
duke
parents:
diff changeset
27 REM build execution script). It creates $HotSpotBuildSpace if necessary,
a61af66fc99e Initial load
duke
parents:
diff changeset
28 REM copies the appropriate files out of $HotSpotWorkSpace into it, and
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
29 REM builds and runs ProjectCreator in it. This has the side-effect of creating
0
a61af66fc99e Initial load
duke
parents:
diff changeset
30 REM the vm.vcproj file in the buildspace, which is then used in Visual C++.
a61af66fc99e Initial load
duke
parents:
diff changeset
31
a61af66fc99e Initial load
duke
parents:
diff changeset
32 REM
a61af66fc99e Initial load
duke
parents:
diff changeset
33 REM Since we don't have uname and we could be cross-compiling,
a61af66fc99e Initial load
duke
parents:
diff changeset
34 REM Use the compiler to determine which ARCH we are building
a61af66fc99e Initial load
duke
parents:
diff changeset
35 REM
1328
39e409a664b3 6938185: 3/4 6923488 breaks Windows command shell builds
dcubed
parents: 844
diff changeset
36 REM Note: Running this batch file from the Windows command shell requires
39e409a664b3 6938185: 3/4 6923488 breaks Windows command shell builds
dcubed
parents: 844
diff changeset
37 REM that "grep" be accessible on the PATH. An MKS install does this.
39e409a664b3 6938185: 3/4 6923488 breaks Windows command shell builds
dcubed
parents: 844
diff changeset
38 REM
2027
aa6e219afbf1 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 1972
diff changeset
39
8940
6cae606d563f commented out a check for the existence of "cl.exe" for the windows build. The command returns something invalid, so the build fails BECAUSE of this test
Christian Wirth <christian.wirth@oracle.com>
parents: 8883
diff changeset
40
6cae606d563f commented out a check for the existence of "cl.exe" for the windows build. The command returns something invalid, so the build fails BECAUSE of this test
Christian Wirth <christian.wirth@oracle.com>
parents: 8883
diff changeset
41
6cae606d563f commented out a check for the existence of "cl.exe" for the windows build. The command returns something invalid, so the build fails BECAUSE of this test
Christian Wirth <christian.wirth@oracle.com>
parents: 8883
diff changeset
42 REM (cwirth) does not return a proper error code, so build fails all the time
6cae606d563f commented out a check for the existence of "cl.exe" for the windows build. The command returns something invalid, so the build fails BECAUSE of this test
Christian Wirth <christian.wirth@oracle.com>
parents: 8883
diff changeset
43 REM
6cae606d563f commented out a check for the existence of "cl.exe" for the windows build. The command returns something invalid, so the build fails BECAUSE of this test
Christian Wirth <christian.wirth@oracle.com>
parents: 8883
diff changeset
44 REM cl 2>NUL >NUL
6cae606d563f commented out a check for the existence of "cl.exe" for the windows build. The command returns something invalid, so the build fails BECAUSE of this test
Christian Wirth <christian.wirth@oracle.com>
parents: 8883
diff changeset
45 REM if %errorlevel% == 0 goto nexttest
6cae606d563f commented out a check for the existence of "cl.exe" for the windows build. The command returns something invalid, so the build fails BECAUSE of this test
Christian Wirth <christian.wirth@oracle.com>
parents: 8883
diff changeset
46 REM echo Make sure cl.exe is in your PATH before running this script.
6cae606d563f commented out a check for the existence of "cl.exe" for the windows build. The command returns something invalid, so the build fails BECAUSE of this test
Christian Wirth <christian.wirth@oracle.com>
parents: 8883
diff changeset
47 REM goto end
2027
aa6e219afbf1 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 1972
diff changeset
48
aa6e219afbf1 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 1972
diff changeset
49 :nexttest
aa6e219afbf1 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 1972
diff changeset
50 grep -V 2>NUL >NUL
aa6e219afbf1 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 1972
diff changeset
51 if %errorlevel% == 0 goto testit
aa6e219afbf1 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 1972
diff changeset
52 echo Make sure grep.exe is in your PATH before running this script. Either cygwin or MKS should work.
aa6e219afbf1 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 1972
diff changeset
53 goto end
aa6e219afbf1 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 1972
diff changeset
54
aa6e219afbf1 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 1972
diff changeset
55
aa6e219afbf1 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 1972
diff changeset
56 :testit
2233
15d6977f04b0 7017824: Add support for creating 64-bit Visual Studio projects
sla
parents: 2027
diff changeset
57 cl 2>&1 | grep "x64" >NUL
0
a61af66fc99e Initial load
duke
parents:
diff changeset
58 if %errorlevel% == 0 goto amd64
a61af66fc99e Initial load
duke
parents:
diff changeset
59 set ARCH=x86
a61af66fc99e Initial load
duke
parents:
diff changeset
60 set BUILDARCH=i486
a61af66fc99e Initial load
duke
parents:
diff changeset
61 set Platform_arch=x86
a61af66fc99e Initial load
duke
parents:
diff changeset
62 set Platform_arch_model=x86_32
2027
aa6e219afbf1 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 1972
diff changeset
63 goto done
0
a61af66fc99e Initial load
duke
parents:
diff changeset
64 :amd64
a61af66fc99e Initial load
duke
parents:
diff changeset
65 set ARCH=x86
a61af66fc99e Initial load
duke
parents:
diff changeset
66 set BUILDARCH=amd64
a61af66fc99e Initial load
duke
parents:
diff changeset
67 set Platform_arch=x86
a61af66fc99e Initial load
duke
parents:
diff changeset
68 set Platform_arch_model=x86_64
2027
aa6e219afbf1 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 1972
diff changeset
69 :done
0
a61af66fc99e Initial load
duke
parents:
diff changeset
70
a61af66fc99e Initial load
duke
parents:
diff changeset
71 setlocal
a61af66fc99e Initial load
duke
parents:
diff changeset
72
a61af66fc99e Initial load
duke
parents:
diff changeset
73 if "%1" == "" goto usage
a61af66fc99e Initial load
duke
parents:
diff changeset
74
2027
aa6e219afbf1 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 1972
diff changeset
75 if not "%2" == "" goto usage
0
a61af66fc99e Initial load
duke
parents:
diff changeset
76
2027
aa6e219afbf1 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 1972
diff changeset
77 REM Set HotSpotWorkSpace to the directy two steps above this script
aa6e219afbf1 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 1972
diff changeset
78 for %%i in ("%~dp0..") do ( set HotSpotWorkSpace=%%~dpi)
aa6e219afbf1 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 1972
diff changeset
79 set HotSpotBuildRoot=%HotSpotWorkSpace%build
2233
15d6977f04b0 7017824: Add support for creating 64-bit Visual Studio projects
sla
parents: 2027
diff changeset
80 set HotSpotBuildSpace=%HotSpotBuildRoot%\vs-%BUILDARCH%
2027
aa6e219afbf1 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 1972
diff changeset
81 set HotSpotJDKDist=%1
aa6e219afbf1 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 1972
diff changeset
82
0
a61af66fc99e Initial load
duke
parents:
diff changeset
83
a61af66fc99e Initial load
duke
parents:
diff changeset
84 REM figure out MSC version
91
a294fd0c4b38 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 0
diff changeset
85 for /F %%i in ('sh %HotSpotWorkSpace%/make/windows/get_msc_ver.sh') do set %%i
0
a61af66fc99e Initial load
duke
parents:
diff changeset
86
a61af66fc99e Initial load
duke
parents:
diff changeset
87 echo **************************************************************
2233
15d6977f04b0 7017824: Add support for creating 64-bit Visual Studio projects
sla
parents: 2027
diff changeset
88 set ProjectFile=%HotSpotBuildSpace%\jvm.vcproj
12137
f462e61bce87 8020622: create.bat on Windows failed to create project file for Visual Studio 2012
iklam
parents: 12014
diff changeset
89 echo MSC_VER = "%MSC_VER%"
0
a61af66fc99e Initial load
duke
parents:
diff changeset
90 if "%MSC_VER%" == "1200" (
2233
15d6977f04b0 7017824: Add support for creating 64-bit Visual Studio projects
sla
parents: 2027
diff changeset
91 set ProjectFile=%HotSpotBuildSpace%\jvm.dsp
0
a61af66fc99e Initial load
duke
parents:
diff changeset
92 echo Will generate VC6 project {unsupported}
a61af66fc99e Initial load
duke
parents:
diff changeset
93 ) else (
659
520d43965b1f 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 196
diff changeset
94 if "%MSC_VER%" == "1400" (
520d43965b1f 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 196
diff changeset
95 echo Will generate VC8 {Visual Studio 2005}
520d43965b1f 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 196
diff changeset
96 ) else (
520d43965b1f 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 196
diff changeset
97 if "%MSC_VER%" == "1500" (
520d43965b1f 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 196
diff changeset
98 echo Will generate VC9 {Visual Studio 2008}
520d43965b1f 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 196
diff changeset
99 ) else (
2027
aa6e219afbf1 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 1972
diff changeset
100 if "%MSC_VER%" == "1600" (
2393
74e790c48cd4 7031571: Generate native VS2010 project files
sla
parents: 2233
diff changeset
101 echo Will generate VC10 {Visual Studio 2010}
74e790c48cd4 7031571: Generate native VS2010 project files
sla
parents: 2233
diff changeset
102 set ProjectFile=%HotSpotBuildSpace%\jvm.vcxproj
2027
aa6e219afbf1 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 1972
diff changeset
103 ) else (
12137
f462e61bce87 8020622: create.bat on Windows failed to create project file for Visual Studio 2012
iklam
parents: 12014
diff changeset
104 if "%MSC_VER%" == "1700" (
f462e61bce87 8020622: create.bat on Windows failed to create project file for Visual Studio 2012
iklam
parents: 12014
diff changeset
105 echo Will generate VC10 {compatible with Visual Studio 2012}
f462e61bce87 8020622: create.bat on Windows failed to create project file for Visual Studio 2012
iklam
parents: 12014
diff changeset
106 echo After opening in VS 2012, click "Update" when prompted.
f462e61bce87 8020622: create.bat on Windows failed to create project file for Visual Studio 2012
iklam
parents: 12014
diff changeset
107 set ProjectFile=%HotSpotBuildSpace%\jvm.vcxproj
f462e61bce87 8020622: create.bat on Windows failed to create project file for Visual Studio 2012
iklam
parents: 12014
diff changeset
108 ) else (
659
520d43965b1f 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 196
diff changeset
109 echo Will generate VC7 project {Visual Studio 2003 .NET}
520d43965b1f 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 196
diff changeset
110 )
520d43965b1f 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 196
diff changeset
111 )
0
a61af66fc99e Initial load
duke
parents:
diff changeset
112 )
2027
aa6e219afbf1 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 1972
diff changeset
113 )
12137
f462e61bce87 8020622: create.bat on Windows failed to create project file for Visual Studio 2012
iklam
parents: 12014
diff changeset
114 )
2393
74e790c48cd4 7031571: Generate native VS2010 project files
sla
parents: 2233
diff changeset
115 echo %ProjectFile%
0
a61af66fc99e Initial load
duke
parents:
diff changeset
116 echo **************************************************************
a61af66fc99e Initial load
duke
parents:
diff changeset
117
a61af66fc99e Initial load
duke
parents:
diff changeset
118 REM Test all variables to see whether the directories they
a61af66fc99e Initial load
duke
parents:
diff changeset
119 REM reference exist
a61af66fc99e Initial load
duke
parents:
diff changeset
120
a61af66fc99e Initial load
duke
parents:
diff changeset
121 if exist %HotSpotWorkSpace% goto test1
a61af66fc99e Initial load
duke
parents:
diff changeset
122
a61af66fc99e Initial load
duke
parents:
diff changeset
123 echo Error: directory pointed to by HotSpotWorkSpace
a61af66fc99e Initial load
duke
parents:
diff changeset
124 echo does not exist, or the variable is not set.
a61af66fc99e Initial load
duke
parents:
diff changeset
125 echo.
a61af66fc99e Initial load
duke
parents:
diff changeset
126 goto usage
a61af66fc99e Initial load
duke
parents:
diff changeset
127
a61af66fc99e Initial load
duke
parents:
diff changeset
128 :test1
a61af66fc99e Initial load
duke
parents:
diff changeset
129 if exist %HotSpotBuildSpace% goto test2
a61af66fc99e Initial load
duke
parents:
diff changeset
130 if not "%HotSpotBuildSpace%" == "" mkdir %HotSpotBuildSpace%
a61af66fc99e Initial load
duke
parents:
diff changeset
131 if exist %HotSpotBuildSpace% goto test2
a61af66fc99e Initial load
duke
parents:
diff changeset
132 echo Error: directory pointed to by HotSpotBuildSpace
a61af66fc99e Initial load
duke
parents:
diff changeset
133 echo does not exist, or the variable is not set.
a61af66fc99e Initial load
duke
parents:
diff changeset
134 echo.
a61af66fc99e Initial load
duke
parents:
diff changeset
135 goto usage
a61af66fc99e Initial load
duke
parents:
diff changeset
136
a61af66fc99e Initial load
duke
parents:
diff changeset
137 :test2
a61af66fc99e Initial load
duke
parents:
diff changeset
138 if exist %HotSpotJDKDist% goto test3
a61af66fc99e Initial load
duke
parents:
diff changeset
139 echo Error: directory pointed to by %HotSpotJDKDist%
a61af66fc99e Initial load
duke
parents:
diff changeset
140 echo does not exist, or the variable is not set.
a61af66fc99e Initial load
duke
parents:
diff changeset
141 echo.
a61af66fc99e Initial load
duke
parents:
diff changeset
142 goto usage
a61af66fc99e Initial load
duke
parents:
diff changeset
143
a61af66fc99e Initial load
duke
parents:
diff changeset
144 :test3
a61af66fc99e Initial load
duke
parents:
diff changeset
145 if not "%HOTSPOTMKSHOME%" == "" goto makedir
2027
aa6e219afbf1 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 1972
diff changeset
146 if exist c:\cygwin\bin set HOTSPOTMKSHOME=c:\cygwin\bin
aa6e219afbf1 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 1972
diff changeset
147 if not "%HOTSPOTMKSHOME%" == "" goto makedir
0
a61af66fc99e Initial load
duke
parents:
diff changeset
148 echo Warning: please set variable HOTSPOTMKSHOME to place where
a61af66fc99e Initial load
duke
parents:
diff changeset
149 echo your MKS/Cygwin installation is
a61af66fc99e Initial load
duke
parents:
diff changeset
150 echo.
a61af66fc99e Initial load
duke
parents:
diff changeset
151 goto usage
a61af66fc99e Initial load
duke
parents:
diff changeset
152
a61af66fc99e Initial load
duke
parents:
diff changeset
153 :makedir
a61af66fc99e Initial load
duke
parents:
diff changeset
154 echo NOTE: Using the following settings:
a61af66fc99e Initial load
duke
parents:
diff changeset
155 echo HotSpotWorkSpace=%HotSpotWorkSpace%
a61af66fc99e Initial load
duke
parents:
diff changeset
156 echo HotSpotBuildSpace=%HotSpotBuildSpace%
a61af66fc99e Initial load
duke
parents:
diff changeset
157 echo HotSpotJDKDist=%HotSpotJDKDist%
a61af66fc99e Initial load
duke
parents:
diff changeset
158
a61af66fc99e Initial load
duke
parents:
diff changeset
159
a61af66fc99e Initial load
duke
parents:
diff changeset
160 REM This is now safe to do.
a61af66fc99e Initial load
duke
parents:
diff changeset
161 :copyfiles
12039
3cce976666d9 Merge hs25-b46
Gilles Duboscq <duboscq@ssw.jku.at>
parents: 8940 12014
diff changeset
162 for /D %%i in (graal, compiler1, compiler2, tiered) do (
2027
aa6e219afbf1 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 1972
diff changeset
163 if NOT EXIST %HotSpotBuildSpace%\%%i\generated mkdir %HotSpotBuildSpace%\%%i\generated
aa6e219afbf1 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 1972
diff changeset
164 copy %HotSpotWorkSpace%\make\windows\projectfiles\%%i\* %HotSpotBuildSpace%\%%i\generated > NUL
0
a61af66fc99e Initial load
duke
parents:
diff changeset
165 )
a61af66fc99e Initial load
duke
parents:
diff changeset
166
a61af66fc99e Initial load
duke
parents:
diff changeset
167 REM force regneration of ProjectFile
2233
15d6977f04b0 7017824: Add support for creating 64-bit Visual Studio projects
sla
parents: 2027
diff changeset
168 if exist %ProjectFile% del %ProjectFile%
0
a61af66fc99e Initial load
duke
parents:
diff changeset
169
12039
3cce976666d9 Merge hs25-b46
Gilles Duboscq <duboscq@ssw.jku.at>
parents: 8940 12014
diff changeset
170 for /D %%i in (graal, compiler1, compiler2, tiered) do (
2027
aa6e219afbf1 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 1972
diff changeset
171 echo -- %%i --
aa6e219afbf1 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 1972
diff changeset
172 echo # Generated file! > %HotSpotBuildSpace%\%%i\local.make
0
a61af66fc99e Initial load
duke
parents:
diff changeset
173 echo # Changing a variable below and then deleting %ProjectFile% will cause >> %HotSpotBuildSpace%\%%i\local.make
a61af66fc99e Initial load
duke
parents:
diff changeset
174 echo # %ProjectFile% to be regenerated with the new values. Changing the >> %HotSpotBuildSpace%\%%i\local.make
2027
aa6e219afbf1 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 1972
diff changeset
175 echo # version requires rerunning create.bat. >> %HotSpotBuildSpace%\%%i\local.make
0
a61af66fc99e Initial load
duke
parents:
diff changeset
176 echo. >> %HotSpotBuildSpace%\%%i\local.make
2027
aa6e219afbf1 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 1972
diff changeset
177 echo Variant=%%i >> %HotSpotBuildSpace%\%%i\local.make
aa6e219afbf1 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 1972
diff changeset
178 echo WorkSpace=%HotSpotWorkSpace% >> %HotSpotBuildSpace%\%%i\local.make
0
a61af66fc99e Initial load
duke
parents:
diff changeset
179 echo HOTSPOTWORKSPACE=%HotSpotWorkSpace% >> %HotSpotBuildSpace%\%%i\local.make
2027
aa6e219afbf1 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 1972
diff changeset
180 echo HOTSPOTBUILDROOT=%HotSpotBuildRoot% >> %HotSpotBuildSpace%\%%i\local.make
0
a61af66fc99e Initial load
duke
parents:
diff changeset
181 echo HOTSPOTBUILDSPACE=%HotSpotBuildSpace% >> %HotSpotBuildSpace%\%%i\local.make
a61af66fc99e Initial load
duke
parents:
diff changeset
182 echo HOTSPOTJDKDIST=%HotSpotJDKDist% >> %HotSpotBuildSpace%\%%i\local.make
a61af66fc99e Initial load
duke
parents:
diff changeset
183 echo ARCH=%ARCH% >> %HotSpotBuildSpace%\%%i\local.make
a61af66fc99e Initial load
duke
parents:
diff changeset
184 echo BUILDARCH=%BUILDARCH% >> %HotSpotBuildSpace%\%%i\local.make
a61af66fc99e Initial load
duke
parents:
diff changeset
185 echo Platform_arch=%Platform_arch% >> %HotSpotBuildSpace%\%%i\local.make
a61af66fc99e Initial load
duke
parents:
diff changeset
186 echo Platform_arch_model=%Platform_arch_model% >> %HotSpotBuildSpace%\%%i\local.make
2233
15d6977f04b0 7017824: Add support for creating 64-bit Visual Studio projects
sla
parents: 2027
diff changeset
187 echo MSC_VER=%MSC_VER% >> %HotSpotBuildSpace%\%%i\local.make
0
a61af66fc99e Initial load
duke
parents:
diff changeset
188
2027
aa6e219afbf1 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 1972
diff changeset
189 for /D %%j in (debug, fastdebug, product) do (
aa6e219afbf1 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 1972
diff changeset
190 if NOT EXIST %HotSpotBuildSpace%\%%i\%%j mkdir %HotSpotBuildSpace%\%%i\%%j
aa6e219afbf1 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 1972
diff changeset
191 )
aa6e219afbf1 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 1972
diff changeset
192
aa6e219afbf1 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 1972
diff changeset
193 pushd %HotSpotBuildSpace%\%%i\generated
0
a61af66fc99e Initial load
duke
parents:
diff changeset
194 nmake /nologo
a61af66fc99e Initial load
duke
parents:
diff changeset
195 popd
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
196
0
a61af66fc99e Initial load
duke
parents:
diff changeset
197 )
a61af66fc99e Initial load
duke
parents:
diff changeset
198
2027
aa6e219afbf1 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 1972
diff changeset
199 pushd %HotSpotBuildRoot%
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
200
2027
aa6e219afbf1 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 1972
diff changeset
201 REM It doesn't matter which variant we use here, "compiler1" is as good as any of the others - we need the common variables
2233
15d6977f04b0 7017824: Add support for creating 64-bit Visual Studio projects
sla
parents: 2027
diff changeset
202 nmake /nologo /F %HotSpotWorkSpace%/make/windows/projectfiles/common/Makefile LOCAL_MAKE=%HotSpotBuildSpace%\compiler1\local.make %ProjectFile%
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
203
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
204 popd
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
205
0
a61af66fc99e Initial load
duke
parents:
diff changeset
206 goto end
a61af66fc99e Initial load
duke
parents:
diff changeset
207
a61af66fc99e Initial load
duke
parents:
diff changeset
208 :usage
2027
aa6e219afbf1 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 1972
diff changeset
209 echo Usage: create HotSpotJDKDist
0
a61af66fc99e Initial load
duke
parents:
diff changeset
210 echo.
2027
aa6e219afbf1 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 1972
diff changeset
211 echo This is the VS build setup script (as opposed to the batch
aa6e219afbf1 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 1972
diff changeset
212 echo build execution script). It creates a build directory if necessary,
aa6e219afbf1 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 1972
diff changeset
213 echo copies the appropriate files out of the workspace into it, and
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
214 echo builds and runs ProjectCreator in it. This has the side-effect of creating
0
a61af66fc99e Initial load
duke
parents:
diff changeset
215 echo the %ProjectFile% file in the build space, which is then used in Visual C++.
2027
aa6e219afbf1 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 1972
diff changeset
216 echo.
aa6e219afbf1 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 1972
diff changeset
217 echo The HotSpotJDKDist defines the JDK that should be used when running the JVM.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
218 echo Environment variable FORCE_MSC_VER allows to override MSVC version autodetection.
a61af66fc99e Initial load
duke
parents:
diff changeset
219 echo.
a61af66fc99e Initial load
duke
parents:
diff changeset
220 echo NOTE that it is now NOT safe to modify any of the files in the build
a61af66fc99e Initial load
duke
parents:
diff changeset
221 echo space, since they may be overwritten whenever this script is run or
a61af66fc99e Initial load
duke
parents:
diff changeset
222 echo nmake is run in that directory.
a61af66fc99e Initial load
duke
parents:
diff changeset
223
a61af66fc99e Initial load
duke
parents:
diff changeset
224 :end
a61af66fc99e Initial load
duke
parents:
diff changeset
225
a61af66fc99e Initial load
duke
parents:
diff changeset
226 endlocal