Commit Graph

50472 Commits

Author SHA1 Message Date
Tim-Philipp Müller
cfd765e525 meson: gdk: wayland: generate private wayland headers first
gdkprivate-wayland.h includes generated wayland client protocol
headers and is included from gdkdisplaymanager.c, so we need to
generate those client protocol headers first also when building
main gdk itself.
2017-04-28 23:12:52 +01:00
Tim-Philipp Müller
1781fa611b meson: gdk: add Mir backend bits
Completely untested, might not even build.
2017-04-28 23:12:52 +01:00
Tim-Philipp Müller
315cac442b meson: gdk: build individual backends as static libs
This is how it's done in the autotools build. Also avoids problems
with multiple source files having the same name (gdkeventsource.c).

Also move broadway backend code into broadway subdir.
2017-04-28 23:12:52 +01:00
Tim-Philipp Müller
b955dc72cd meson: gdk: wayland: move wayland bits into wayland subdir 2017-04-28 23:12:52 +01:00
Tim-Philipp Müller
89276d9654 meson: gdk: wayland: use array for protocol file generation 2017-04-28 23:12:52 +01:00
Tim-Philipp Müller
0174bd4510 meson: gdk: move x11 bits into x11 subdirectory
Also install headers.
2017-04-28 23:12:52 +01:00
Tim-Philipp Müller
2132a72d99 meson: gdk: update and sync with Makefiles
Also create gdk.gresource.xml at build-time.
2017-04-28 23:12:52 +01:00
Tim-Philipp Müller
490e2e4148 meson: demos: disable add_install_script() calls that don't work right yet
Errors out. Might really wants a script and not a binary.
2017-04-28 23:12:52 +01:00
Tim-Philipp Müller
633e9f13e9 meson: gsk: install public headers 2017-04-28 23:12:52 +01:00
Tim-Philipp Müller
d50c5ea3bf meson: gsk: use gnome.mkenums() to generate enum types 2017-04-28 23:12:52 +01:00
Tim-Philipp Müller
4f99513b18 meson: gsk: generate gsk.resources.xml 2017-04-28 23:12:52 +01:00
Tim-Philipp Müller
1397b72cb1 meson: add vulkan bits 2017-04-28 23:12:52 +01:00
Tim-Philipp Müller
0a68fb86d0 meson: examples: update
Mostly style changes. Don't create resource source files
with spaces in them, that's tempting our luck.
2017-04-28 23:12:52 +01:00
Tim-Philipp Müller
a031a5784b meson: tests: make tests find resources from the source dir
Should probably also do this in the autotools build, since
the same problem exists there as well if we use srcdir != builddir.
2017-04-28 23:12:52 +01:00
Tim-Philipp Müller
9812edef1a meson: tests: update and sync with Makefiles 2017-04-28 23:12:52 +01:00
Tim-Philipp Müller
9606b6cfaf meson: demos: update and sync up with Makefiles 2017-04-28 23:12:52 +01:00
Tim-Philipp Müller
7733718b39 meson: use add_project_arguments() instead of add_global_arguments()
So Gtk+ can be used as a subproject.
2017-04-28 23:12:52 +01:00
Tim-Philipp Müller
cca7b0a145 meson: gtk-demo: update and sync up with Makefile.am 2017-04-28 23:12:52 +01:00
Tim-Philipp Müller
f556cfeef3 meson: update list of sources for changes in git master 2017-04-28 23:12:52 +01:00
Tim-Philipp Müller
3b34b967ae meson: fix checks for maths and X11 funcs that need the right deps 2017-04-28 23:12:52 +01:00
Tim-Philipp Müller
58d1986a5e meson: work around meson/gcc bug detecting linux/* headers 2017-04-28 23:12:52 +01:00
Tim-Philipp Müller
07e7e2f1d9 meson: set _GNU_SOURCE project wide
Easier, also means we don't have to define it for
checks. that will only succeed with it defind.
2017-04-28 23:12:52 +01:00
Tim-Philipp Müller
678baa7916 meson: testsuite: gdk: need to dep on gtk
Almost all of these tests include gtk/gtk.h so we need
to dep on libgtk not just libgdk. Otherwise compilation
fails because graphene.h include can't be found.
2017-04-28 23:12:52 +01:00
Tim-Philipp Müller
1f72eb585c meson: gtk: generate gtk.gresource.xml 2017-04-28 23:12:52 +01:00
Tim-Philipp Müller
3b7e2179b1 meson: gtk: add missing source file 2017-04-28 23:12:51 +01:00
Tim-Philipp Müller
0790b1210c meson: make sure gdk/gdkenumtypes.h is generated for users of libgtk_dep
Add libgdk_dep as dependency to the libgtk_dep declare_dependency(), so
that the generated gdk includes are generated before anything is built
that tries to include gtk headers (such as various tests that don't depend
on gdk directly).
2017-04-28 23:12:51 +01:00
Tim-Philipp Müller
ba7d2ce720 Rename generated gtktypefuncs.c to gtktypefuncs.inc
This is needed for the Meson port, a file name .c that's included
and shouldn't be compiled into an object is difficult to manage
otherwise. And it's not actually a valid .c file anyway.
2017-04-28 23:12:51 +01:00
Tim-Philipp Müller
29318b17be meson: add graphene subproject that can be used as fallback 2017-04-28 23:12:51 +01:00
Timm Bäder
eb58d7efe8 meson: update build files 2017-04-28 23:12:51 +01:00
Timm Bäder
24283016ff meson: Sort input files by name 2017-04-28 23:12:51 +01:00
Timm Bäder
ef4cab7e78 meson: Conditionally check for dependencies 2017-04-28 23:12:51 +01:00
Timm Bäder
d741b8ea57 meson: Check for more libraries 2017-04-28 23:12:51 +01:00
Timm Bäder
cf749ecd6b meson: build some more tests 2017-04-28 23:12:51 +01:00
Timm Bäder
b494dc99cb meson: build tests/visuals 2017-04-28 23:12:51 +01:00
Timm Bäder
16543e07d8 meson: Build gtk utils 2017-04-28 23:12:51 +01:00
Timm Bäder
9b2c1021c3 meson: Install libgtk and libgdk 2017-04-28 23:12:51 +01:00
Timm Bäder
dc97b6152a gtk/meson: Read dirs from options 2017-04-28 23:12:51 +01:00
Timm Bäder
aa4f9f6a2d Build examples 2017-04-28 23:12:51 +01:00
Timm Bäder
b223e1277a examples/drawing: Don't call gtk_main_quit
This is a GtkApplication so it will do the right thing when closing the
window.
2017-04-28 23:12:51 +01:00
Timm Bäder
40aa1c82e5 meson: Build all tests in tests/ 2017-04-28 23:12:51 +01:00
Timm Bäder
3e5451114d meson: Also check for sincos 2017-04-28 23:12:51 +01:00
Timm Bäder
0a3244084a meson.build: Add more required versions
...build tests/ and testsuite/, properly define gtk_version, etc.
2017-04-28 23:12:51 +01:00
Tim-Philipp Müller
f026538192 meson: figure out wayland-protocols pkgdatadir via pkg-config
Instead of hardcoding the location.
2017-04-28 23:12:51 +01:00
Timm Bäder
646a42047b meson: Use -Bsymbolic 2017-04-28 23:12:51 +01:00
Timm Bäder
fc25c60dc5 meson: Require gtkmarshal_h before we build gtk 2017-04-28 23:12:51 +01:00
Timm Bäder
fbb49d4a16 meson: Disable broadway build 2017-04-28 23:12:51 +01:00
Timm Bäder
14af0d5928 meson: Generate demos.h for gtk3-demo 2017-04-28 23:12:51 +01:00
Timm Bäder
bc89c69ff1 meson: Build gtk3-demo 2017-04-28 23:12:51 +01:00
Timm Bäder
c8ba3b8fa5 meson: build gtk/ again 2017-04-28 23:12:51 +01:00
Timm Bäder
959f57d6bb build: Generate wayland protocol files 2017-04-28 23:12:51 +01:00