.vscode | ||
examples/helloworld | ||
src | ||
subprojects | ||
.clang-format | ||
.clangd | ||
bong_grammar.txt | ||
LICENSE | ||
meson.build | ||
README.md |
web-stack-project
Build project
- Open project in terminal
- Run
meson setup builddir
, orCXX=clang-<version> meson setup builddir
if clang and clang-version is different - Navigate into builddir,
cd builddir
- Compile
meson compile
- Run,
./browser
or./server
Toolchain
Linux
Install clang preferably clang-15
or clang-14
;
Windows
- Install Visual Studio, with
Desktop development with C++
enabled - Install a newer LLVM
VS Code development setup
Install Linux
- LLVM and clang,
clang-15
recommended,clang-15
based, check withclang --version
- Meson, build system
- Meson VS Code extension
- VSCode - clangd, linter
- VSCode - CodeLLDB, debugger
- VSCode - Better C++ Syntax, syntax higlighting
Config
Add these to settings.json
if necessary
{
// probably necessary
"clangd.onConfigChanged": "restart",
// only necessary if default `/usr/bin/clangd` isn't the correct version
"clangd.path": "/usr/bin/clangd-<version>", // <version> is a place holder, eg, `clangd-15`
}