OSDN Git Service

Add the feature "Go to Moved Line". (#484)
[winmerge-jp/winmerge-jp.git] / BuildBin.vs2017.cmd
1 cd /d "%~dp0"
2
3 call SetVersion.cmd
4 cscript /nologo ExpandEnvironmenStrings.vbs Version.in > Version.h
5
6 setlocal
7 for /f "usebackq tokens=*" %%i in (`"%programfiles(x86)%\microsoft visual studio\installer\vswhere.exe" -version [15.0^,16.0^) -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath`) do (
8   set InstallDir=%%i
9 )
10 if exist "%InstallDir%\Common7\Tools\vsdevcmd.bat" (
11   call "%InstallDir%\Common7\Tools\vsdevcmd.bat
12 )
13
14 if "%1" == "" (
15   call :BuildBin || goto :eof
16   call :BuildBin x64 || goto :eof
17 ) else (
18   call :BuildBin %1 || goto :eof
19 )
20
21 goto :eof
22
23 :BuildBin
24 set PLATFORM=%1
25 if "%1" == "" (
26   set PLATFORM_VS=Win32
27 ) else (
28   set PLATFORM_VS=%1
29 )
30 if "%PLATFORM_VS%" == "Win32" (
31   set PLATFORM_DIR=
32 ) else (
33   set PLATFORM_DIR=%PLATFORM_VS%
34 )
35 MSBuild WinMerge.vs2017.sln /t:Rebuild /p:Configuration="Release" /p:Platform="%PLATFORM_VS%" || goto :eof
36 endlocal
37
38 if exist "%SIGNBAT_PATH%" (
39   call "%SIGNBAT_PATH%" Build\%PLATFORM_DIR%\Release\WinMergeU.exe
40 )
41
42 mkdir Build\%PLATFORM_DIR%\Release\%APPVER% 2> NUL
43 copy Build\%PlATFORM_DIR%\Release\*.pdb "Build\%PLATFORM_DIR%\Release\%APPVER%\"
44 goto :eof