summaryrefslogtreecommitdiff
path: root/dist/mcode/winbuild.bat
diff options
context:
space:
mode:
Diffstat (limited to 'dist/mcode/winbuild.bat')
-rw-r--r--dist/mcode/winbuild.bat18
1 files changed, 18 insertions, 0 deletions
diff --git a/dist/mcode/winbuild.bat b/dist/mcode/winbuild.bat
new file mode 100644
index 0000000..8c28268
--- /dev/null
+++ b/dist/mcode/winbuild.bat
@@ -0,0 +1,18 @@
+call windows\compile
+if errorlevel 1 goto end
+
+call windows\complib
+if errorlevel 1 goto end
+
+gnatmake windows/ghdlversion -o windows/ghdlversion.exe
+windows\ghdlversion < ../../version.ads > windows/version.nsi
+
+"c:\Program Files\NSIS\makensis" windows\ghdl.nsi
+if errorlevel 1 goto end
+
+exit /b 0
+
+:end
+echo "Error during compilation"
+exit /b 1
+