Tim-Philipp Müller
e850973956
meson: build input modules
...
We have to work around some ordering problems here. We still
manage to keep most of the guts in modules/input/meson.build,
so it's not too ugly overall.
(The autotools build solves this with a 'make -C ../../input/modules'
inside gtk/Makefile, but that's not something we can or want to do.)
2017-05-03 15:10:56 +01:00
Tim-Philipp Müller
1c14e93e69
meson: check for xinerama
2017-05-03 15:10:56 +01:00
Tim-Philipp Müller
25cdd19bb0
meson: fix XIAllowTouchEvents check
...
Need to link against dep/lib to check for function in it. Also
misc fixes to surrounding xi-related checks.
2017-05-03 15:10:55 +01:00
Tim-Philipp Müller
2f3c975058
meson: remove duplicate libm variable
...
Only need one of libm and mlib
2017-05-03 15:10:55 +01:00
Tim-Philipp Müller
5d71390a75
meson: check for more missing config.h defines
...
Lots of them are unused and can be removed. For others we
add a check.
2017-05-03 15:10:55 +01:00
Tim-Philipp Müller
361e5d0b74
meson: simplify function checks
...
Because we can. We don't need to specify the right header anymore
to check for functions.
2017-05-03 15:10:55 +01:00
Tim-Philipp Müller
4e9403df7f
meson: simplify header checks
...
Remove workaround for gcc bug (Meson does that now), and
construct the right config.h defines for the headers on
the fly instead of listing them in the build file, which
is more error prone.
2017-05-03 15:10:55 +01:00
Matthias Clasen
f12c011e43
Set glib min/max versions
2017-05-03 15:10:55 +01:00
Tim-Philipp Müller
69f075202d
meson: fix GETTEXT_PACKAGE
2017-05-03 15:10:55 +01:00
Matthias Clasen
fc11fb7fda
Don't require glslc for vulkan
...
The compiled shaders are checked into git.
2017-05-03 15:10:55 +01:00
Tim-Philipp Müller
412c2225b1
meson: move colord checks into cups printbackend
...
Which is the only user of it. Also add option to enable/disable.
2017-05-03 15:10:55 +01:00
Tim-Philipp Müller
d38db4dcdd
meson: gtk: set GTK_PRINT_BACKENDS define properly
2017-05-03 15:10:55 +01:00
Tim-Philipp Müller
a35e5f3135
meson: modules: add printbackends
...
The cups checks might not work properly everywhere yet,
since they don't use cups-config and parse the output yet.
2017-05-03 15:10:55 +01:00
Tim-Philipp Müller
3a496afa0b
meson: gtk: don't overwrite top-level cdata variable with local stuff
...
We need to set the global configuration data written into
config.h from the modules/printbackends meson file.
2017-05-03 15:10:55 +01:00
Tim-Philipp Müller
cbfaebfa83
meson: add po and po-properties
2017-05-03 15:10:55 +01:00
Tim-Philipp Müller
7cbf92505c
meson: testsuites: tools: add meson build
2017-05-03 15:10:55 +01:00
Tim-Philipp Müller
b95a5678f4
meson: testsuite: reftests: add build defs, but needs more work
...
Not sure how these are supposed to work yet, we can specify
arguments for running the tests uninstalled as well with test(),
if that helps in any way.
2017-05-03 15:10:55 +01:00
Tim-Philipp Müller
bffbc6e1b9
meson: testsuite: gdk: use array for test definitions
2017-05-03 15:10:55 +01:00
Tim-Philipp Müller
9bc24bf4d9
meson: testsuite: gtk: sync with Makefile and add some missing bits
...
Also use an array. A few tests fail, needs investigation.
2017-05-03 15:10:55 +01:00
Tim-Philipp Müller
f67a9d58db
meson: make sure gsk/gdk generated headers exist for libgtk_dep users
...
Add back dependencies on libgdk_dep and libsk_dep which are declared
dependencies. We removed this before because these declarations had
link_with: lines that dragged in the static libgdk.a and libgsk.a libs
which are linked into libgtk-4.so anyway and thus shouldn't be used
when linking internal exes/tools against libgtk-4. Remove the static
libs from the declared dependencies and have libgtk link those in
explicitly, so that the declared deps now just provide all the built
dependencies and include dirs and such for declared libgtk_dep users
such as the internal exes/tools, which want all the generated gsk/gdk/gtk
headers to exist before attempting to compile anything against the
gtk+ headers.
2017-05-03 15:10:54 +01:00
Tim-Philipp Müller
48e2b77369
meson: generate .pc files
2017-05-03 15:10:54 +01:00
Tim-Philipp Müller
3ca1418178
meson: gtk: update build file and sync to Makefile
2017-05-03 15:10:54 +01:00
Tim-Philipp Müller
98e633f658
meson: gtk: use gnome.mkenums() and gnome.genmarshal()
2017-05-03 15:10:54 +01:00
Tim-Philipp Müller
07ffb19c42
meson: gdk, gsk: fix install path of generated files
2017-05-03 15:10:54 +01:00
Tim-Philipp Müller
d12ab27c8e
meson: gtk: remove internal static libs from declared gtk dependency
...
gdk and gsk are no longer separate libs but part of gtk now, so any
Gtk+ user should just link to gtk, there's no need to additionally
link against all those static helper libs that go into the gtk lib.
This means we need to specifically add confinc to include_directories
in more places to make sure the right config.h (i.e. ours) gets
included and not a subproject's like graphene's config.h.
Not dragging in static libs also fixes the issue of all executables
having to be relinked for any and all changes. With this change
it's super-fast now and can be skipped for most changes that don't
touch the external ABI.
2017-05-03 15:10:54 +01:00
Tim-Philipp Müller
7738688c00
meson: gtk: use array for installed tools definition
2017-05-03 15:10:54 +01:00
Tim-Philipp Müller
bdfcfdec57
meson: gtk: install headers
2017-05-03 15:10:54 +01:00
Tim-Philipp Müller
c7d3fe5e26
meson: gdk: add quartz backend skeleton
...
Won't even build yet, just put basic bits in place.
2017-05-03 15:10:54 +01:00
Tim-Philipp Müller
442185388b
meson: gdk: win32: add skeleton bits for win32 backend
...
Won't even build, configure bits still missing.
2017-05-03 15:10:54 +01:00
Tim-Philipp Müller
cbb6a62496
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-05-03 15:10:54 +01:00
Tim-Philipp Müller
152a25d099
meson: gdk: add Mir backend bits
...
Completely untested, might not even build.
2017-05-03 15:10:54 +01:00
Tim-Philipp Müller
e001d95538
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-05-03 15:10:54 +01:00
Tim-Philipp Müller
d4881df0d8
meson: gdk: wayland: move wayland bits into wayland subdir
2017-05-03 15:10:54 +01:00
Tim-Philipp Müller
4b969b1b40
meson: gdk: wayland: use array for protocol file generation
2017-05-03 15:10:54 +01:00
Tim-Philipp Müller
22d7b825fb
meson: gdk: move x11 bits into x11 subdirectory
...
Also install headers.
2017-05-03 15:10:54 +01:00
Tim-Philipp Müller
b947e88fbf
meson: gdk: update and sync with Makefiles
...
Also create gdk.gresource.xml at build-time.
2017-05-03 15:10:53 +01:00
Tim-Philipp Müller
7966ab6001
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-05-03 15:10:53 +01:00
Tim-Philipp Müller
a0c207614a
meson: gsk: install public headers
2017-05-03 15:10:53 +01:00
Tim-Philipp Müller
7b6b3c7786
meson: gsk: use gnome.mkenums() to generate enum types
2017-05-03 15:10:53 +01:00
Tim-Philipp Müller
fed7d22df7
meson: gsk: generate gsk.resources.xml
2017-05-03 15:10:53 +01:00
Tim-Philipp Müller
95979f4d2f
meson: add vulkan bits
2017-05-03 15:10:53 +01:00
Tim-Philipp Müller
3ac88fa6b6
meson: examples: update
...
Mostly style changes. Don't create resource source files
with spaces in them, that's tempting our luck.
2017-05-03 15:10:53 +01:00
Tim-Philipp Müller
d276cd47a5
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-05-03 15:10:53 +01:00
Tim-Philipp Müller
08153c3854
meson: tests: update and sync with Makefiles
2017-05-03 15:10:53 +01:00
Tim-Philipp Müller
b6722b0a36
meson: demos: update and sync up with Makefiles
2017-05-03 15:10:53 +01:00
Tim-Philipp Müller
b8a017b081
meson: use add_project_arguments() instead of add_global_arguments()
...
So Gtk+ can be used as a subproject.
2017-05-03 15:10:53 +01:00
Tim-Philipp Müller
d6a824476d
meson: gtk-demo: update and sync up with Makefile.am
2017-05-03 15:10:53 +01:00
Tim-Philipp Müller
37d5938561
meson: update list of sources for changes in git master
2017-05-03 15:10:53 +01:00
Tim-Philipp Müller
a23ce5c11c
meson: fix checks for maths and X11 funcs that need the right deps
2017-05-03 15:10:53 +01:00
Tim-Philipp Müller
917a6b0912
meson: work around meson/gcc bug detecting linux/* headers
2017-05-03 15:10:53 +01:00