| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
We use Meson, now.
|
| |
|
|
|
|
|
| |
This way, a tarball generated via autotools will also allow building
GTK+ via Meson.
|
|
|
|
|
| |
When linking libgdk4 to each backend's static library, we want to use
the whole-archive support.
|
|
|
|
| |
We want to use the new structured logging support in GLib.
|
|
|
|
|
|
| |
The common compiler and linker flags control, among other things, the
default visibility of symbols; without them, we leak symbols that ought
to be private.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
GSK has various enumeration types that are currently not used; while
they may go away, currently they are built and introspected. If we want
the introspection machinery to work, and still use static libraries to
build GDK and GSK into the GTK shared library, then we need to reference
the get_type() function of these enumeration types somewhere, to avoid
the linker discarding it, and thus breaking the build.
As luck would have it, we have an autogenerated bit of C that refers to
all the get_type() functions in the library; if we add the GSK types to
it, then we get the reference we're looking for, and the build succeeds.
|
| |
|
|
|
|
|
|
| |
We need to reference the types file directly, because it won't be copied
into the builddir by Meson — except for GTK, which needs to generate its
own types file using configure_file().
|
|
|
|
| |
There's no need to run pkg-config ourselves.
|
|
|
|
|
|
| |
We're mixing a lot of styles in the Meson build files. This is an
attempt at making everything slightly more consistent in terms of
whitespace and indentation.
|
| |
|
|
|
|
| |
We use it in two places.
|
|
|
|
|
|
| |
If glslc is found, rebuild the shaders from GLSL to SPIR-V; otherwise,
we're just going to use the built files we have committed in the source
repository.
|
|
|
|
|
|
| |
When building GTK+ straight from the repository without any assistance
from packaging tools, we need to trigger system-wide updates, like the
icon theme cache update, or the schema compilation.
|
|
|
|
|
|
|
| |
We can build the name of the input and output files for the Wayland
protocols we use from the protocol name, stability, and version. This is
similar to how the autotools build does it, except much more clear and
without shelling out twice to sed just to resolve the Makefile rule.
|
| |
|
|
|
|
|
|
| |
Currently gobject-introspection is badly borked with Meson.
This will need to be reverted.
|
|
|
|
|
| |
Maintain the naming convention, since we have similar scripts for GDK
and GTK already.
|
|
|
|
| |
Still a work in progress.
|
| |
|
| |
|
|
|
|
|
|
| |
The main GDK API reference index is XML, not SGML.
The overrides file is for GDK 4.x, not 3.x.
|
|
|
|
|
| |
The compatibility header was needed after GTK+ 3.0 renamed the key
symbols from `GDK_*` to `GDK_KEY_*` to avoid collisions.
|
|
|
|
|
| |
Currently, no platform-specific introspection is generated; there will
be a follow-up commit.
|
|
|
|
| |
Instead of hard-coding `-Bsymbolic`.
|
|
|
|
|
| |
Both gskprivate.c and gskvulkanrenderer.c call `gsk_ensure_resources`
but fail in clude `gskprivate.h`, where the function is declared.
|
|
|
|
|
|
| |
We need to check if the linker flags we use are available, depending on
the platform, and we need to ensure that the shared library is
versioned appropriately.
|
|
|
|
| |
GTK+ 4.0 uses C99.
|
|
|
|
|
|
|
| |
GTK symbols are not visible by default, and only the ones annotated with
_GDK_EXTERN (and wrapper macros) are exported. We need to define
_GDK_EXTERN during the configuration, depending on the platform and
compiler we use.
|
|
|
|
| |
We don't want to build buggy code.
|
|
|
|
|
| |
We use the GObject types with Graphene, so we need to check that the
library has been built with them.
|
| |
|
|
|
|
|
|
| |
The autotools build checks the version of GLib we are depending on in
order to generate the appropriate GLIB_VERSION values for the
min-required/max-allowed defines.
|
|
|
|
| |
Instead of injecting them into the C compiler arguments.
|
|
|
|
| |
There's no need for string concatenation.
|
|
|
|
|
| |
The type generation script inside gtk/ will use the `gdk_headers`
variable, and that must not contain private headers.
|
|
|
|
| |
Fix double lib prefix in filenames (liblibgdk-xyz.a)
|
|
|
|
|
|
|
|
|
| |
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.)
|
| |
|
|
|
|
|
| |
Need to link against dep/lib to check for function in it. Also
misc fixes to surrounding xi-related checks.
|
|
|
|
| |
Only need one of libm and mlib
|
|
|
|
|
| |
Lots of them are unused and can be removed. For others we
add a check.
|
|
|
|
|
| |
Because we can. We don't need to specify the right header anymore
to check for functions.
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
| |
The compiled shaders are checked into git.
|
|
|
|
| |
Which is the only user of it. Also add option to enable/disable.
|
| |
|