code_app/build.bat

25 lines
846 B
Batchfile

set BUILD_CMD="C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin\MSBuild.exe"
%BUILD_CMD% ./build/windows/HGSolution.sln /p:Configuration=Release /p:Platform=x86
cd /d ./build-qt/HGSolution/HGScanner
qmake -r -tp vc HGScanner.pro
%BUILD_CMD% HuaGoScan.vcxproj /p:Configuration=Release /p:Platform=x86
del /f /s /q *.h
del /f /s /q .qmake.stash
del /f /s /q HuaGoScan_resource.rc
del /f /s /q HuaGoScan.vcxproj.filters
del /f /s /q HuaGoScan.vcxproj
rd /s /q debug
rd /s /q release
cd /d ../HGUpgrade
qmake -r -tp vc HGUpgrade.pro
%BUILD_CMD% HuaGoScanUpgrade.vcxproj /p:Configuration=Release /p:Platform=x86
del /f /s /q *.h
del /f /s /q .qmake.stash
del /f /s /q HuaGoScanUpgrade_resource.rc
del /f /s /q HuaGoScanUpgrade.vcxproj.filters
del /f /s /q HuaGoScanUpgrade.vcxproj
rd /s /q debug
rd /s /q release