13 lines
584 B
Batchfile
13 lines
584 B
Batchfile
@echo off
|
|||
|
|
setlocal
|
||
|
|
rem Run from an x64 MSVC Native Tools prompt. Output defaults to native/build.
|
||
|
|
if "%~1"=="" (set "PROBE_OUT=%~dp0build") else (set "PROBE_OUT=%~f1")
|
||
|
|
if not exist "%PROBE_OUT%" mkdir "%PROBE_OUT%"
|
||
|
|
pushd "%PROBE_OUT%"
|
||
|
|
cl /nologo /O2 /MT /LD "%~dp0math_probe.cpp" /Fe:math_probe.dll /link windowsapp.lib user32.lib
|
||
|
|
if errorlevel 1 exit /b 1
|
||
|
|
cl /nologo /O2 /MT /LD "%~dp0search_probe.cpp" /Fe:search_probe.dll /link windowsapp.lib user32.lib
|
||
|
|
if errorlevel 1 exit /b 1
|
||
|
|
cl /nologo /O2 /MT "%~dp0discovery_check.cpp" /Fe:discovery_check.exe
|
||
|
|
if errorlevel 1 exit /b 1
|
||
|
|
popd
|