nykma / spdlog_meson_sample

A simple C++ project using spdlog and mason

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A simple C++ project using spdlog and mason

Usage

git clone https://github.com/nykma/spdlog_meson_sample.git && cd spdlog_meson_sample
meson builddir
cd builddir
ninja
./main

FAQ

How to add more dependency libraries?

  1. Find a .wrap file for your dependency on WrapDB (or write one by your own).
  2. put the .wrap file under subprojects/.
  3. meson subprojects download
  4. meson --reconfigure builddir
  5. cd builddir && ninja && ./main

How to satisfy my IDE to do code completion / documentation job?

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.

Your boilerplate sucks / That’s not the best practice / …

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?).

See also

Meson

spdlog

About

A simple C++ project using spdlog and mason


Languages

Language:C++ 68.3%Language:Meson 31.7%