The meson plugin

The meson plugin is useful for building Meson-based parts.

Projects using the Meson build system will contain a meson.build file that drives the build, and the plugin runs the following to build your project:

  1. meson snapbuild
  2. ninja
  3. ninja install

This plugin uses the common plugin keywords as well as those for “sources”. For more information, see Snapcraft parts metadata.

Additionally, this plugin uses the following plugin-specific keywords:

  • meson-parameters (list of strings)
    Pass the given parameters to the meson command.

For examples, search GitHub for projects already using the plugin.

This is a snapcraft plugin. See Snapcraft plugins and Supported plugins for further details on how plugins are used.

Last updated 23 days ago. Help improve this document in the forum.