After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 769881 - Preliminary Meson build files
Preliminary Meson build files
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: .General
3.19.x
Other All
: Normal enhancement
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2016-08-14 09:16 UTC by Jussi Pakkanen
Modified: 2017-05-20 06:35 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Build files (5.89 KB, application/x-gzip)
2016-08-14 09:16 UTC, Jussi Pakkanen
Details
Config.h template (8.12 KB, text/x-csrc)
2016-08-14 11:50 UTC, Jussi Pakkanen
Details

Description Jussi Pakkanen 2016-08-14 09:16:27 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
Comment 1 Jussi Pakkanen 2016-08-14 11:50:25 UTC
Created attachment 333282 [details]
Config.h template

I forgot to add config.h.meson to the tar file so here it is.
Comment 2 Jussi Pakkanen 2016-08-14 13:41:02 UTC
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.
Comment 3 Tim-Philipp Müller 2016-08-14 13:53:40 UTC
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).
Comment 4 Jussi Pakkanen 2016-08-14 17:51:19 UTC
The patch is against a release tarball rather than git. Compiling against git would need to add the marshaling generator call.
Comment 5 Matthias Clasen 2016-08-15 12:34:45 UTC
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.
Comment 6 Timm Bäder 2017-05-20 06:35:38 UTC
I guess we can close this now since wip/meson has been merged into master.