1.3 KiB
1.3 KiB
Building on Windows with vcpkg
Prerequisites
- Install Visual Studio with "Desktop development with C++" (~9.66 GB)
- Install CMake (~109 MB)
- Install git (~264 MB)
- Install vcpkg (~80 MB)
git clone https://github.com/Microsoft/vcpkg.gitcd .\vcpkg\.\bootstrap-vcpkg.bat.\vcpkg integrate install.\vcpkg integrate powershellcd ..
- Configure the environment for vcpkg
set VCPKG_DEFAULT_TRIPLET=x64-windows- default is
x86-windows
- default is
set VCPKG_ROOT=C:\path\to\vcpkg\set PATH=%PATH%;%VCPKG_ROOT%
Building
- Clone
git clone --recurse-submodules https://github.com/Chatterino/chatterino2.git
- Install dependencies (~21 GB)
cd .\chatterino2\vcpkg install
- Build
mkdir .\build\cd .\build\- (cmd)
cmake .. -DCMAKE_TOOLCHAIN_FILE=%VCPKG_ROOT%/scripts/buildsystems/vcpkg.cmake - (ps1)
cmake .. -DCMAKE_TOOLCHAIN_FILE="$env:VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake" cmake --build . --parallel <threads> --config Release
- Run
.\bin\chatterino2.exe