18 lines
518 B
Batchfile
18 lines
518 B
Batchfile
@REM This script should be run from the VS dev prompt
|
|
@echo off
|
|
setlocal
|
|
set tools_dir=%~dp0
|
|
set repo_dir=%tools_dir%\..
|
|
set build_dir=%repo_dir%\build
|
|
mkdir %build_dir% 2> nul
|
|
if exist %build_dir%\Debug (
|
|
rmdir /s /q %build_dir%\Debug
|
|
)
|
|
if exist %build_dir%\Release (
|
|
rmdir /s /q %build_dir%\Release
|
|
)
|
|
cmake.exe -G "Visual Studio 17 2022" -B %build_dir% -S %repo_dir%
|
|
copy /y %tools_dir%\cpp.build.props %build_dir%\Directory.Build.Props
|
|
del %build_dir%\spark.sln
|
|
%tools_dir%\nuget_restore.cmd
|