mirror of
https://github.com/brl/mutter.git
synced 2024-11-09 23:46:33 -05:00
ef85d1a643
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'.
49 lines
1.7 KiB
Plaintext
49 lines
1.7 KiB
Plaintext
/*
|
|
* Cogl
|
|
*
|
|
* A Low Level GPU Graphics and Utilities API
|
|
*
|
|
* Copyright (C) 2007,2008,2009,2010 Intel Corporation.
|
|
*
|
|
* Permission is hereby granted, free of charge, to any person
|
|
* obtaining a copy of this software and associated documentation
|
|
* files (the "Software"), to deal in the Software without
|
|
* restriction, including without limitation the rights to use, copy,
|
|
* modify, merge, publish, distribute, sublicense, and/or sell copies
|
|
* of the Software, and to permit persons to whom the Software is
|
|
* furnished to do so, subject to the following conditions:
|
|
*
|
|
* The above copyright notice and this permission notice shall be
|
|
* included in all copies or substantial portions of the Software.
|
|
*
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
|
|
* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
|
* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
* SOFTWARE.
|
|
*
|
|
*/
|
|
|
|
#include <poll.h>
|
|
|
|
#define COGL_SYSDEF_POLLIN POLLIN
|
|
#define COGL_SYSDEF_POLLPRI POLLPRI
|
|
#define COGL_SYSDEF_POLLOUT POLLOUT
|
|
#define COGL_SYSDEF_POLLERR POLLERR
|
|
#define COGL_SYSDEF_POLLHUP POLLHUP
|
|
#define COGL_SYSDEF_POLLNVAL POLLNVAL
|
|
|
|
#mesondefine COGL_HAS_GL
|
|
#mesondefine CLUTTER_COGL_HAS_GL
|
|
#mesondefine COGL_HAS_GLX_SUPPORT
|
|
#mesondefine COGL_HAS_WAYLAND_EGL_SERVER_SUPPORT
|
|
#mesondefine COGL_HAS_EGL_PLATFORM_XLIB_SUPPORT
|
|
#mesondefine COGL_HAS_EGL_SUPPORT
|
|
#mesondefine COGL_HAS_X11
|
|
#mesondefine COGL_HAS_X11_SUPPORT
|
|
#mesondefine COGL_HAS_XLIB
|
|
#mesondefine COGL_HAS_XLIB_SUPPORT
|