OSDN Git Service

Update Turkish.po
[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" -version [16.0^,17.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 ARM64 || goto :eof
17   call :BuildBin x64 || goto :eof
18 ) else (
19   call :BuildBin %1 || goto :eof
20 )
21
22 goto :eof
23
24 :BuildBin
25 set PLATFORM=%1
26 if "%1" == "" (
27   set PLATFORM_VS=Win32
28 ) else (
29   set PLATFORM_VS=%1
30 )
31 if "%PLATFORM_VS%" == "Win32" (
32   set PLATFORM_DIR=
33 ) else (
34   set PLATFORM_DIR=%PLATFORM_VS%
35 )
36 MSBuild WinMerge.vs2019.sln /t:Rebuild /p:Configuration="Release" /p:Platform="%PLATFORM_VS%" || goto :eof
37 endlocal
38
39 if exist "%SIGNBAT_PATH%" (
40   call "%SIGNBAT_PATH%" Build\%PLATFORM_DIR%\Release\WinMergeU.exe
41 )
42
43 mkdir Build\%PLATFORM_DIR%\Release\%APPVER% 2> NUL
44 copy Build\%PlATFORM_DIR%\Release\*.pdb "Build\%PLATFORM_DIR%\Release\%APPVER%\"
45 goto :eof