Meson build options introspection

Authored by dmensinger on Jan 11 2019, 11:10 PM.



This adds basic meson introspection support based on the meson API
for 0.50.0 (current meson master branch).

This patch also adds a GUI for changing all build options for a
build directory.

Test Plan

For a new build directory:

  • Use the development version of meson
  • Make a new build directory and set the meson executable in the advanced options
  • The default build options should load after this
  • Play around with the options
  • Click OK and manually check with meson configure that the build options are correct

For an existing build directory:

  • Open the meson project configuration
  • The current options should be complete and match the actual values from meson configure
  • Changing and aplying changes should also update the meson configuration
  • Nothing should segfault :)

Diff Detail

R32 KDevelop
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.
dmensinger created this revision.Jan 11 2019, 11:10 PM
Restricted Application added a project: KDevelop. · View Herald TranscriptJan 11 2019, 11:10 PM
Restricted Application added a subscriber: kdevelop-devel. · View Herald Transcript
dmensinger requested review of this revision.Jan 11 2019, 11:10 PM
  • Fixed build options order
  • Refactored new build dir to avoid duplicate configures
  • More polish for the New build dir dialog
apol accepted this revision.Jan 14 2019, 1:32 PM
apol added a subscriber: apol.

Looks good to me. In general I'd say you can feel free to develop the plugin and only run it through review if you want feedback on specific bits.

This revision is now accepted and ready to land.Jan 14 2019, 1:32 PM

Sure, thanks. But how do I do that? Can I just push the commits?

This revision was automatically updated to reflect the committed changes.