551a57ed7f
Add MetaAnonymousFile, an abstraction around anonymous read-only files. Files can be created by calling meta_anonymous_file_new(), passing the data of the file. Subsequent calls to meta_anonymous_file_open_fd() return a fd that's ready to be sent over the socket. When mapmode is META_ANONYMOUS_FILE_MAPMODE_PRIVATE the fd is only guaranteed to be mmap-able readonly with MAP_PRIVATE but does not require duplicating the file for each resource when memfd_create is available. META_ANONYMOUS_FILE_MAPMODE_SHARED may be used when the client must be able to map the file with MAP_SHARED but it also means that the file has to be duplicated even when memfd_create is available. Pretty much all of this code was written for weston by Sebastian Wick, see https://gitlab.freedesktop.org/wayland/weston/merge_requests/240. Co-authored-by: Sebastian Wick <sebastian@sebastianwick.net> https://gitlab.gnome.org/GNOME/mutter/merge_requests/1012
81 lines
1.9 KiB
Text
81 lines
1.9 KiB
Text
/* 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
|
|
|
|
/* Building with Sysprof profiling suport */
|
|
#mesondefine HAVE_PROFILER
|
|
|
|
/* 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
|
|
|
|
/* Whether <sys/prctl.h> exists and it defines prctl() */
|
|
#mesondefine HAVE_SYS_PRCTL
|
|
|
|
/* Either <sys/random.h> or <linux/random.h> */
|
|
#mesondefine HAVE_SYS_RANDOM
|
|
#mesondefine HAVE_LINUX_RANDOM
|
|
|
|
/* Whether Xwayland has -initfd option */
|
|
#mesondefine HAVE_XWAYLAND_INITFD
|
|
|
|
/* 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
|