The qmake plugin

The qmake plugin is useful when building qmake-based parts.

Qmake-based projects typically use Qt, although not always, and are built using .pro files.

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

Additional features and syntax are dependent on which base is being used, as outlined below:

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.

base: core20

This plugin uses the following plugin-specific keywords:

  • qmake-parameters (list of strings) additional options to pass to the qmake invocation.
  • qmake-project-file (string) the qmake project file to use. This is usually only needed if qmake can not determine what project file to use on its own.

base: core18 | core

This plugin uses the following plugin-specific keywords:

  • options (list of strings) additional options to pass to the qmake invocation.
  • qt-version (string; default: qt5) Version of Qt to use with qmake. Valid options are: qt4 and qt5.
  • project-files (list of strings) list of .pro files to pass to the qmake invocation.

This doc looks quite outdated:

This plugin is only available to core and core18 based snaps. See Base snaps for details.

The parameters changed, too:

1 Like

Thanks for the heads-up. I’ll update the page (and this comment when it’s done).

Edit (31/03): now updated - thanks for linking to the commit.