git clone https://github.com/nykma/spdlog_meson_sample.git && cd spdlog_meson_sample
meson builddir
cd builddir
ninja
./main
- Find a
.wrap
file for your dependency on WrapDB (or write one by your own). - put the
.wrap
file undersubprojects/
. meson subprojects download
meson --reconfigure builddir
cd builddir && ninja && ./main
If your LSP or IDE supports compile_commands.json
config (such as ccls),
this JSON file is already generated by meson, which is lying in builddir
folder.
Yes I know I’m not a player of the C world (which is too scary for me :). Just doing this for my own archive (or perhaps helping some other unlucky guys I guess?).