mirror of https://github.com/M2Team/NanaZip.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
791 B
23 lines
791 B
@setlocal
|
|
@echo off
|
|
|
|
rem Change to the current folder.
|
|
cd "%~dp0"
|
|
|
|
rem Remove the output folder for a fresh compile.
|
|
rd /s /q Output
|
|
|
|
rem Initialize Visual Studio environment
|
|
set VisualStudioInstallerFolder="%ProgramFiles(x86)%\Microsoft Visual Studio\Installer"
|
|
if %PROCESSOR_ARCHITECTURE%==x86 set VisualStudioInstallerFolder="%ProgramFiles%\Microsoft Visual Studio\Installer"
|
|
pushd %VisualStudioInstallerFolder%
|
|
for /f "usebackq tokens=*" %%i in (`vswhere -latest -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath`) do (
|
|
set VisualStudioInstallDir=%%i
|
|
)
|
|
popd
|
|
call "%VisualStudioInstallDir%\VC\Auxiliary\Build\vcvarsall.bat" x86
|
|
|
|
rem Build all targets
|
|
MSBuild -binaryLogger:Output\BuildAllTargets.binlog -m BuildAllTargets.proj
|
|
|
|
@endlocal
|