forked from dokan-dev/dokany
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.bat
62 lines (54 loc) · 4.54 KB
/
build.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
@setlocal ENABLEDELAYEDEXPANSION
REM Build release to prepare for packaging
REM Make sure MSBUILD is available
FOR /f "delims=" %%A IN (
'"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -property installationPath'
) DO SET "VS_PATH=%%A"
SET MSBUILD_BIN_PATH=%VS_PATH%\MSBuild\15.0\Bin
IF NOT EXIST "%VS_PATH%" (
ECHO Visual C++ 2017 NOT Installed.
PAUSE
EXIT /B
)
set PATH=%PATH%;%MSBUILD_BIN_PATH%
SET failed=0
REM Enable AppVeyor build message logging if running under AppVeyor
IF "%APPVEYOR%"=="True" set CI_BUILD_ARG="/l:C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
REM Build
msbuild dokan.sln /p:Configuration=Release /p:Platform=Win32 /t:Build !CI_BUILD_ARG! || set failed=%ERRORLEVEL%
msbuild dokan.sln /p:Configuration=Release /p:Platform=x64 /t:Build !CI_BUILD_ARG! || set failed=%ERRORLEVEL%
msbuild dokan.sln /p:Configuration=Release /p:Platform=ARM /t:Build !CI_BUILD_ARG! || set failed=%ERRORLEVEL%
msbuild dokan.sln /p:Configuration=Release /p:Platform=ARM64 /t:Build !CI_BUILD_ARG! || set failed=%ERRORLEVEL%
msbuild dokan.sln /p:Configuration="Win7 Release" /p:Platform=Win32 /t:Build !CI_BUILD_ARG! || set failed=%ERRORLEVEL%
msbuild dokan.sln /p:Configuration="Win7 Release" /p:Platform=x64 /t:Build !CI_BUILD_ARG! || set failed=%ERRORLEVEL%
msbuild dokan.sln /p:Configuration="Win8 Release" /p:Platform=Win32 /t:Build !CI_BUILD_ARG! || set failed=%ERRORLEVEL%
msbuild dokan.sln /p:Configuration="Win8 Release" /p:Platform=x64 /t:Build !CI_BUILD_ARG! || set failed=%ERRORLEVEL%
msbuild dokan.sln /p:Configuration="Win8 Release" /p:Platform=ARM /t:Build !CI_BUILD_ARG! || set failed=%ERRORLEVEL%
msbuild dokan.sln /p:Configuration="Win8.1 Release" /p:Platform=Win32 /t:Build !CI_BUILD_ARG! || set failed=%ERRORLEVEL%
msbuild dokan.sln /p:Configuration="Win8.1 Release" /p:Platform=x64 /t:Build !CI_BUILD_ARG! || set failed=%ERRORLEVEL%
msbuild dokan.sln /p:Configuration="Win8.1 Release" /p:Platform=ARM /t:Build !CI_BUILD_ARG! || set failed=%ERRORLEVEL%
msbuild dokan.sln /p:Configuration="Win10 Release" /p:Platform=Win32 /t:Build !CI_BUILD_ARG! || set failed=%ERRORLEVEL%
msbuild dokan.sln /p:Configuration="Win10 Release" /p:Platform=x64 /t:Build !CI_BUILD_ARG! || set failed=%ERRORLEVEL%
msbuild dokan.sln /p:Configuration="Win10 Release" /p:Platform=ARM /t:Build !CI_BUILD_ARG! || set failed=%ERRORLEVEL%
msbuild dokan.sln /p:Configuration="Win10 Release" /p:Platform=ARM64 /t:Build !CI_BUILD_ARG! || set failed=%ERRORLEVEL%
msbuild dokan.sln /p:Configuration=Debug /p:Platform=Win32 /t:Build !CI_BUILD_ARG! || set failed=%ERRORLEVEL%
msbuild dokan.sln /p:Configuration=Debug /p:Platform=x64 /t:Build !CI_BUILD_ARG! || set failed=%ERRORLEVEL%
msbuild dokan.sln /p:Configuration=Debug /p:Platform=ARM /t:Build !CI_BUILD_ARG! || set failed=%ERRORLEVEL%
msbuild dokan.sln /p:Configuration=Debug /p:Platform=ARM64 /t:Build !CI_BUILD_ARG! || set failed=%ERRORLEVEL%
msbuild dokan.sln /p:Configuration="Win7 Debug" /p:Platform=Win32 /t:Build !CI_BUILD_ARG! || set failed=%ERRORLEVEL%
msbuild dokan.sln /p:Configuration="Win7 Debug" /p:Platform=x64 /t:Build !CI_BUILD_ARG! || set failed=%ERRORLEVEL%
msbuild dokan.sln /p:Configuration="Win8 Debug" /p:Platform=Win32 /t:Build !CI_BUILD_ARG! || set failed=%ERRORLEVEL%
msbuild dokan.sln /p:Configuration="Win8 Debug" /p:Platform=x64 /t:Build !CI_BUILD_ARG! || set failed=%ERRORLEVEL%
msbuild dokan.sln /p:Configuration="Win8 Debug" /p:Platform=ARM /t:Build !CI_BUILD_ARG! || set failed=%ERRORLEVEL%
msbuild dokan.sln /p:Configuration="Win8.1 Debug" /p:Platform=Win32 /t:Build !CI_BUILD_ARG! || set failed=%ERRORLEVEL%
msbuild dokan.sln /p:Configuration="Win8.1 Debug" /p:Platform=x64 /t:Build !CI_BUILD_ARG! || set failed=%ERRORLEVEL%
msbuild dokan.sln /p:Configuration="Win8.1 Debug" /p:Platform=ARM /t:Build !CI_BUILD_ARG! || set failed=%ERRORLEVEL%
msbuild dokan.sln /p:Configuration="Win10 Debug" /p:Platform=Win32 /t:Build !CI_BUILD_ARG! || set failed=%ERRORLEVEL%
msbuild dokan.sln /p:Configuration="Win10 Debug" /p:Platform=x64 /t:Build !CI_BUILD_ARG! || set failed=%ERRORLEVEL%
msbuild dokan.sln /p:Configuration="Win10 Debug" /p:Platform=ARM /t:Build !CI_BUILD_ARG! || set failed=%ERRORLEVEL%
msbuild dokan.sln /p:Configuration="Win10 Debug" /p:Platform=ARM64 /t:Build !CI_BUILD_ARG! || set failed=%ERRORLEVEL%
IF EXIST C:\cygwin64 ( Powershell.exe -executionpolicy remotesigned -File dokan_fuse/build.ps1 || set failed=%ERRORLEVEL% ) ELSE ( echo "Cygwin/Msys2 build disabled" )
@if !failed! neq 0 (
echo At least one build-command failed. The last command that failed returned with error !failed! 1>&2
exit /b !failed!
)