GNOME Bugzilla – Bug 797236
Auto-set introspection options for Meson recipes
Last modified: 2018-10-03 12:10:23 UTC
This is needed for porting more recipes to Meson.
Created attachment 373823 [details] [review] cerbero: auto-set introspection options for meson This makes meson recipes have the same behaviour as Autotools recipes.
Created attachment 373824 [details] [review] json-glib.recipe: Update to 1.4.4 Upstream has dropped autotools.
Review of attachment 373823 [details] [review]: This parsing of meson_options is incredibly ugly.. You really need to have meson provide this to us.
(In reply to Olivier Crête from comment #3) > Review of attachment 373823 [details] [review] [review]: > > This parsing of meson_options is incredibly ugly.. You really need to have > meson provide this to us. Yes, but we can't block on upstream adding an interface for it and then waiting for it to reach a release. The alternative, of course, is to duplicate this logic in every recipe but that's less clean than doing this now and then replacing it once upstream fixes it. Note that this is not any different than autotools in which we just always pass --enable/disable-introspection without even checking if that option exists. Difference is, there we just get a warning.
Attachment 373823 [details] pushed as d253fef - cerbero: auto-set introspection options for meson Attachment 373824 [details] pushed as 86d8026 - json-glib.recipe: Update to 1.4.4
Also, the long-term fix for this is to have all projects use feature options for introspection, and to call the option 'introspection'. F.ex., gdk-pixbuf calls it 'gir'.