2007-04-04 Chris Toshok <toshok@ximian.com>
[mono-project/dkf.git] / msvc / runmdesc.bat
blob09c03b6e49cf06faf5b87a9bc48087c696d1f37c
1 @echo off
2 rem This runs genmdesc on the x86 files when called on Visual Studio
3 echo Running genmdesc
4 cd ..\mono\mini
5 set PATH=%PATH%;..\..\VSDependancies\lib
6 if "%2" == "Win32" goto x86
7 if "%2" == "x64" goto x64
8 goto error
9 :x86
10 echo Platform detected is x86...
11 %1 cpu-x86.md cpu-x86.h x86_desc
12 goto end
13 :x64
14 echo Platform detected is x64...
15 %1 cpu-amd64.md cpu-amd64.h amd64_desc
16 goto end
17 :error
18 echo Error: unsupported platform
19 exit /b 100
20 :end
21 echo done