win_installer: Added build scripts

This commit is contained in:
Daniel Marjamäki 2009-10-11 10:16:26 +02:00
parent c6dac38d4a
commit 485f02642c
3 changed files with 52 additions and 0 deletions

10
win_installer/build.proj Executable file
View File

@ -0,0 +1,10 @@
<Project
xmlns="http://schemas.microsoft.com/developer/msbuild/2003"
DefaultTargets="build">
<!-- build windows installers -->
<Target Name="build">
<Exec Command="build1.bat"/>
<Exec Command="build2.bat"/>
</Target>
</Project>

18
win_installer/build1.bat Executable file
View File

@ -0,0 +1,18 @@
set QTDIR=c:\Qt\2009.01\qt
set PATH=c:\Qt\2009.01\qt\bin
set PATH=%PATH%;c:\Qt\2009.01\bin;c:\Qt\2009.01\mingw\bin
set PATH=%PATH%;%SystemRoot%\System32
set QMAKESPEC=win32-g++
cd ..
del gui\Makefile
del src\Makefile
del /Q gui\temp\*
del /Q src\temp\*
del gui\release\gui.exe
cd gui
qmake -config release
make

24
win_installer/build2.bat Executable file
View File

@ -0,0 +1,24 @@
del *.wixobj
del *.wixpdb
del cppcheck.exe
del gui.exe
cd ..
del /Q release\*
del cppcheck.exe
del cppcheck.map
del cppcheck.tds
msbuild cppcheck.cbproj /target:clean
msbuild cppcheck.cbproj /target:build /property:"config=release"
copy cppcheck.exe win_installer
copy gui\release\gui.exe win_installer
cd win_installer
candle cppcheck.wxs
light -ext WixUIExtension cppcheck.wixobj
rename cppcheck.msi cppcheck-light.msi
candle gui.wxs
light -ext WixUIExtension gui.wixobj