-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild_win.bat
More file actions
32 lines (27 loc) · 880 Bytes
/
Copy pathbuild_win.bat
File metadata and controls
32 lines (27 loc) · 880 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
25
26
27
28
29
30
31
32
@echo off
REM Windows build script for VCS
REM Requires: CMake, Visual Studio Build Tools, OpenSSL, nlohmann_json
REM Check for CMake
where cmake >nul 2>nul || (
echo CMake not found. Please install CMake and add it to your PATH.
exit /b 1
)
REM Check for cl (MSVC compiler)
where cl >nul 2>nul || (
echo MSVC compiler not found. Please install Visual Studio Build Tools and add to PATH.
exit /b 1
)
REM Check for vcpkg
where vcpkg >nul 2>nul || (
echo vcpkg not found. Please install vcpkg and add it to your PATH.
exit /b 1
)
REM Install dependencies with vcpkg
vcpkg install openssl nlohmann-json
REM Configure and build
if not exist build mkdir build
cd build
cmake -G "NMake Makefiles" -DCMAKE_TOOLCHAIN_FILE=%VCPKG_ROOT%\scripts\buildsystems\vcpkg.cmake ..
nmake
copy vcs.exe ..
echo Build complete! You can now use vcs.exe from this directory.