OSDN Git Service

Remove USES_CONVERSION
[winmerge-jp/winmerge-jp.git] / ShellExtension / BuildBin.vs2019.cmd
1 cd /d "%~dp0"
2
3 setlocal
4 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 (
5   set InstallDir=%%i
6 )
7 if exist "%InstallDir%\Common7\Tools\vsdevcmd.bat" (
8   call "%InstallDir%\Common7\Tools\vsdevcmd.bat
9 )
10
11 if "%1" == "" (
12   call :BuildBin
13   call :BuildBin x64
14   call :BuildBin ARM64
15 ) else (
16   call :BuildBin %1 
17 )
18
19 goto :eof
20
21 :BuildBin
22 set PLATFORM=%1
23 if "%1" == "" (
24   set PLATFORM_VS=Win32
25   set DLLFILENAME=ShellExtensionU.dll
26 ) else (
27   set PLATFORM_VS=%1
28   set DLLFILENAME=ShellExtension%1.dll
29 )
30 MSBuild ShellExtension.vs2019.sln /t:Rebuild /p:Configuration="Release" /p:Platform="%PLATFORM_VS%" || pause
31 endlocal
32
33 if exist "%SIGNBAT_PATH%" (
34   call "%SIGNBAT_PATH%" "Build\%PLATFORM%\Release\%DLLFILENAME%"
35 )
36
37 goto :eof