GNOME Bugzilla – Bug 769881
Preliminary Meson build files
Last modified: 2017-05-20 06:35:38 UTC
Created attachment 333271 [details] Build files Very rudimentary build files for GTK+. Builds, links and can run the helloworld app but has many limitations including: - against version 3.18.9 instead of trunk - builds only on Linux/X - mkenums/genmarshal is hacky (needs updates to glib programs to properly fix) - may eat your cat Enjoy
Created attachment 333282 [details] Config.h template I forgot to add config.h.meson to the tar file so here it is.
Apparently if you try this it will complain about a missing template file gdkconfig.h.in or something similar. There did not seem to be a template file in gtk proper. I just put in an dummy file (with just a #pragma once). The code compiled just fine so I'm not sure what the file is for or what its contents should be.
This doesn't seem to quite work yet on a clean repo. Might be easier to just do a single patch btw :) First issue was that it complained about gdk/gdkconfig.h.in missing, a touch 'fixed' that. Next is: Meson encountered an error in file gtk/meson.build, line 374, column 0: File gtkmarshalers.c does not exist. These (gtkmarshalers.[ch]) need to be generated from gtkmarshalers.list with glib-genmarshal (there should probably be a function for that in the meson gnome module).
The patch is against a release tarball rather than git. Compiling against git would need to add the marshaling generator call.
This doesn't seem to build any of the binaries (build tools like gtk-query-immodules, examples, demos, et) or the docs. gdkconfig.h is generated by configure, but not from a .in template.
I guess we can close this now since wip/meson has been merged into master.