-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Expand file tree
/
Copy pathbuild_vs2026.bat
More file actions
24 lines (22 loc) · 837 Bytes
/
Copy pathbuild_vs2026.bat
File metadata and controls
24 lines (22 loc) · 837 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
@echo off
rem Use this batch file to generate Visual Studio 2026 project files for box2d.
rem
rem Usage:
rem build_vs2026.bat Configure or update project files in build\
rem build_vs2026.bat fresh Delete build\ first, then configure from scratch
rem
rem Re-running without "fresh" updates the existing project files in place.
rem CMake rewrites .vcxproj/.sln files atomically, so this works even while
rem Visual Studio has the solution open -- VS will detect the change and
rem prompt to reload.
if /i "%~1"=="fresh" (
if exist build (
echo Fresh build requested, removing build\ ...
rmdir /s /q build
if exist build (
echo ERROR: failed to remove build\ -- is something holding files open?
exit /b 1
)
)
)
cmake -S . -B build -G "Visual Studio 18 2026"