linux-hunter icon indicating copy to clipboard operation
linux-hunter copied to clipboard

Initial implementation of meson build system.

Open igo95862 opened this issue 3 years ago • 3 comments

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.

igo95862 avatar Aug 11 '21 19:08 igo95862

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.

Emanem avatar Aug 11 '21 20:08 Emanem

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

igo95862 avatar Aug 11 '21 20:08 igo95862

@Emanem I added meson instructions in to README.

I also created a Github Actions workflow to verify that code compiles.

igo95862 avatar Aug 14 '21 17:08 igo95862