Fix eglib targets and filters.
[mono.git] / msvc / setup-solution.bat
index 21bb14889bc60dccfac96bc3fdb3af5a0ef2a01a..0674972d9abedf4d522c26beaa848ddd3b3d5fd5 100755 (executable)
@@ -1,24 +1,20 @@
 @echo off\r
-mkdir scripts\net_1_1_bootstrap > nul 2> nul\r
-mkdir scripts\net_1_1 > nul 2> nul\r
-mkdir scripts\net_2_0 > nul 2> nul\r
-mkdir scripts\net_2_1 > nul 2> nul\r
-\r
 csc -debug -out:scripts\monowrap.exe scripts\monowrap.cs \r
-copy scripts\monowrap.exe scripts\net_1_1_bootstrap\csc.exe\r
-copy scripts\monowrap.pdb scripts\net_1_1_bootstrap\csc.pdb\r
-\r
-copy scripts\monowrap.exe scripts\net_1_1\csc.exe\r
-copy scripts\monowrap.pdb scripts\net_1_1\csc.pdb\r
-\r
-copy scripts\monowrap.exe scripts\net_2_0\csc.exe\r
-copy scripts\monowrap.pdb scripts\net_2_0\csc.pdb\r
-\r
-copy scripts\monowrap.exe scripts\net_2_1\csc.exe\r
-copy scripts\monowrap.pdb scripts\net_2_1\csc.pdb\r
-\r
-echo Setup complete, you can now use build the solution\r
-\r
-csc -debug -out:scripts\genproj.cs scripts\genproj.cs\r
+if errorlevel 1 goto error\r
+csc -nowarn:414 -debug -out:scripts\genproj.exe scripts\genproj.cs\r
+if errorlevel 1 goto error\r
+csc -debug -out:scripts\prepare.exe scripts\prepare.cs\r
+if errorlevel 1 goto error\r
 cd scripts\r
-genproj.exe
\ No newline at end of file
+prepare.exe ..\\..\\..\\mcs core \r
+if errorlevel 1 goto error\r
+genproj.exe\r
+if errorlevel 1 goto error\r
+cd ..\r
+echo Setup complete, you need at least a mcs\class\lib\basic directory with\r
+echo mcs.exe  mscorlib.dll  System.dll  System.Xml.dll\r
+echo to bootstrap\r
+goto end\r
+: error\r
+echo Error: solution is not configured.\r
+:end
\ No newline at end of file