summaryrefslogtreecommitdiff
path: root/meson_options.txt
diff options
context:
space:
mode:
authorJonas Ådahl <jadahl@gmail.com>2018-05-22 15:55:35 +0200
committerJonas Ådahl <jadahl@gmail.com>2018-11-06 18:51:44 +0100
commitef85d1a643dd153bb5681fc00f48ec550cd40aaa (patch)
treef9174abfcfd876099a05a8f24e97f0e599ba9f28 /meson_options.txt
parent417c00b8fa33a5fce9d56cfda17f833ff0c49c43 (diff)
downloadmutter-ef85d1a643dd153bb5681fc00f48ec550cd40aaa.tar.gz
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'.
Diffstat (limited to 'meson_options.txt')
-rw-r--r--meson_options.txt142
1 files changed, 142 insertions, 0 deletions
diff --git a/meson_options.txt b/meson_options.txt
new file mode 100644
index 000000000..a0924faf1
--- /dev/null
+++ b/meson_options.txt
@@ -0,0 +1,142 @@
+option('opengl',
+ type: 'boolean',
+ value: true,
+ description: 'Enable OpenGL'
+)
+
+option('opengl_libname',
+ type: 'string',
+ value: 'libGL.so.1',
+ description: 'OpenGL library file name'
+)
+
+option('gles2_libname',
+ type: 'string',
+ value: 'libGLESv2.so',
+ description: 'GLESv2 library file name'
+)
+
+option('gles2',
+ type: 'boolean',
+ value: true,
+ description: 'Enable GLES2 support'
+)
+
+option('egl',
+ type: 'boolean',
+ value: true,
+ description: 'Enable EGL support'
+)
+option('glx',
+ type: 'boolean',
+ value: true,
+ description: 'Enable GLX support'
+)
+
+option('wayland',
+ type: 'boolean',
+ value: true,
+ description: 'Enable Wayland support'
+)
+
+option('native_backend',
+ type: 'boolean',
+ value: true,
+ description: 'Enable the native backend'
+)
+
+option('remote_desktop',
+ type: 'boolean',
+ value: true,
+ description: 'Enable remote desktop and screen cast support'
+)
+
+option('egl_device',
+ type: 'boolean',
+ value: false,
+ description: 'Enable EGLDevice and EGLStream renderer support'
+)
+
+option('wayland_eglstream',
+ type: 'boolean',
+ value: false,
+ description: 'Enable Wayland EGLStream support client support'
+)
+
+option('udev',
+ type: 'boolean',
+ value: true,
+ description: 'Enable udev support when using the X11 backend'
+)
+
+option('libwacom',
+ type: 'boolean',
+ value: true,
+ description: 'Enable libwacom support'
+)
+
+option('pango_ft2',
+ type: 'boolean',
+ value: true,
+ description: 'Enable PangoFt2 support'
+)
+
+option('libcanberra',
+ type: 'boolean',
+ value: true,
+ description: 'Enable libcanberra support'
+)
+
+option('startup_notification',
+ type: 'boolean',
+ value: true,
+ description: 'Enable startup notification support'
+)
+
+option('sm',
+ type: 'boolean',
+ value: true,
+ description: 'Enable X11 session management support'
+)
+
+option('introspection',
+ type: 'boolean',
+ value: true,
+ description: 'Enable GObject introspection'
+)
+
+option('cogl_tests',
+ type: 'boolean',
+ value: true,
+ description: 'Enable cogl tests'
+)
+
+option('clutter_tests',
+ type: 'boolean',
+ value: true,
+ description: 'Enable clutter tests'
+)
+
+option('tests',
+ type: 'boolean',
+ value: true,
+ description: 'Enable mutter tests'
+)
+
+option('verbose',
+ type: 'boolean',
+ value: true,
+ description: 'Enable verbose logging ability'
+)
+
+option('xwayland_path',
+ type: 'string',
+ value: '',
+ description: 'Path to Xwayland executable'
+)
+
+option('xwayland_grab_default_access_rules',
+ type: 'string',
+ value: 'gnome-boxes,remote-viewer,virt-viewer,virt-manager,vinagre,vncviewer,Xephyr',
+ description: 'Comma delimited list of applications ressources or class allowed to issue X11 grabs in Xwayland'
+)