Add meson build support
This commit adds meson build support to mutter. It takes a step away
from the three separate code bases with three different autotools setups
into a single meson build system. There are still places that can be
unified better, for example by removing various "config.h" style files
from cogl and clutter, centralizing debug C flags and other configurable
macros, and similar artifacts that are there only because they were once
separate code bases.
There are some differences between the autotools setup and the new
meson. Here are a few:
The meson setup doesn't generate wrapper scripts for various cogl and
clutter test cases. What these tests did was more or less generate a
tiny script that called an executable with a test name as the argument.
To run particular tests, just run the test executable with the name of
the test as the argument.
The meson setup doesn't install test files anymore. The autotools test
suite was designed towards working with installed tests, but it didn't
really still, and now with meson, it doesn't install anything at all,
but instead makes sure that everything runs with the uninstalled input
files, binaries and libraries when running the test suite. Installable
tests may come later.
Tests from cogl, clutter and mutter are run on 'meson test'. In
autotools, only cogl and clutter tests were run on 'make check'.
2018-05-22 13:55:35 +00:00
|
|
|
/* The prefix for our gettext translation domains. */
|
|
|
|
#mesondefine GETTEXT_PACKAGE
|
|
|
|
|
|
|
|
/* Version number of package */
|
|
|
|
#mesondefine VERSION
|
|
|
|
|
|
|
|
/* Version number of package */
|
|
|
|
#mesondefine PACKAGE_VERSION
|
|
|
|
|
|
|
|
/* Search path for plugins */
|
|
|
|
#mesondefine MUTTER_PLUGIN_DIR
|
|
|
|
|
|
|
|
/* */
|
|
|
|
#mesondefine MUTTER_LOCALEDIR
|
|
|
|
|
|
|
|
/* */
|
|
|
|
#mesondefine MUTTER_LIBEXECDIR
|
|
|
|
|
|
|
|
/* */
|
|
|
|
#mesondefine MUTTER_PKGDATADIR
|
|
|
|
|
|
|
|
/* Defined if EGL support is enabled */
|
|
|
|
#mesondefine HAVE_EGL
|
|
|
|
|
|
|
|
/* Defined if EGLDevice support is enabled */
|
|
|
|
#mesondefine HAVE_EGL_DEVICE
|
|
|
|
|
|
|
|
/* Defined if EGLStream support is enabled */
|
|
|
|
#mesondefine HAVE_WAYLAND_EGLSTREAM
|
|
|
|
|
|
|
|
/* Building with gudev for device type detection */
|
|
|
|
#mesondefine HAVE_LIBGUDEV
|
|
|
|
|
|
|
|
/* Building with libwacom for advanced tablet management */
|
|
|
|
#mesondefine HAVE_LIBWACOM
|
|
|
|
|
|
|
|
/* Define if you want to enable the native (KMS) backend based on systemd */
|
|
|
|
#mesondefine HAVE_NATIVE_BACKEND
|
|
|
|
|
|
|
|
/* Define if you want to enable Wayland support */
|
|
|
|
#mesondefine HAVE_WAYLAND
|
|
|
|
|
|
|
|
/* Defined if screen cast and remote desktop support is enabled */
|
|
|
|
#mesondefine HAVE_REMOTE_DESKTOP
|
|
|
|
|
|
|
|
/* Building with SM support */
|
|
|
|
#mesondefine HAVE_SM
|
|
|
|
|
|
|
|
/* Building with startup notification support */
|
|
|
|
#mesondefine HAVE_STARTUP_NOTIFICATION
|
|
|
|
|
2020-08-26 09:49:50 +00:00
|
|
|
/* Building with Sysprof profiling support */
|
2019-05-31 15:42:27 +00:00
|
|
|
#mesondefine HAVE_PROFILER
|
2018-05-15 15:31:29 +00:00
|
|
|
|
Add meson build support
This commit adds meson build support to mutter. It takes a step away
from the three separate code bases with three different autotools setups
into a single meson build system. There are still places that can be
unified better, for example by removing various "config.h" style files
from cogl and clutter, centralizing debug C flags and other configurable
macros, and similar artifacts that are there only because they were once
separate code bases.
There are some differences between the autotools setup and the new
meson. Here are a few:
The meson setup doesn't generate wrapper scripts for various cogl and
clutter test cases. What these tests did was more or less generate a
tiny script that called an executable with a test name as the argument.
To run particular tests, just run the test executable with the name of
the test as the argument.
The meson setup doesn't install test files anymore. The autotools test
suite was designed towards working with installed tests, but it didn't
really still, and now with meson, it doesn't install anything at all,
but instead makes sure that everything runs with the uninstalled input
files, binaries and libraries when running the test suite. Installable
tests may come later.
Tests from cogl, clutter and mutter are run on 'meson test'. In
autotools, only cogl and clutter tests were run on 'make check'.
2018-05-22 13:55:35 +00:00
|
|
|
/* Path to Xwayland executable */
|
|
|
|
#mesondefine XWAYLAND_PATH
|
|
|
|
|
|
|
|
/* Xwayland applications allowed to issue keyboard grabs */
|
|
|
|
#mesondefine XWAYLAND_GRAB_DEFAULT_ACCESS_RULES
|
|
|
|
|
|
|
|
/* XKB base prefix */
|
|
|
|
#mesondefine XKB_BASE
|
|
|
|
|
2019-09-27 08:15:48 +00:00
|
|
|
/* Whether <sys/prctl.h> exists and it defines prctl() */
|
|
|
|
#mesondefine HAVE_SYS_PRCTL
|
|
|
|
|
2019-06-20 10:11:29 +00:00
|
|
|
/* Either <sys/random.h> or <linux/random.h> */
|
|
|
|
#mesondefine HAVE_SYS_RANDOM
|
|
|
|
#mesondefine HAVE_LINUX_RANDOM
|
2019-07-19 20:50:31 +00:00
|
|
|
|
|
|
|
/* Whether Xwayland has -initfd option */
|
|
|
|
#mesondefine HAVE_XWAYLAND_INITFD
|
2020-01-17 22:43:24 +00:00
|
|
|
|
|
|
|
/* Whether the mkostemp function exists */
|
|
|
|
#mesondefine HAVE_MKOSTEMP
|
|
|
|
|
|
|
|
/* Whether the posix_fallocate function exists */
|
|
|
|
#mesondefine HAVE_POSIX_FALLOCATE
|
|
|
|
|
|
|
|
/* Whether the memfd_create function exists */
|
|
|
|
#mesondefine HAVE_MEMFD_CREATE
|