Skip to content

Support modules that are built with Meson

Kjell Ahlstedt requested to merge wip/kjellahl/meson-build into master

For a long time the mm-common-prepare command has been used by modules (glibmm, gtkmm and others) that are built with Autotools. Now it's time to update mm-common-prepare so it can also be used by modules built with Meson.

mm-common serves other modules with different kinds of files:

  • Autoconf M4 macros in mm-common/macros/
    They are useful only for modules built with Autotools.

  • Automake include files in mm-common/am_include/
    They are useful only for modules built with Autotools.

  • Documentation utilities in mm-common/util/
    They are useful for all modules that build documentation with Doxygen.

  • The GNU C++ Library tag file at mm-common/doctags/libstdc++.tag
    It's useful for all modules that build documentation with Doxygen.

  • Shell build scripts in mm-common/util/build_scripts/
    They are new files in this MR, intended to be useful for modules built with Meson.

In a module built with Meson there is no configure.ac file for mm-common-prepare to read. I have added mm-common-prepare options that specify where it shall store documentation utilities and shell scripts.

pangomm!4 (merged) shows how this new feature in mm-common can be used.

mm-common/skeletonmm/ has not been updated yet. It's still a start point for a module built with Autotools. Shall the Autotools version of skeletonmm/ be kept? Or shall it be removed when there is a Meson version of it?

Edited by Kjell Ahlstedt

Merge request reports