1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-15 20:29:03 +00:00
Files
nmap/mswin32/Build.bat
2021-07-28 20:29:28 +00:00

16 lines
474 B
Batchfile

@echo off
set TARGET=%1
set VCCONFIG=%2
for /f "usebackq delims=#" %%a in (`"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere" -version 16 -property installationPath`) do call "%%a\VC\Auxiliary\Build\vcvarsall.bat" x86
@echo on
if "%TARGET%" == "Vars" ( goto :vars )
msbuild -nologo nmap.sln -m -t:%TARGET% -p:Configuration="%VCCONFIG%" -p:Platform="Win32" -fl
exit /b %errorlevel%
:vars
cl.exe /nologo /EP make-vars.h > make-vars.make
exit /b %errorlevel%