-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathgen_sln.bat
More file actions
23 lines (18 loc) · 738 Bytes
/
gen_sln.bat
File metadata and controls
23 lines (18 loc) · 738 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
@echo off
setlocal
call "C:\Program Files\Microsoft Visual Studio\18\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64 >nul 2>&1
set "SRC=%~dp0."
set "OUT=%~dp0build\vs"
set "GEN=Visual Studio 18 2026"
echo === Generating %GEN% Solution ===
cmake -S "%SRC%" -B "%OUT%" -G "%GEN%" -A x64
if %ERRORLEVEL% NEQ 0 (
echo === Generation FAILED ===
exit /b 1
)
echo === Solution generated at build\vs\CE-Handwire.sln ===
echo.
echo NOTE: version_info.h (git hash / branch / commit count) is auto-generated
echo as a custom build step inside the VS project. It is regenerated
echo whenever .git\HEAD or .git\index changes (i.e. on commit or stage).
echo No manual action required — just Build Solution as usual.