Note
An attempt to build a text editor, gone horribly horribly wrong, I over-engineered everything, from the build system to the code abstractions. Restarted with a cleaner approach at https://github.com/printfdebugging/roots.
- Windows
- Install MSYS2 with
winget install MSYS2.MSYS2 - Add
C:\msys64\clang64\binto PATH- You can do that from the Edit the system environment variables dialog
- Or run this command (from the codeblock below) in Powershell
- Install Git with
winget install Git.Git - Install VSCode with
winget install Microsoft.VisualStudioCode
- Install MSYS2 with
if ($env:Path -notlike "*C:\msys64\clang64\bin*") { [Environment]::SetEnvironmentVariable("Path", [Environment]::GetEnvironmentVariable("Path", "User") + ";C:\msys64\clang64\bin", "User") }- On Windows, open the
MSYS2 CLANG64shell - On Linux, use "THE BASH"
- Run
./external/scripts/dependencies.sh, this installs compilers, build tools etc
Note
dependencies.sh only installs packages for Archlinux and MSYS2. If you
use some other distribution, feel free to find the equivalent package
names and add them to the script, thanks!
git submodule update --init --recursive # downloads half the internet, sorry!
# build and install (locally) the external libraries
make -C external install
# build the project itself
cmake -B build
cmake --build build
# run the editor
./build/editor