-
Notifications
You must be signed in to change notification settings - Fork 6
/
buildall.bat
44 lines (44 loc) · 1.39 KB
/
buildall.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
@echo off
if "%DevEnvDir%" == "" call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\Tools\vsdevcmd\ext\vcvars.bat"
if "%DevEnvDir%" == "" call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"
if "%DevEnvDir%" == "" call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
if "%DevEnvDir%" == "" goto novs
echo -----------
echo BUILD START
echo -----------
msbuild /nologo /v:m /p:Configuration=Debug;Platform=x64
if %errorlevel% neq 0 goto nogood
msbuild /nologo /v:m /p:Configuration=Debug;Platform=x86
if not errorlevel 0 goto nogood
msbuild /nologo /v:m /p:Configuration=Release;Platform=x64
if not errorlevel 0 goto nogood
msbuild /nologo /v:m /p:Configuration=Release;Platform=x86
if not errorlevel 0 goto nogood
:good
echo ---------------
echo BUILD COMPLETED
echo ---------------
echo Packing...
cd bin
md Noxico
copy Release\Neo.Lua.dll Noxico > nul
copy Release\Noxico.nox Noxico > nul
copy Release\Noxico.exe Noxico > nul
..\7za.exe u noxico-0.1.6.1.7z Noxico > nul
copy /y Release32\Noxico.exe Noxico > nul
..\7za.exe u noxico-0.1.6.1-32.7z Noxico > nul
rd Noxico /s /q
cd ..
pause
exit /b 0
:novs
echo.
echo *** No VS2019, 2015, or even 2010 found. ***
echo If you _do_ have it, why not try to build from the IDE?
echo.
:nogood
echo ------------
echo BUILD FAILED
echo ------------
pause
exit /b 1