1
0
Fork 0

better build.bat

This commit is contained in:
Mr. eXoDia 2015-04-06 04:27:28 +02:00
parent 17e5538a23
commit 89718937fa
3 changed files with 35 additions and 46 deletions

35
build.bat Normal file
View File

@ -0,0 +1,35 @@
@echo off
if "%1%"=="x32" (
echo Building x32
set type="Win32"
) else if "%1%"=="x64" (
echo Building x64
set type="x64"
) else (
echo error, invalid parameter
goto :eof
)
echo Building DBG...
devenv /Rebuild "Release|%type%" x64_dbg.sln
echo GUI prebuildStep
cd x64_dbg_gui\Project
cmd /k "prebuildStep.bat %1%"
cd ..
cd ..
echo Building GUI...
rmdir /S /Q build
mkdir build
cd build
qmake ..\x64_dbg_gui\Project\x64_dbg.pro CONFIG+=release
jom
cd ..
echo GUI afterbuildStep
cd x64_dbg_gui\Project
call afterbuildStep.bat %1% ..\..\build\release
cd ..
cd ..

View File

@ -1,23 +0,0 @@
@echo off
echo Building DBG...
devenv /Rebuild "Release|Win32" x64_dbg.sln
echo GUI prebuildStep
cd x64_dbg_gui\Project
cmd /k "prebuildStep.bat x32"
cd ..
cd ..
echo Building GUI...
rmdir /S /Q build
mkdir build
cd build
qmake ..\x64_dbg_gui\Project\x64_dbg.pro CONFIG+=release
jom
cd ..
echo GUI afterbuildStep
cd x64_dbg_gui\Project
call afterbuildStep.bat x32 ..\..\build\release
cd ..
cd ..

View File

@ -1,23 +0,0 @@
@echo off
echo Building DBG...
devenv /Rebuild "Release|x64" x64_dbg.sln
echo GUI prebuildStep
cd x64_dbg_gui\Project
cmd /k "prebuildStep.bat x64"
cd ..
cd ..
echo Building GUI...
rmdir /S /Q build
mkdir build
cd build
qmake ..\x64_dbg_gui\Project\x64_dbg.pro CONFIG+=release
jom
cd ..
echo GUI afterbuildStep
cd x64_dbg_gui\Project
call afterbuildStep.bat x64 ..\..\build\release
cd ..
cd ..