OSDN Git Service

ShellExtension: The feature that prioritizes the language used by WinMerge over the...
[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 ) else (
15   call :BuildBin %1 
16 )
17
18 goto :eof
19
20 :BuildBin
21 set PLATFORM=%1
22 if "%1" == "" (
23   set PLATFORM_VS=Win32
24   set DLLFILENAME=ShellExtensionU.dll
25 ) else (
26   set PLATFORM_VS=%1
27   set DLLFILENAME=ShellExtension%1.dll
28 )
29 MSBuild ShellExtension.vs2019.sln /t:Rebuild /p:Configuration="Unicode Release MinDependency" /p:Platform="%PLATFORM_VS%" || pause
30 endlocal
31
32 if exist "%SIGNBAT_PATH%" (
33   call "%SIGNBAT_PATH%" "Build\%PLATFORM%\ShellExtensionUnicode Release MinDependency\%DLLFILENAME%"
34 )
35
36 goto :eof