comparison make/windows/create.bat @ 6587:7ec6629578ac

8043492: ad_x86_64_misc.obj : error LNK2011: precompiled object not linked in; image may not run Summary: Added _build_pch_file.obj to LD_FLAGS and cleaned up support for older Visual Studio versions Reviewed-by: twisti, lfoltan, sla, kvn
author ctornqvi
date Fri, 06 Jun 2014 14:46:42 +0200
parents f462e61bce87
children 42900ccffe87
comparison
equal deleted inserted replaced
12:afa92f946950 13:3f13c8325ae2
1 @echo off 1 @echo off
2 REM 2 REM
3 REM Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. 3 REM Copyright (c) 1999, 2014, Oracle and/or its affiliates. All rights reserved.
4 REM DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 REM DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 REM 5 REM
6 REM This code is free software; you can redistribute it and/or modify it 6 REM This code is free software; you can redistribute it and/or modify it
7 REM under the terms of the GNU General Public License version 2 only, as 7 REM under the terms of the GNU General Public License version 2 only, as
8 REM published by the Free Software Foundation. 8 REM published by the Free Software Foundation.
79 79
80 REM figure out MSC version 80 REM figure out MSC version
81 for /F %%i in ('sh %HotSpotWorkSpace%/make/windows/get_msc_ver.sh') do set %%i 81 for /F %%i in ('sh %HotSpotWorkSpace%/make/windows/get_msc_ver.sh') do set %%i
82 82
83 echo ************************************************************** 83 echo **************************************************************
84 set ProjectFile=%HotSpotBuildSpace%\jvm.vcproj
85 echo MSC_VER = "%MSC_VER%" 84 echo MSC_VER = "%MSC_VER%"
86 if "%MSC_VER%" == "1200" (
87 set ProjectFile=%HotSpotBuildSpace%\jvm.dsp
88 echo Will generate VC6 project {unsupported}
89 ) else (
90 if "%MSC_VER%" == "1400" (
91 echo Will generate VC8 {Visual Studio 2005}
92 ) else (
93 if "%MSC_VER%" == "1500" (
94 echo Will generate VC9 {Visual Studio 2008}
95 ) else (
96 if "%MSC_VER%" == "1600" (
97 echo Will generate VC10 {Visual Studio 2010}
98 set ProjectFile=%HotSpotBuildSpace%\jvm.vcxproj 85 set ProjectFile=%HotSpotBuildSpace%\jvm.vcxproj
99 ) else (
100 if "%MSC_VER%" == "1700" (
101 echo Will generate VC10 {compatible with Visual Studio 2012}
102 echo After opening in VS 2012, click "Update" when prompted.
103 set ProjectFile=%HotSpotBuildSpace%\jvm.vcxproj
104 ) else (
105 echo Will generate VC7 project {Visual Studio 2003 .NET}
106 )
107 )
108 )
109 )
110 )
111 echo %ProjectFile% 86 echo %ProjectFile%
112 echo ************************************************************** 87 echo **************************************************************
113 88
114 REM Test all variables to see whether the directories they 89 REM Test all variables to see whether the directories they
115 REM reference exist 90 REM reference exist