-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathbuild-ifaceed-msvc.bat
33 lines (30 loc) · 1.28 KB
/
build-ifaceed-msvc.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
@echo off
SET VALID=0
SET PLATFORMVALID=0
SET CHECKQTVERTOOL="bin/isqt580-debug.exe"
if [%1] EQU [Debug] SET VALID=1
if [%1] EQU [Release] SET VALID=1
if [%1] EQU [Release] SET CHECKQTVERTOOL="bin/isqt580-release.exe"
if [%2] EQU [Win32] SET PLATFORMVALID=1
if [%2] EQU [x64] SET PLATFORMVALID=1
if [%PLATFORMVALID%] EQU [0] (
echo Build script for IFaceEd for Microsoft Visual C++ 2017. Just run it from Command line of Visual Studio
echo Syntax:
echo build-ifaceed-msvc.bat "[Debug|Release]" "[Win32|x64]"
exit /B 1
)
if [%VALID%] EQU [0] (
echo Build script for IFaceEd for Microsoft Visual C++ 2017. Just run it from Command line of Visual Studio
echo Syntax:
echo build-ifaceed-msvc.bat "[Debug|Release]" "[Win32|x64]"
exit /B 1
)
@echo on
msbuild libsaddy.vcxproj /m /verbosity:minimal /p:Configuration="%1" /p:Platform="%2" /p:BuildProjectReferences=false || goto :error
msbuild plugins/freetype/saddy-ft.vcxproj /m /verbosity:minimal /p:Configuration="%1" /p:Platform="%2" /p:BuildProjectReferences=false || goto :error
msbuild tools/ifaceed/ifaceed/ifaceed.vcxproj /m /verbosity:minimal /p:Configuration="%1" /p:Platform="%2" /p:BuildProjectReferences=false || goto :error
goto :EOF
:error
type lastsolutionbuild.log
echo Failed with error #%errorlevel%.
exit /b %errorlevel%