linux-hunter
linux-hunter copied to clipboard
Initial implementation of meson build system.
Commands to compile:
- Setup build directory:
meson setup --buildtype=release build
- Switch to build directory:
cd build
- Use
ninja
to compile. Compiled executable will be in the build directory - Optionally install it in to the system:
ninja install
- To uninstall:
ninja uninstall
This is not final. I need to update README with new instructions.
With this we would have both the legacy makefile
and more strategic meson setup? Apologies for silly question but I've only used cmake a couple of times before...not really familiar with meson.
I was thinking about removing make file after finishing the README instructions.
It is also possible for make file to be a backward compatible stub that calls meson and ninja how systemd has it: https://github.com/systemd/systemd/blob/main/Makefile
I've only used cmake a couple of times before...not really familiar with meson.
It is quite simple. The biggest difference from classical autotools and make files is that building happens in a build directory. Meson website has a good tutorial: https://mesonbuild.com/Quick-guide.html#compiling-a-meson-project
@Emanem I added meson instructions in to README.
I also created a Github Actions workflow to verify that code compiles.