-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefines.bat
52 lines (43 loc) · 1.68 KB
/
defines.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
set configuration=release
set vsver=vs2010
set ProgramFiles64bit=C:\Program Files\
set ProgramFiles32bit=C:\Program Files (x86)\
if not '%PROCESSOR_ARCHITECTURE%' == 'AMD64' (
if not '%PROCESSOR_ARCHITEW6432%' == 'AMD64' (
rem You are running x86 Windows
set ProgramFiles32bit=%ProgramFiles64bit%
)
)
set GACPATH="%WinDir%\assembly\GAC_MSIL\"
set Gac4path="%WinDir%\Microsoft.NET\assembly\GAC_MSIL\"
if '%vsver%'=='vs2005' goto vs2005
if '%vsver%'=='vs2008' goto vs2008
if '%vsver%'=='vs2010' goto vs2010
if '%vsver%'=='vs2012' goto vs2012
:vs2005
rem Visual Studio 2005 paths
set sn="%ProgramFiles64bit%\Microsoft SDKs\Windows\v6.0A\Bin\sn.exe"
set sn="%ProgramFiles32bit%\Microsoft Visual Studio 8\SDK\v2.0\Bin\sn.exe"
set gacutil="%ProgramFiles32bit%\Microsoft Visual Studio 8\SDK\v2.0\Bin\gacutil.exe"
set msbuild="%WinDir%\Microsoft.NET\Framework\v2.0.50727\MSBuild.exe"
goto end
:vs2008
set vs=vc9
set sn="%ProgramFiles64bit%\Microsoft SDKs\Windows\v6.0A\Bin\sn.exe"
set gacutil="%ProgramFiles64bit%\Microsoft SDKs\Windows\v6.0A\Bin\gacutil.exe"
set msbuild="%WinDir%\Microsoft.NET\Framework\v3.5\MSBuild.exe"
goto end
:vs2010
set vs=vc10
set sn="%ProgramFiles64bit%\Microsoft SDKs\Windows\v7.0A\Bin\sn.exe"
set gacutil="%ProgramFiles64bit%\Microsoft SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools\gacutil.exe"
set msbuild="%WinDir%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe"
set devenv="%VS100COMNTOOLS%\..\IDE\devenv.exe"
goto end
:vs2012
set vs=vc11
set sn="%ProgramFiles64bit%\Microsoft SDKs\Windows\v7.0A\Bin\sn.exe"
set gacutil="%ProgramFiles64bit%\Microsoft SDKs\Windows\v7.0A\Bin\gacutil.exe"
set msbuild="%WinDir%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe"
goto end
:end