OSDN Git Service

In Preparation for VS2019 (now in Preview) (2)
[winmerge-jp/winmerge-jp.git] / BuildBin.vs2019.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" -latest -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 MSBuild WinMerge.vs2019.sln /t:Rebuild /p:Configuration="Release Unicode" /p:Platform="Win32" || pause
14 MSBuild WinMerge.vs2019.sln /t:Rebuild /p:Configuration="Release Unicode" /p:Platform="x64" || pause
15 endlocal
16
17 if exist "%SIGNBAT_PATH%" (
18   call "%SIGNBAT_PATH%" Build\MergeUnicodeRelease\WinMergeU.exe
19   call "%SIGNBAT_PATH%" Build\MergeUnicodeRelease\MergeLang.dll
20   call "%SIGNBAT_PATH%" Build\x64\MergeUnicodeRelease\WinMergeU.exe
21   call "%SIGNBAT_PATH%" Build\x64\MergeUnicodeRelease\MergeLang.dll
22 )
23
24 mkdir Build\MergeUnicodeRelease\%APPVER% 2> NUL
25 mkdir Build\x64\MergeUnicodeRelease\%APPVER% 2> NUL
26 copy Build\MergeUnicodeRelease\*.pdb "Build\MergeUnicodeRelease\%APPVER%\"
27 copy Build\x64\MergeUnicodeRelease\*.pdb "Build\x64\MergeUnicodeRelease\%APPVER%\"