2017-05-07 20:53:04 +01:00
|
|
|
version_split = meson.project_version().split('.')
|
|
|
|
|
major = version_split[0].to_int()
|
|
|
|
|
minor = version_split[1].to_int()
|
|
|
|
|
patch = version_split[2].to_int()
|
|
|
|
|
|
2021-04-07 21:55:01 +03:00
|
|
|
# convert to the old-style 1.x.y version scheme used up to 1.20.x for backwards compatibility
|
|
|
|
|
release = 1 * 10000000 + major * 100000 + minor * 1000 + patch
|
Add a Meson build system alongside autotools.
This is a work in progress that builds Xvfb, Xephyr, Xwayland, Xnest,
and Xdmx so far. The outline of Xquartz/Xwin support is in tree, but
hasn't been built yet. The unit tests are also not done.
The intent is to build this as a complete replacement for the
autotools system, then eventually replace autotools. meson is faster
to generate the build, faster to run the bulid, shorter to write the
build files in, and less error-prone than autotools.
v2: Fix indentation nits, move version declaration to project(), use
existing meson_options for version-config.h's vendor name/web.
Signed-off-by: Eric Anholt <eric@anholt.net>
Acked-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-03-11 10:24:04 -08:00
|
|
|
|
2019-04-28 21:56:20 +01:00
|
|
|
dri_dep = dependency('dri', required: build_glx)
|
Add a Meson build system alongside autotools.
This is a work in progress that builds Xvfb, Xephyr, Xwayland, Xnest,
and Xdmx so far. The outline of Xquartz/Xwin support is in tree, but
hasn't been built yet. The unit tests are also not done.
The intent is to build this as a complete replacement for the
autotools system, then eventually replace autotools. meson is faster
to generate the build, faster to run the bulid, shorter to write the
build files in, and less error-prone than autotools.
v2: Fix indentation nits, move version declaration to project(), use
existing meson_options for version-config.h's vendor name/web.
Signed-off-by: Eric Anholt <eric@anholt.net>
Acked-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-03-11 10:24:04 -08:00
|
|
|
|
|
|
|
|
conf_data = configuration_data()
|
|
|
|
|
conf_data.set('_DIX_CONFIG_H_', '1')
|
|
|
|
|
|
2021-06-26 09:44:39 +03:00
|
|
|
# For feature macros we're using either false (boolean) or '1', which correspond to the macro being
|
|
|
|
|
# not defined at all and defined to 1. This is to match autotools behavior and thus preserve
|
|
|
|
|
# backwards compatibility with all the existing code that uses #ifdef to check if feature is
|
|
|
|
|
# enabled. This ifdef would pass if the macro is defined to 0 which would silently break code
|
|
|
|
|
# in various places.
|
|
|
|
|
#
|
|
|
|
|
# As a complication when we read the configuration from conf_data back we get either string or
|
|
|
|
|
# bool. Meson does not like comparing things of different types so we always convert the returned
|
|
|
|
|
# value to an integer using to_int().
|
2019-04-26 01:00:28 +01:00
|
|
|
conf_data.set('MONOTONIC_CLOCK', cc.has_function('clock_gettime') and
|
|
|
|
|
cc.compiles('''
|
2017-05-11 17:17:55 -04:00
|
|
|
#define _POSIX_C_SOURCE 200112L
|
Add a Meson build system alongside autotools.
This is a work in progress that builds Xvfb, Xephyr, Xwayland, Xnest,
and Xdmx so far. The outline of Xquartz/Xwin support is in tree, but
hasn't been built yet. The unit tests are also not done.
The intent is to build this as a complete replacement for the
autotools system, then eventually replace autotools. meson is faster
to generate the build, faster to run the bulid, shorter to write the
build files in, and less error-prone than autotools.
v2: Fix indentation nits, move version declaration to project(), use
existing meson_options for version-config.h's vendor name/web.
Signed-off-by: Eric Anholt <eric@anholt.net>
Acked-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-03-11 10:24:04 -08:00
|
|
|
#include <time.h>
|
|
|
|
|
#include <unistd.h>
|
|
|
|
|
#ifndef CLOCK_MONOTONIC
|
|
|
|
|
#error CLOCK_MONOTONIC not defined
|
|
|
|
|
#endif
|
|
|
|
|
''',
|
2021-04-05 16:24:47 +03:00
|
|
|
name: 'CLOCK_MONOTONIC') ? '1' : false)
|
Add a Meson build system alongside autotools.
This is a work in progress that builds Xvfb, Xephyr, Xwayland, Xnest,
and Xdmx so far. The outline of Xquartz/Xwin support is in tree, but
hasn't been built yet. The unit tests are also not done.
The intent is to build this as a complete replacement for the
autotools system, then eventually replace autotools. meson is faster
to generate the build, faster to run the bulid, shorter to write the
build files in, and less error-prone than autotools.
v2: Fix indentation nits, move version declaration to project(), use
existing meson_options for version-config.h's vendor name/web.
Signed-off-by: Eric Anholt <eric@anholt.net>
Acked-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-03-11 10:24:04 -08:00
|
|
|
|
2021-04-05 16:24:47 +03:00
|
|
|
conf_data.set('XSERVER_DTRACE', with_dtrace ? '1' : false)
|
Add a Meson build system alongside autotools.
This is a work in progress that builds Xvfb, Xephyr, Xwayland, Xnest,
and Xdmx so far. The outline of Xquartz/Xwin support is in tree, but
hasn't been built yet. The unit tests are also not done.
The intent is to build this as a complete replacement for the
autotools system, then eventually replace autotools. meson is faster
to generate the build, faster to run the bulid, shorter to write the
build files in, and less error-prone than autotools.
v2: Fix indentation nits, move version declaration to project(), use
existing meson_options for version-config.h's vendor name/web.
Signed-off-by: Eric Anholt <eric@anholt.net>
Acked-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-03-11 10:24:04 -08:00
|
|
|
|
|
|
|
|
if host_machine.endian() == 'little'
|
|
|
|
|
conf_data.set('X_BYTE_ORDER', 'X_LITTLE_ENDIAN')
|
|
|
|
|
else
|
|
|
|
|
conf_data.set('X_BYTE_ORDER', 'X_BIG_ENDIAN')
|
|
|
|
|
endif
|
|
|
|
|
|
2024-03-18 12:34:49 +01:00
|
|
|
# Defining _XSERVER64 on 64bit builds is VITAL, since otherwise Xlib headers
|
|
|
|
|
# would define lots X types (eg. Atom, XID, etc) as 64 bit, but inside the
|
|
|
|
|
# Xserver we really need them to be 32 bit (CARD32). When _SERVER64 is defined
|
|
|
|
|
# the xlib headers will typedef them exactly to CARD32.
|
2017-09-22 13:54:01 +01:00
|
|
|
glx_align64 = []
|
Add a Meson build system alongside autotools.
This is a work in progress that builds Xvfb, Xephyr, Xwayland, Xnest,
and Xdmx so far. The outline of Xquartz/Xwin support is in tree, but
hasn't been built yet. The unit tests are also not done.
The intent is to build this as a complete replacement for the
autotools system, then eventually replace autotools. meson is faster
to generate the build, faster to run the bulid, shorter to write the
build files in, and less error-prone than autotools.
v2: Fix indentation nits, move version declaration to project(), use
existing meson_options for version-config.h's vendor name/web.
Signed-off-by: Eric Anholt <eric@anholt.net>
Acked-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-03-11 10:24:04 -08:00
|
|
|
if cc.sizeof('unsigned long') == 8
|
|
|
|
|
conf_data.set('_XSERVER64', '1')
|
|
|
|
|
glx_align64 = '-D__GLX_ALIGN64'
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
conf_data.set('_GNU_SOURCE', '1')
|
|
|
|
|
|
|
|
|
|
# autoconf checks for /dev/xf86 here, but the test should be based on
|
|
|
|
|
# the target, not the build system. Could we get rid of this and just
|
|
|
|
|
# ifdef for openbsd?
|
2021-04-05 16:24:47 +03:00
|
|
|
conf_data.set('HAS_APERTURE_DRV', host_machine.system() == 'openbsd' ? '1' : false)
|
Add a Meson build system alongside autotools.
This is a work in progress that builds Xvfb, Xephyr, Xwayland, Xnest,
and Xdmx so far. The outline of Xquartz/Xwin support is in tree, but
hasn't been built yet. The unit tests are also not done.
The intent is to build this as a complete replacement for the
autotools system, then eventually replace autotools. meson is faster
to generate the build, faster to run the bulid, shorter to write the
build files in, and less error-prone than autotools.
v2: Fix indentation nits, move version declaration to project(), use
existing meson_options for version-config.h's vendor name/web.
Signed-off-by: Eric Anholt <eric@anholt.net>
Acked-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-03-11 10:24:04 -08:00
|
|
|
|
2018-09-19 13:07:16 -07:00
|
|
|
if get_option('input_thread') == 'false'
|
|
|
|
|
enable_input_thread = false
|
|
|
|
|
else
|
|
|
|
|
enable_input_thread = cc.has_header_symbol('pthread.h',
|
|
|
|
|
'PTHREAD_MUTEX_RECURSIVE')
|
|
|
|
|
if not enable_input_thread and get_option('input_thread') == 'true'
|
|
|
|
|
error('Input thread enabled and PTHREAD_MUTEX_RECURSIVE not found')
|
|
|
|
|
endif
|
2016-07-28 14:26:38 +01:00
|
|
|
if host_machine.system() == 'windows' and get_option('input_thread') == 'auto'
|
|
|
|
|
enable_input_thread = false
|
|
|
|
|
endif
|
2018-09-19 13:07:16 -07:00
|
|
|
endif
|
2021-04-05 16:24:46 +03:00
|
|
|
conf_data.set('INPUTTHREAD', enable_input_thread ? '1' : false)
|
2018-08-01 13:49:54 -07:00
|
|
|
|
|
|
|
|
if cc.compiles('''
|
|
|
|
|
#define _GNU_SOURCE 1
|
|
|
|
|
#include <pthread.h>
|
|
|
|
|
void foo(int bar) { pthread_setname_np(pthread_self(), "example"); }
|
|
|
|
|
''',
|
2021-04-09 15:22:22 +00:00
|
|
|
args: '-Werror-implicit-function-declaration',
|
2018-08-01 13:49:54 -07:00
|
|
|
name: 'pthread_setname_np(tid, name)')
|
|
|
|
|
conf_data.set('HAVE_PTHREAD_SETNAME_NP_WITH_TID', 1)
|
|
|
|
|
elif cc.compiles('''
|
|
|
|
|
#define _GNU_SOURCE 1
|
|
|
|
|
#include <pthread.h>
|
|
|
|
|
void foo(int bar) { pthread_setname_np("example"); }
|
|
|
|
|
''',
|
2021-04-09 15:22:22 +00:00
|
|
|
args: '-Werror-implicit-function-declaration',
|
2018-08-01 13:49:54 -07:00
|
|
|
name: 'pthread_setname_np(name)')
|
|
|
|
|
conf_data.set('HAVE_PTHREAD_SETNAME_NP_WITHOUT_TID', 1)
|
|
|
|
|
endif
|
|
|
|
|
|
2021-04-05 16:24:47 +03:00
|
|
|
conf_data.set('HAVE_LIBBSD', libbsd_dep.found() ? '1' : false)
|
2018-08-07 16:23:19 -07:00
|
|
|
# Note: this symbol is used by libXtrans.
|
2023-12-31 23:37:19 +00:00
|
|
|
conf_data.set('HAVE_SYSTEMD_DAEMON', build_systemd ? '1' : false)
|
2021-04-05 16:24:47 +03:00
|
|
|
conf_data.set('CONFIG_UDEV', build_udev ? '1' : false)
|
|
|
|
|
conf_data.set('CONFIG_UDEV_KMS', build_udev_kms ? '1' : false)
|
|
|
|
|
conf_data.set('HAVE_DBUS', build_dbus ? '1' : false)
|
|
|
|
|
conf_data.set('CONFIG_HAL', build_hal ? '1' : false)
|
|
|
|
|
conf_data.set('SYSTEMD_LOGIND', build_systemd_logind ? '1' : false)
|
|
|
|
|
conf_data.set('NEED_DBUS', build_systemd_logind or build_hal ? '1' : false)
|
2024-03-28 18:44:45 +01:00
|
|
|
conf_data.set('CONFIG_WSCONS', host_machine.system() in ['openbsd', 'netbsd'] ? '1' : false)
|
2021-04-05 16:24:47 +03:00
|
|
|
|
|
|
|
|
conf_data.set('HAVE_XSHMFENCE', xshmfence_dep.found() ? '1' : false)
|
|
|
|
|
conf_data.set('WITH_LIBDRM', libdrm_required ? '1' : false)
|
2018-02-28 01:19:44 +00:00
|
|
|
conf_data.set('GLAMOR_HAS_EGL_QUERY_DMABUF',
|
2021-04-05 16:24:47 +03:00
|
|
|
epoxy_dep.found() and epoxy_dep.version().version_compare('>= 1.4.4') ? '1' : false)
|
2019-11-21 23:01:28 -08:00
|
|
|
conf_data.set('GLAMOR_HAS_EGL_QUERY_DRIVER',
|
2021-04-05 16:24:47 +03:00
|
|
|
epoxy_dep.found() and epoxy_dep.version().version_compare('>= 1.5.4') ? '1' : false)
|
|
|
|
|
conf_data.set('GLXEXT', build_glx ? '1' : false)
|
|
|
|
|
conf_data.set('GLAMOR', build_glamor ? '1' : false)
|
|
|
|
|
conf_data.set('GLAMOR_HAS_GBM', gbm_dep.found() ? '1' : false)
|
2017-09-20 07:22:13 -07:00
|
|
|
conf_data.set('GLAMOR_HAS_GBM_LINEAR',
|
2021-04-05 16:24:47 +03:00
|
|
|
build_glamor and gbm_dep.found() and gbm_dep.version().version_compare('>= 10.6') ? '1' : false)
|
2018-02-28 01:19:43 +00:00
|
|
|
conf_data.set('GBM_BO_WITH_MODIFIERS',
|
2021-04-05 16:24:47 +03:00
|
|
|
build_glamor and gbm_dep.found() and gbm_dep.version().version_compare('>= 17.1') ? '1' : false)
|
2021-03-26 12:50:08 -07:00
|
|
|
conf_data.set('GBM_BO_FD_FOR_PLANE',
|
|
|
|
|
build_glamor and gbm_dep.found() and gbm_dep.version().version_compare('>= 21.1') ? '1' : false)
|
2023-02-01 15:50:15 +01:00
|
|
|
conf_data.set('GBM_BO_WITH_MODIFIERS2',
|
|
|
|
|
build_glamor and gbm_dep.found() and gbm_dep.version().version_compare('>= 21.3') ? '1' : false)
|
Add a Meson build system alongside autotools.
This is a work in progress that builds Xvfb, Xephyr, Xwayland, Xnest,
and Xdmx so far. The outline of Xquartz/Xwin support is in tree, but
hasn't been built yet. The unit tests are also not done.
The intent is to build this as a complete replacement for the
autotools system, then eventually replace autotools. meson is faster
to generate the build, faster to run the bulid, shorter to write the
build files in, and less error-prone than autotools.
v2: Fix indentation nits, move version declaration to project(), use
existing meson_options for version-config.h's vendor name/web.
Signed-off-by: Eric Anholt <eric@anholt.net>
Acked-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-03-11 10:24:04 -08:00
|
|
|
|
|
|
|
|
conf_data.set_quoted('SERVER_MISC_CONFIG_PATH', serverconfigdir)
|
|
|
|
|
conf_data.set_quoted('PROJECTROOT', get_option('prefix'))
|
|
|
|
|
conf_data.set_quoted('SYSCONFDIR', join_paths(get_option('prefix'), get_option('sysconfdir')))
|
2018-03-27 12:58:15 -04:00
|
|
|
conf_data.set_quoted('SUID_WRAPPER_DIR', join_paths(get_option('prefix'), get_option('libexecdir')))
|
2018-03-26 14:57:07 -04:00
|
|
|
conf_data.set_quoted('COMPILEDDEFAULTFONTPATH', default_font_path)
|
Add a Meson build system alongside autotools.
This is a work in progress that builds Xvfb, Xephyr, Xwayland, Xnest,
and Xdmx so far. The outline of Xquartz/Xwin support is in tree, but
hasn't been built yet. The unit tests are also not done.
The intent is to build this as a complete replacement for the
autotools system, then eventually replace autotools. meson is faster
to generate the build, faster to run the bulid, shorter to write the
build files in, and less error-prone than autotools.
v2: Fix indentation nits, move version declaration to project(), use
existing meson_options for version-config.h's vendor name/web.
Signed-off-by: Eric Anholt <eric@anholt.net>
Acked-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-03-11 10:24:04 -08:00
|
|
|
|
2017-05-07 20:53:04 +01:00
|
|
|
conf_data.set('XORG_VERSION_CURRENT', release)
|
Add a Meson build system alongside autotools.
This is a work in progress that builds Xvfb, Xephyr, Xwayland, Xnest,
and Xdmx so far. The outline of Xquartz/Xwin support is in tree, but
hasn't been built yet. The unit tests are also not done.
The intent is to build this as a complete replacement for the
autotools system, then eventually replace autotools. meson is faster
to generate the build, faster to run the bulid, shorter to write the
build files in, and less error-prone than autotools.
v2: Fix indentation nits, move version declaration to project(), use
existing meson_options for version-config.h's vendor name/web.
Signed-off-by: Eric Anholt <eric@anholt.net>
Acked-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-03-11 10:24:04 -08:00
|
|
|
|
2021-04-05 16:24:47 +03:00
|
|
|
conf_data.set('HASXDMAUTH', has_xdm_auth ? '1' : false)
|
|
|
|
|
|
|
|
|
|
conf_data.set('HAVE_DLFCN_H', cc.has_header('dlfcn.h') ? '1' : false)
|
|
|
|
|
conf_data.set('HAVE_EXECINFO_H', cc.has_header('execinfo.h') ? '1' : false)
|
|
|
|
|
conf_data.set('HAVE_FNMATCH_H', cc.has_header('fnmatch.h') ? '1' : false)
|
|
|
|
|
conf_data.set('HAVE_LINUX_AGPGART_H', cc.has_header('linux/agpgart.h') ? '1' : false)
|
|
|
|
|
conf_data.set('HAVE_STRINGS_H', cc.has_header('strings.h') ? '1' : false)
|
|
|
|
|
conf_data.set('HAVE_SYS_AGPGART_H', cc.has_header('sys/agpgart.h') ? '1' : false)
|
2023-01-27 09:55:33 +00:00
|
|
|
conf_data.set('HAVE_SYS_UCRED_H', cc.has_header('sys/ucred.h') ? '1' : false)
|
2023-01-18 12:19:05 -08:00
|
|
|
conf_data.set('HAVE_SYS_UN_H', cc.has_header('sys/un.h') ? '1' : false)
|
2021-04-05 16:24:47 +03:00
|
|
|
conf_data.set('HAVE_SYS_UTSNAME_H', cc.has_header('sys/utsname.h') ? '1' : false)
|
|
|
|
|
conf_data.set('HAVE_SYS_SYSMACROS_H', cc.has_header('sys/sysmacros.h') ? '1' : false)
|
|
|
|
|
|
|
|
|
|
conf_data.set('HAVE_ARC4RANDOM_BUF', cc.has_function('arc4random_buf', dependencies: libbsd_dep) ? '1' : false)
|
|
|
|
|
conf_data.set('HAVE_BACKTRACE', cc.has_function('backtrace') ? '1' : false)
|
|
|
|
|
conf_data.set('HAVE_CBRT', cc.has_function('cbrt') ? '1' : false)
|
|
|
|
|
conf_data.set('HAVE_EPOLL_CREATE1', cc.has_function('epoll_create1') ? '1' : false)
|
|
|
|
|
conf_data.set('HAVE_GETUID', cc.has_function('getuid') ? '1' : false)
|
|
|
|
|
conf_data.set('HAVE_GETEUID', cc.has_function('geteuid') ? '1' : false)
|
|
|
|
|
conf_data.set('HAVE_ISASTREAM', cc.has_function('isastream') ? '1' : false)
|
|
|
|
|
conf_data.set('HAVE_ISSETUGID', cc.has_function('issetugid') ? '1' : false)
|
2025-01-12 10:45:01 -08:00
|
|
|
conf_data.set('HAVE_GETADDRINFO', cc.has_function('getaddrinfo') ? '1' : false)
|
2021-04-05 16:24:47 +03:00
|
|
|
conf_data.set('HAVE_GETIFADDRS', cc.has_function('getifaddrs') ? '1' : false)
|
|
|
|
|
conf_data.set('HAVE_GETPEEREID', cc.has_function('getpeereid') ? '1' : false)
|
|
|
|
|
conf_data.set('HAVE_GETPEERUCRED', cc.has_function('getpeerucred') ? '1' : false)
|
|
|
|
|
conf_data.set('HAVE_GETPROGNAME', cc.has_function('getprogname') ? '1' : false)
|
|
|
|
|
conf_data.set('HAVE_GETZONEID', cc.has_function('getzoneid') ? '1' : false)
|
2025-01-18 16:41:15 -08:00
|
|
|
conf_data.set('HAVE_INET_NTOP', cc.has_function('inet_ntop') ? '1' : false)
|
2021-04-05 16:24:47 +03:00
|
|
|
conf_data.set('HAVE_MEMFD_CREATE', cc.has_function('memfd_create') ? '1' : false)
|
|
|
|
|
conf_data.set('HAVE_MKOSTEMP', cc.has_function('mkostemp') ? '1' : false)
|
|
|
|
|
conf_data.set('HAVE_MMAP', cc.has_function('mmap') ? '1' : false)
|
2021-12-07 11:15:50 +01:00
|
|
|
conf_data.set('HAVE_OPEN_DEVICE', cc.has_function('open_device') ? '1' : false)
|
2021-04-05 16:24:47 +03:00
|
|
|
conf_data.set('HAVE_POLL', cc.has_function('poll') ? '1' : false)
|
|
|
|
|
conf_data.set('HAVE_POLLSET_CREATE', cc.has_function('pollset_create') ? '1' : false)
|
|
|
|
|
conf_data.set('HAVE_POSIX_FALLOCATE', cc.has_function('posix_fallocate') ? '1' : false)
|
|
|
|
|
conf_data.set('HAVE_PORT_CREATE', cc.has_function('port_create') ? '1' : false)
|
|
|
|
|
conf_data.set('HAVE_REALLOCARRAY', cc.has_function('reallocarray', dependencies: libbsd_dep) ? '1' : false)
|
|
|
|
|
conf_data.set('HAVE_SETEUID', cc.has_function('seteuid') ? '1' : false)
|
|
|
|
|
conf_data.set('HAVE_SETITIMER', cc.has_function('setitimer') ? '1' : false)
|
|
|
|
|
conf_data.set('HAVE_SHMCTL64', cc.has_function('shmctl64') ? '1' : false)
|
|
|
|
|
conf_data.set('HAVE_SIGACTION', cc.has_function('sigaction') ? '1' : false)
|
|
|
|
|
conf_data.set('HAVE_SIGPROCMASK', cc.has_function('sigprocmask') ? '1' : false)
|
2024-10-30 10:34:14 -07:00
|
|
|
# HAVE_SOCKLEN_T is used by xtrans when IPv6 is disabled
|
|
|
|
|
conf_data.set('HAVE_SOCKLEN_T', cc.has_type('socklen_t', prefix: '#include <sys/socket.h>') ? '1' : false)
|
2021-04-05 16:24:47 +03:00
|
|
|
conf_data.set('HAVE_STRCASESTR', cc.has_function('strcasestr') ? '1' : false)
|
|
|
|
|
conf_data.set('HAVE_STRLCAT', cc.has_function('strlcat', dependencies: libbsd_dep) ? '1' : false)
|
|
|
|
|
conf_data.set('HAVE_STRLCPY', cc.has_function('strlcpy', dependencies: libbsd_dep) ? '1' : false)
|
|
|
|
|
conf_data.set('HAVE_STRNDUP', cc.has_function('strndup') and cc.has_header_symbol('string.h', 'strndup') ? '1' : false)
|
2025-03-08 16:29:53 -08:00
|
|
|
# HAVE_STRUCT_SOCKADDR_STORAGE is used by xtrans >= 1.6
|
|
|
|
|
conf_data.set('HAVE_STRUCT_SOCKADDR_STORAGE', cc.has_type('struct sockaddr_storage', prefix: '#include <sys/socket.h>') ? '1' : false)
|
2021-04-05 16:24:47 +03:00
|
|
|
conf_data.set('HAVE_TIMINGSAFE_MEMCMP', cc.has_function('timingsafe_memcmp') ? '1' : false)
|
|
|
|
|
conf_data.set('HAVE_VASPRINTF', cc.has_function('vasprintf') ? '1' : false)
|
|
|
|
|
conf_data.set('HAVE_VSNPRINTF', cc.has_function('vsnprintf') ? '1' : false)
|
|
|
|
|
conf_data.set('HAVE_WALKCONTEXT', cc.has_function('walkcontext') ? '1' : false)
|
2023-01-27 09:55:33 +00:00
|
|
|
conf_data.set('HAVE_XUCRED_CR_PID', cc.has_member('struct xucred', 'cr_pid', prefix : '#include <sys/ucred.h>') ? '1' : false)
|
2024-04-16 16:43:28 +02:00
|
|
|
conf_data.set('LOCK_SERVER', host_machine.system() != 'windows' ? '1' : false)
|
Add a Meson build system alongside autotools.
This is a work in progress that builds Xvfb, Xephyr, Xwayland, Xnest,
and Xdmx so far. The outline of Xquartz/Xwin support is in tree, but
hasn't been built yet. The unit tests are also not done.
The intent is to build this as a complete replacement for the
autotools system, then eventually replace autotools. meson is faster
to generate the build, faster to run the bulid, shorter to write the
build files in, and less error-prone than autotools.
v2: Fix indentation nits, move version declaration to project(), use
existing meson_options for version-config.h's vendor name/web.
Signed-off-by: Eric Anholt <eric@anholt.net>
Acked-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-03-11 10:24:04 -08:00
|
|
|
|
|
|
|
|
# Don't let X dependencies typedef 'pointer'
|
|
|
|
|
conf_data.set('_XTYPEDEF_POINTER', '1')
|
|
|
|
|
conf_data.set('_XITYPEDEF_POINTER', '1')
|
|
|
|
|
|
2018-06-16 13:00:01 +02:00
|
|
|
conf_data.set('LISTEN_TCP', get_option('listen_tcp'))
|
|
|
|
|
conf_data.set('LISTEN_UNIX', get_option('listen_unix'))
|
|
|
|
|
conf_data.set('LISTEN_LOCAL', get_option('listen_local'))
|
2018-08-01 13:49:50 -07:00
|
|
|
|
|
|
|
|
if cc.has_header_symbol('sys/socket.h', 'SCM_RIGHTS')
|
|
|
|
|
conf_data.set('XTRANS_SEND_FDS', '1')
|
|
|
|
|
endif
|
Add a Meson build system alongside autotools.
This is a work in progress that builds Xvfb, Xephyr, Xwayland, Xnest,
and Xdmx so far. The outline of Xquartz/Xwin support is in tree, but
hasn't been built yet. The unit tests are also not done.
The intent is to build this as a complete replacement for the
autotools system, then eventually replace autotools. meson is faster
to generate the build, faster to run the bulid, shorter to write the
build files in, and less error-prone than autotools.
v2: Fix indentation nits, move version declaration to project(), use
existing meson_options for version-config.h's vendor name/web.
Signed-off-by: Eric Anholt <eric@anholt.net>
Acked-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-03-11 10:24:04 -08:00
|
|
|
|
2021-06-26 09:44:39 +03:00
|
|
|
if conf_data.get('HAVE_GETPEEREID').to_int() == 0 and conf_data.get('HAVE_GETPEERUCRED').to_int() == 0
|
2023-02-18 11:29:25 +01:00
|
|
|
if not cc.has_header_symbol('sys/socket.h', 'SO_PEERCRED', args: '-D_GNU_SOURCE')
|
2018-08-07 16:23:17 -07:00
|
|
|
conf_data.set('NO_LOCAL_CLIENT_CRED', 1)
|
|
|
|
|
endif
|
|
|
|
|
endif
|
|
|
|
|
|
Add a Meson build system alongside autotools.
This is a work in progress that builds Xvfb, Xephyr, Xwayland, Xnest,
and Xdmx so far. The outline of Xquartz/Xwin support is in tree, but
hasn't been built yet. The unit tests are also not done.
The intent is to build this as a complete replacement for the
autotools system, then eventually replace autotools. meson is faster
to generate the build, faster to run the bulid, shorter to write the
build files in, and less error-prone than autotools.
v2: Fix indentation nits, move version declaration to project(), use
existing meson_options for version-config.h's vendor name/web.
Signed-off-by: Eric Anholt <eric@anholt.net>
Acked-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-03-11 10:24:04 -08:00
|
|
|
conf_data.set('TCPCONN', '1')
|
2021-04-05 16:24:47 +03:00
|
|
|
conf_data.set('UNIXCONN', host_machine.system() != 'windows' ? '1' : false)
|
|
|
|
|
conf_data.set('IPv6', build_ipv6 ? '1' : false)
|
Add a Meson build system alongside autotools.
This is a work in progress that builds Xvfb, Xephyr, Xwayland, Xnest,
and Xdmx so far. The outline of Xquartz/Xwin support is in tree, but
hasn't been built yet. The unit tests are also not done.
The intent is to build this as a complete replacement for the
autotools system, then eventually replace autotools. meson is faster
to generate the build, faster to run the bulid, shorter to write the
build files in, and less error-prone than autotools.
v2: Fix indentation nits, move version declaration to project(), use
existing meson_options for version-config.h's vendor name/web.
Signed-off-by: Eric Anholt <eric@anholt.net>
Acked-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-03-11 10:24:04 -08:00
|
|
|
|
2025-06-19 11:16:47 +02:00
|
|
|
# some drivers (eg. xf86-video-intel) still relying on this symbol being set
|
|
|
|
|
conf_data.set('COMPOSITE', '1')
|
|
|
|
|
|
Add a Meson build system alongside autotools.
This is a work in progress that builds Xvfb, Xephyr, Xwayland, Xnest,
and Xdmx so far. The outline of Xquartz/Xwin support is in tree, but
hasn't been built yet. The unit tests are also not done.
The intent is to build this as a complete replacement for the
autotools system, then eventually replace autotools. meson is faster
to generate the build, faster to run the bulid, shorter to write the
build files in, and less error-prone than autotools.
v2: Fix indentation nits, move version declaration to project(), use
existing meson_options for version-config.h's vendor name/web.
Signed-off-by: Eric Anholt <eric@anholt.net>
Acked-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-03-11 10:24:04 -08:00
|
|
|
conf_data.set('DAMAGE', '1')
|
|
|
|
|
conf_data.set('DBE', '1')
|
2021-04-05 16:24:47 +03:00
|
|
|
conf_data.set('DGA', build_dga ? '1' : false)
|
|
|
|
|
conf_data.set('DPMSExtension', build_dpms ? '1' : false)
|
|
|
|
|
conf_data.set('DRI2', build_dri2 ? '1' : false)
|
|
|
|
|
conf_data.set('DRI3', build_dri3 ? '1' : false)
|
2019-04-28 21:56:20 +01:00
|
|
|
if build_glx
|
2023-10-23 17:39:33 +02:00
|
|
|
conf_data.set_quoted('DRI_DRIVER_PATH', dri_dep.get_variable(pkgconfig : 'dridriverdir'))
|
2019-04-28 21:56:20 +01:00
|
|
|
endif
|
2021-04-05 16:24:47 +03:00
|
|
|
conf_data.set('MITSHM', build_mitshm ? '1' : false)
|
2024-01-24 20:04:37 +01:00
|
|
|
|
|
|
|
|
# for backwards compat with drivers, still setting the old PANORAMIX symbol
|
2021-04-05 16:24:47 +03:00
|
|
|
conf_data.set('PANORAMIX', build_xinerama ? '1' : false)
|
2024-01-24 20:04:37 +01:00
|
|
|
conf_data.set('XINERAMA', build_xinerama ? '1' : false)
|
|
|
|
|
|
Add a Meson build system alongside autotools.
This is a work in progress that builds Xvfb, Xephyr, Xwayland, Xnest,
and Xdmx so far. The outline of Xquartz/Xwin support is in tree, but
hasn't been built yet. The unit tests are also not done.
The intent is to build this as a complete replacement for the
autotools system, then eventually replace autotools. meson is faster
to generate the build, faster to run the bulid, shorter to write the
build files in, and less error-prone than autotools.
v2: Fix indentation nits, move version declaration to project(), use
existing meson_options for version-config.h's vendor name/web.
Signed-off-by: Eric Anholt <eric@anholt.net>
Acked-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-03-11 10:24:04 -08:00
|
|
|
conf_data.set('PRESENT', '1')
|
|
|
|
|
conf_data.set('RANDR', '1')
|
2021-04-05 16:24:47 +03:00
|
|
|
conf_data.set('RES', build_res ? '1' : false)
|
Add a Meson build system alongside autotools.
This is a work in progress that builds Xvfb, Xephyr, Xwayland, Xnest,
and Xdmx so far. The outline of Xquartz/Xwin support is in tree, but
hasn't been built yet. The unit tests are also not done.
The intent is to build this as a complete replacement for the
autotools system, then eventually replace autotools. meson is faster
to generate the build, faster to run the bulid, shorter to write the
build files in, and less error-prone than autotools.
v2: Fix indentation nits, move version declaration to project(), use
existing meson_options for version-config.h's vendor name/web.
Signed-off-by: Eric Anholt <eric@anholt.net>
Acked-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-03-11 10:24:04 -08:00
|
|
|
conf_data.set('RENDER', '1')
|
2021-04-05 16:24:47 +03:00
|
|
|
conf_data.set('SCREENSAVER', build_screensaver ? '1' : false)
|
Add a Meson build system alongside autotools.
This is a work in progress that builds Xvfb, Xephyr, Xwayland, Xnest,
and Xdmx so far. The outline of Xquartz/Xwin support is in tree, but
hasn't been built yet. The unit tests are also not done.
The intent is to build this as a complete replacement for the
autotools system, then eventually replace autotools. meson is faster
to generate the build, faster to run the bulid, shorter to write the
build files in, and less error-prone than autotools.
v2: Fix indentation nits, move version declaration to project(), use
existing meson_options for version-config.h's vendor name/web.
Signed-off-by: Eric Anholt <eric@anholt.net>
Acked-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-03-11 10:24:04 -08:00
|
|
|
conf_data.set('SHAPE', '1')
|
2025-07-16 23:01:06 +02:00
|
|
|
conf_data.set('XACE', '1')
|
Add a Meson build system alongside autotools.
This is a work in progress that builds Xvfb, Xephyr, Xwayland, Xnest,
and Xdmx so far. The outline of Xquartz/Xwin support is in tree, but
hasn't been built yet. The unit tests are also not done.
The intent is to build this as a complete replacement for the
autotools system, then eventually replace autotools. meson is faster
to generate the build, faster to run the bulid, shorter to write the
build files in, and less error-prone than autotools.
v2: Fix indentation nits, move version declaration to project(), use
existing meson_options for version-config.h's vendor name/web.
Signed-off-by: Eric Anholt <eric@anholt.net>
Acked-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-03-11 10:24:04 -08:00
|
|
|
conf_data.set('XCMISC', '1')
|
2021-04-05 16:24:47 +03:00
|
|
|
conf_data.set('XCSECURITY', build_xsecurity ? '1' : false)
|
2024-01-25 16:38:10 +01:00
|
|
|
conf_data.set('CONFIG_NAMESPACE', build_namespace ? '1' : false)
|
2021-04-05 16:24:47 +03:00
|
|
|
conf_data.set('XDMCP', xdmcp_dep.found() ? '1' : false)
|
|
|
|
|
conf_data.set('XF86BIGFONT', build_xf86bigfont ? '1' : false)
|
|
|
|
|
conf_data.set('XF86DRI', build_dri1 ? '1' : false)
|
2018-08-07 16:23:14 -07:00
|
|
|
conf_data.set('XF86VIDMODE', 1)
|
2017-05-08 11:40:16 +01:00
|
|
|
conf_data.set('XFIXES', '1')
|
2021-04-05 16:24:47 +03:00
|
|
|
conf_data.set('XFreeXDGA', build_dga ? '1' : false)
|
|
|
|
|
conf_data.set('XINERAMA', build_xinerama ? '1' : false)
|
Add a Meson build system alongside autotools.
This is a work in progress that builds Xvfb, Xephyr, Xwayland, Xnest,
and Xdmx so far. The outline of Xquartz/Xwin support is in tree, but
hasn't been built yet. The unit tests are also not done.
The intent is to build this as a complete replacement for the
autotools system, then eventually replace autotools. meson is faster
to generate the build, faster to run the bulid, shorter to write the
build files in, and less error-prone than autotools.
v2: Fix indentation nits, move version declaration to project(), use
existing meson_options for version-config.h's vendor name/web.
Signed-off-by: Eric Anholt <eric@anholt.net>
Acked-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-03-11 10:24:04 -08:00
|
|
|
conf_data.set('XINPUT', '1')
|
|
|
|
|
conf_data.set('XRECORD', '1')
|
2021-04-05 16:24:47 +03:00
|
|
|
conf_data.set('XSELINUX', build_xselinux ? '1' : false)
|
Add a Meson build system alongside autotools.
This is a work in progress that builds Xvfb, Xephyr, Xwayland, Xnest,
and Xdmx so far. The outline of Xquartz/Xwin support is in tree, but
hasn't been built yet. The unit tests are also not done.
The intent is to build this as a complete replacement for the
autotools system, then eventually replace autotools. meson is faster
to generate the build, faster to run the bulid, shorter to write the
build files in, and less error-prone than autotools.
v2: Fix indentation nits, move version declaration to project(), use
existing meson_options for version-config.h's vendor name/web.
Signed-off-by: Eric Anholt <eric@anholt.net>
Acked-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-03-11 10:24:04 -08:00
|
|
|
conf_data.set('XSYNC', '1')
|
|
|
|
|
conf_data.set('XTEST', '1')
|
2021-04-05 16:24:47 +03:00
|
|
|
conf_data.set('XV', build_xv ? '1' : false)
|
|
|
|
|
conf_data.set('XvExtension', build_xv ? '1' : false)
|
|
|
|
|
conf_data.set('XvMCExtension', build_xvmc ? '1' : false)
|
Add a Meson build system alongside autotools.
This is a work in progress that builds Xvfb, Xephyr, Xwayland, Xnest,
and Xdmx so far. The outline of Xquartz/Xwin support is in tree, but
hasn't been built yet. The unit tests are also not done.
The intent is to build this as a complete replacement for the
autotools system, then eventually replace autotools. meson is faster
to generate the build, faster to run the bulid, shorter to write the
build files in, and less error-prone than autotools.
v2: Fix indentation nits, move version declaration to project(), use
existing meson_options for version-config.h's vendor name/web.
Signed-off-by: Eric Anholt <eric@anholt.net>
Acked-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-03-11 10:24:04 -08:00
|
|
|
|
2024-01-25 18:33:06 +01:00
|
|
|
# needed by several extensions
|
2024-01-25 16:38:10 +01:00
|
|
|
build_registry_resource = (build_xselinux or build_res or build_namespace)
|
2024-01-25 18:33:06 +01:00
|
|
|
conf_data.set('X_REGISTRY_RESOURCE', build_registry_resource ? '1' : false)
|
2024-01-25 16:38:10 +01:00
|
|
|
build_registry_request = (build_xselinux or build_xsecurity or with_dtrace or build_namespace)
|
2024-01-25 18:33:06 +01:00
|
|
|
conf_data.set('X_REGISTRY_REQUEST', build_registry_request ? '1' : false)
|
|
|
|
|
|
2019-10-26 17:12:26 +01:00
|
|
|
conf_data.set('HAVE_SHA1_IN_' + sha1.to_upper(), '1', description: 'Use @0@ SHA1 functions'.format(sha1))
|
2019-08-27 18:10:38 -04:00
|
|
|
conf_data.set('HAVE_LIBUNWIND', get_option('libunwind'))
|
Add a Meson build system alongside autotools.
This is a work in progress that builds Xvfb, Xephyr, Xwayland, Xnest,
and Xdmx so far. The outline of Xquartz/Xwin support is in tree, but
hasn't been built yet. The unit tests are also not done.
The intent is to build this as a complete replacement for the
autotools system, then eventually replace autotools. meson is faster
to generate the build, faster to run the bulid, shorter to write the
build files in, and less error-prone than autotools.
v2: Fix indentation nits, move version declaration to project(), use
existing meson_options for version-config.h's vendor name/web.
Signed-off-by: Eric Anholt <eric@anholt.net>
Acked-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-03-11 10:24:04 -08:00
|
|
|
|
2021-04-05 16:24:47 +03:00
|
|
|
conf_data.set('HAVE_APM', (build_apm or build_acpi) ? '1' : false)
|
|
|
|
|
conf_data.set('HAVE_ACPI', build_acpi ? '1' : false)
|
2018-03-01 12:55:11 +01:00
|
|
|
|
2021-11-13 16:42:36 +02:00
|
|
|
conf_data.set('DDXBEFORERESET', build_xwin ? '1' : false)
|
2017-10-13 15:44:32 -04:00
|
|
|
enable_debugging = get_option('buildtype') == 'debug'
|
2021-04-05 16:24:47 +03:00
|
|
|
conf_data.set('DEBUG', enable_debugging ? '1' : false)
|
2017-10-13 15:44:32 -04:00
|
|
|
|
Add a Meson build system alongside autotools.
This is a work in progress that builds Xvfb, Xephyr, Xwayland, Xnest,
and Xdmx so far. The outline of Xquartz/Xwin support is in tree, but
hasn't been built yet. The unit tests are also not done.
The intent is to build this as a complete replacement for the
autotools system, then eventually replace autotools. meson is faster
to generate the build, faster to run the bulid, shorter to write the
build files in, and less error-prone than autotools.
v2: Fix indentation nits, move version declaration to project(), use
existing meson_options for version-config.h's vendor name/web.
Signed-off-by: Eric Anholt <eric@anholt.net>
Acked-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-03-11 10:24:04 -08:00
|
|
|
conf_data.set_quoted('XVENDORNAME', get_option('vendor_name'))
|
|
|
|
|
conf_data.set_quoted('XVENDORNAMESHORT', get_option('vendor_name_short'))
|
|
|
|
|
conf_data.set_quoted('__VENDORDWEBSUPPORT__', get_option('vendor_web'))
|
2017-05-07 20:53:04 +01:00
|
|
|
conf_data.set_quoted('BUILDERADDR', get_option('builder_addr'))
|
|
|
|
|
conf_data.set_quoted('BUILDERSTRING', get_option('builder_string'))
|
Add a Meson build system alongside autotools.
This is a work in progress that builds Xvfb, Xephyr, Xwayland, Xnest,
and Xdmx so far. The outline of Xquartz/Xwin support is in tree, but
hasn't been built yet. The unit tests are also not done.
The intent is to build this as a complete replacement for the
autotools system, then eventually replace autotools. meson is faster
to generate the build, faster to run the bulid, shorter to write the
build files in, and less error-prone than autotools.
v2: Fix indentation nits, move version declaration to project(), use
existing meson_options for version-config.h's vendor name/web.
Signed-off-by: Eric Anholt <eric@anholt.net>
Acked-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-03-11 10:24:04 -08:00
|
|
|
|
2019-04-19 14:01:48 +01:00
|
|
|
if build_rootless
|
2021-04-05 16:24:47 +03:00
|
|
|
conf_data.set('ROOTLESS', build_rootless ? '1' : false)
|
2019-04-19 14:01:48 +01:00
|
|
|
conf_data.set('ROOTLESS_WORKAROUND', 1)
|
|
|
|
|
conf_data.set('ROOTLESS_SAFEALPHA', 1)
|
|
|
|
|
endif
|
|
|
|
|
|
2018-03-28 14:04:36 +02:00
|
|
|
#
|
|
|
|
|
# for xorg-server.h only
|
|
|
|
|
#
|
|
|
|
|
defines_svr4 = '''#if !defined(SVR4) && !defined(__svr4__) && !defined(__SVR4)
|
|
|
|
|
#error "I am not SVR4"
|
|
|
|
|
#endif
|
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
# BSD specifics
|
|
|
|
|
supports_pcvt = false
|
|
|
|
|
supports_syscons = false
|
|
|
|
|
supports_wscons = false
|
|
|
|
|
csrg_based = false
|
|
|
|
|
|
2021-04-07 17:28:46 -06:00
|
|
|
if host_machine.system() == 'freebsd' or host_machine.system() == 'dragonfly'
|
2018-03-28 14:04:36 +02:00
|
|
|
supports_pcvt = true
|
|
|
|
|
supports_syscons = true
|
|
|
|
|
csrg_based = true
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if host_machine.system() == 'kfreebsd'
|
|
|
|
|
supports_pcvt = true
|
|
|
|
|
supports_syscons = true
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if host_machine.system() == 'netbsd'
|
|
|
|
|
supports_pcvt = true
|
|
|
|
|
supports_wscons = true
|
|
|
|
|
csrg_based = true
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if host_machine.system() == 'openbsd'
|
|
|
|
|
supports_pcvt = true
|
|
|
|
|
supports_wscons = true
|
|
|
|
|
csrg_based = true
|
|
|
|
|
endif
|
|
|
|
|
|
2019-04-18 17:06:41 +01:00
|
|
|
if host_machine.system() == 'darwin'
|
|
|
|
|
csrg_based = true
|
|
|
|
|
endif
|
|
|
|
|
|
2021-04-05 16:24:47 +03:00
|
|
|
conf_data.set('SVR4', cc.compiles(defines_svr4) ? '1' : false)
|
2018-03-28 14:04:36 +02:00
|
|
|
conf_data.set_quoted('XKB_DFLT_RULES', get_option('xkb_default_rules'))
|
2021-04-05 16:24:47 +03:00
|
|
|
conf_data.set('XORGSERVER', build_xorg ? '1' : false)
|
meson: Set XCONFIGFILE to 'xorg.conf' instead of '/etc/xorg.conf'
The autoconf build hard-codes XCONFIGFILE to just 'xorg.conf':
XF86CONFIGFILE="xorg.conf"
AC_DEFINE_DIR(XCONFIGFILE, XF86CONFIGFILE, [Name of configuration file])
Later, the X server passes that into DoSubstitution() which expands the path:
DoSubstitution(template="/etc/X11/%X", ..., XConfigFile="xorg.conf")
This returns "/etc/X11/xorg.conf".
The Meson build, on the other hand, sets XCONFIGFILE to
join_paths(get_option('sysconfdir'), 'xorg.conf'). If sysconfdir is /etc, this
results in '/etc/xorg.conf', resulting in DoSubstitution returning
'/etc/X11/etc/xorg.conf'.
Fix this by just hard-coding XCONFIGFILE to 'xorg.conf'.
Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
Reviewed-by: Thierry Reding <treding@nvidia.com>
2018-05-04 10:48:17 -07:00
|
|
|
conf_data.set_quoted('XCONFIGFILE', 'xorg.conf')
|
2018-03-28 14:04:36 +02:00
|
|
|
conf_data.set_quoted('__XSERVERNAME__', 'Xorg')
|
2021-04-05 16:24:47 +03:00
|
|
|
conf_data.set('WITH_VGAHW', build_vgahw ? '1' : false)
|
|
|
|
|
conf_data.set('CSRG_BASED', csrg_based ? '1' : false)
|
|
|
|
|
conf_data.set('PCVT_SUPPORT', supports_pcvt ? '1' : false)
|
|
|
|
|
conf_data.set('SYSCONS_SUPPORT', supports_syscons ? '1' : false)
|
|
|
|
|
conf_data.set('WSCONS_SUPPORT', supports_wscons ? '1' : false)
|
|
|
|
|
conf_data.set('XSERVER_LIBPCIACCESS', get_option('pciaccess') ? '1' : false)
|
|
|
|
|
conf_data.set('XSERVER_PLATFORM_BUS', build_udev_kms ? '1' : false)
|
dix: add generic Xinerama capable VRR infrastructure
We don't have a standard protocol for enabling VRR yet, but some time ago an
ad-hoc had been made in the amdgpu driver (later also copied to modsetting),
which works by client setting the _VARIABLE_REFRESH window property.
The way it's currently done - driver is highjacking the X_ChangeProperty and
X_DeleteProperty request handlers - is pretty fragile, and is also a violation
of layers: drivers never should be twisted with core protocol details. (And in
the future, this should be done by some suitable extension).
Another problem is Xinerama: when it's enabled, this only works on the first
screen - the others won't ever see this signal, no matter on which one(s) the
Window is physically placed (for the wire protocol, all windows are on screen 0,
unless the client explicitly creates them on another one)
This commit adds a generic Screen proc for telling the DDX, whether the VRR mode
shall be changed (for now, it's only DISABLED and ENABLED). Drivers can hook into
here in order to receive this signal, w/o having to highjack any core request
handlers. Catching the property change is now entirely done in the DIX.
The (non-standard) status qou of (ab)using window properties is kept, but it's
now also easy to add a new signaling mechanism, in case a standard is agreed on.
Yet a quite naive implementation (eg. not acting on moving windows between screens),
but enough to fix the most pressing problems supporting extra screens in general,
as well as stopping the highjacking of core request handlers by drivers.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2024-07-22 15:59:41 +02:00
|
|
|
conf_data.set('XSERVER_SCREEN_VRR', '1')
|
2018-03-28 14:04:36 +02:00
|
|
|
|
Add a Meson build system alongside autotools.
This is a work in progress that builds Xvfb, Xephyr, Xwayland, Xnest,
and Xdmx so far. The outline of Xquartz/Xwin support is in tree, but
hasn't been built yet. The unit tests are also not done.
The intent is to build this as a complete replacement for the
autotools system, then eventually replace autotools. meson is faster
to generate the build, faster to run the bulid, shorter to write the
build files in, and less error-prone than autotools.
v2: Fix indentation nits, move version declaration to project(), use
existing meson_options for version-config.h's vendor name/web.
Signed-off-by: Eric Anholt <eric@anholt.net>
Acked-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-03-11 10:24:04 -08:00
|
|
|
version_data = configuration_data()
|
|
|
|
|
version_data.set('VENDOR_RELEASE', '@0@'.format(release))
|
|
|
|
|
version_data.set_quoted('VENDOR_NAME', get_option('vendor_name'))
|
|
|
|
|
version_data.set_quoted('VENDOR_NAME_SHORT', get_option('vendor_name_short'))
|
|
|
|
|
version_data.set_quoted('VENDOR_WEB', get_option('vendor_web'))
|
2017-05-07 20:53:04 +01:00
|
|
|
version_data.set_quoted('VENDOR_MAN_VERSION', 'Version @0@.@1@.@2@'.format(major, minor, patch))
|
Add a Meson build system alongside autotools.
This is a work in progress that builds Xvfb, Xephyr, Xwayland, Xnest,
and Xdmx so far. The outline of Xquartz/Xwin support is in tree, but
hasn't been built yet. The unit tests are also not done.
The intent is to build this as a complete replacement for the
autotools system, then eventually replace autotools. meson is faster
to generate the build, faster to run the bulid, shorter to write the
build files in, and less error-prone than autotools.
v2: Fix indentation nits, move version declaration to project(), use
existing meson_options for version-config.h's vendor name/web.
Signed-off-by: Eric Anholt <eric@anholt.net>
Acked-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-03-11 10:24:04 -08:00
|
|
|
configure_file(output : 'version-config.h',
|
|
|
|
|
configuration : version_data)
|
|
|
|
|
|
|
|
|
|
xkb_data = configuration_data()
|
|
|
|
|
|
2017-10-11 18:03:45 -04:00
|
|
|
xkb_data.set_quoted('XKB_BIN_DIRECTORY', xkb_bin_dir)
|
Add a Meson build system alongside autotools.
This is a work in progress that builds Xvfb, Xephyr, Xwayland, Xnest,
and Xdmx so far. The outline of Xquartz/Xwin support is in tree, but
hasn't been built yet. The unit tests are also not done.
The intent is to build this as a complete replacement for the
autotools system, then eventually replace autotools. meson is faster
to generate the build, faster to run the bulid, shorter to write the
build files in, and less error-prone than autotools.
v2: Fix indentation nits, move version declaration to project(), use
existing meson_options for version-config.h's vendor name/web.
Signed-off-by: Eric Anholt <eric@anholt.net>
Acked-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-03-11 10:24:04 -08:00
|
|
|
xkb_data.set_quoted('XKB_BASE_DIRECTORY', xkb_dir)
|
|
|
|
|
xkb_data.set_quoted('XKB_DFLT_RULES', get_option('xkb_default_rules'))
|
|
|
|
|
xkb_data.set_quoted('XKB_DFLT_MODEL', get_option('xkb_default_model'))
|
|
|
|
|
xkb_data.set_quoted('XKB_DFLT_LAYOUT', get_option('xkb_default_layout'))
|
|
|
|
|
xkb_data.set_quoted('XKB_DFLT_VARIANT', get_option('xkb_default_variant'))
|
|
|
|
|
xkb_data.set_quoted('XKB_DFLT_OPTIONS', get_option('xkb_default_options'))
|
2021-03-05 15:23:53 +01:00
|
|
|
xkb_data.set_quoted('XKM_OUTPUT_DIR', xkb_output_dir + '/')
|
Add a Meson build system alongside autotools.
This is a work in progress that builds Xvfb, Xephyr, Xwayland, Xnest,
and Xdmx so far. The outline of Xquartz/Xwin support is in tree, but
hasn't been built yet. The unit tests are also not done.
The intent is to build this as a complete replacement for the
autotools system, then eventually replace autotools. meson is faster
to generate the build, faster to run the bulid, shorter to write the
build files in, and less error-prone than autotools.
v2: Fix indentation nits, move version declaration to project(), use
existing meson_options for version-config.h's vendor name/web.
Signed-off-by: Eric Anholt <eric@anholt.net>
Acked-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-03-11 10:24:04 -08:00
|
|
|
|
|
|
|
|
configure_file(output : 'xkb-config.h',
|
|
|
|
|
configuration : xkb_data)
|
|
|
|
|
|
|
|
|
|
xorg_data = configuration_data()
|
|
|
|
|
|
|
|
|
|
xorg_data.set_quoted('XORG_BIN_DIRECTORY', get_option('bindir'))
|
|
|
|
|
xorg_data.set('XORG_VERSION_CURRENT', release)
|
|
|
|
|
xorg_data.set_quoted('XF86CONFIGFILE', 'xorg.conf')
|
meson: Set XCONFIGFILE to 'xorg.conf' instead of '/etc/xorg.conf'
The autoconf build hard-codes XCONFIGFILE to just 'xorg.conf':
XF86CONFIGFILE="xorg.conf"
AC_DEFINE_DIR(XCONFIGFILE, XF86CONFIGFILE, [Name of configuration file])
Later, the X server passes that into DoSubstitution() which expands the path:
DoSubstitution(template="/etc/X11/%X", ..., XConfigFile="xorg.conf")
This returns "/etc/X11/xorg.conf".
The Meson build, on the other hand, sets XCONFIGFILE to
join_paths(get_option('sysconfdir'), 'xorg.conf'). If sysconfdir is /etc, this
results in '/etc/xorg.conf', resulting in DoSubstitution returning
'/etc/X11/etc/xorg.conf'.
Fix this by just hard-coding XCONFIGFILE to 'xorg.conf'.
Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
Reviewed-by: Thierry Reding <treding@nvidia.com>
2018-05-04 10:48:17 -07:00
|
|
|
xorg_data.set_quoted('XCONFIGFILE', 'xorg.conf')
|
Add a Meson build system alongside autotools.
This is a work in progress that builds Xvfb, Xephyr, Xwayland, Xnest,
and Xdmx so far. The outline of Xquartz/Xwin support is in tree, but
hasn't been built yet. The unit tests are also not done.
The intent is to build this as a complete replacement for the
autotools system, then eventually replace autotools. meson is faster
to generate the build, faster to run the bulid, shorter to write the
build files in, and less error-prone than autotools.
v2: Fix indentation nits, move version declaration to project(), use
existing meson_options for version-config.h's vendor name/web.
Signed-off-by: Eric Anholt <eric@anholt.net>
Acked-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-03-11 10:24:04 -08:00
|
|
|
xorg_data.set_quoted('XCONFIGDIR', 'xorg.conf.d')
|
|
|
|
|
xorg_data.set_quoted('DEFAULT_XDG_DATA_HOME', '.local/share')
|
|
|
|
|
xorg_data.set_quoted('DEFAULT_XDG_DATA_HOME_LOGDIR', 'xorg')
|
|
|
|
|
xorg_data.set_quoted('DEFAULT_LOGDIR', log_dir)
|
|
|
|
|
xorg_data.set_quoted('DEFAULT_LOGPREFIX', 'Xorg.')
|
|
|
|
|
xorg_data.set_quoted('DEFAULT_MODULE_PATH', join_paths(get_option('prefix'), module_dir))
|
2018-05-04 15:09:22 -07:00
|
|
|
xorg_data.set_quoted('DEFAULT_LIBRARY_PATH', join_paths(get_option('prefix'), get_option('libdir')))
|
Add a Meson build system alongside autotools.
This is a work in progress that builds Xvfb, Xephyr, Xwayland, Xnest,
and Xdmx so far. The outline of Xquartz/Xwin support is in tree, but
hasn't been built yet. The unit tests are also not done.
The intent is to build this as a complete replacement for the
autotools system, then eventually replace autotools. meson is faster
to generate the build, faster to run the bulid, shorter to write the
build files in, and less error-prone than autotools.
v2: Fix indentation nits, move version declaration to project(), use
existing meson_options for version-config.h's vendor name/web.
Signed-off-by: Eric Anholt <eric@anholt.net>
Acked-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-03-11 10:24:04 -08:00
|
|
|
xorg_data.set_quoted('__XSERVERNAME__', 'Xorg')
|
2021-04-05 16:24:47 +03:00
|
|
|
xorg_data.set('XSERVER_LIBPCIACCESS', get_option('pciaccess') ? '1' : false)
|
Add a Meson build system alongside autotools.
This is a work in progress that builds Xvfb, Xephyr, Xwayland, Xnest,
and Xdmx so far. The outline of Xquartz/Xwin support is in tree, but
hasn't been built yet. The unit tests are also not done.
The intent is to build this as a complete replacement for the
autotools system, then eventually replace autotools. meson is faster
to generate the build, faster to run the bulid, shorter to write the
build files in, and less error-prone than autotools.
v2: Fix indentation nits, move version declaration to project(), use
existing meson_options for version-config.h's vendor name/web.
Signed-off-by: Eric Anholt <eric@anholt.net>
Acked-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-03-11 10:24:04 -08:00
|
|
|
xorg_data.set_quoted('PCI_TXT_IDS_PATH', '')
|
2021-04-05 16:24:47 +03:00
|
|
|
xorg_data.set('XSERVER_PLATFORM_BUS', build_udev_kms ? '1' : false)
|
|
|
|
|
xorg_data.set('WSCONS_SUPPORT',
|
|
|
|
|
host_machine.system() == 'netbsd' or host_machine.system() == 'openbsd' ? '1' : false)
|
|
|
|
|
xorg_data.set('HAVE_STROPTS_H', cc.has_header('stropts.h') ? '1' : false)
|
|
|
|
|
xorg_data.set('HAVE_SYS_KD_H', cc.has_header('sys/kd.h') ? '1' : false)
|
|
|
|
|
xorg_data.set('HAVE_SYS_VT_H', cc.has_header('sys/vt.h') ? '1' : false)
|
2022-08-29 14:39:57 -07:00
|
|
|
xorg_data.set('HAVE_MODESETTING_DRIVER', build_modesetting ? '1' : false)
|
Add a Meson build system alongside autotools.
This is a work in progress that builds Xvfb, Xephyr, Xwayland, Xnest,
and Xdmx so far. The outline of Xquartz/Xwin support is in tree, but
hasn't been built yet. The unit tests are also not done.
The intent is to build this as a complete replacement for the
autotools system, then eventually replace autotools. meson is faster
to generate the build, faster to run the bulid, shorter to write the
build files in, and less error-prone than autotools.
v2: Fix indentation nits, move version declaration to project(), use
existing meson_options for version-config.h's vendor name/web.
Signed-off-by: Eric Anholt <eric@anholt.net>
Acked-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-03-11 10:24:04 -08:00
|
|
|
|
2021-04-07 17:28:46 -06:00
|
|
|
if host_machine.system() == 'freebsd' or host_machine.system() == 'dragonfly'
|
2023-10-05 20:12:46 +03:00
|
|
|
if host_machine.cpu_family() == 'x86' or host_machine.cpu_family() == 'x86_64' or host_machine.cpu_family() == 'aarch64'
|
2021-04-05 16:24:47 +03:00
|
|
|
xorg_data.set('USE_DEV_IO', '1')
|
Add a Meson build system alongside autotools.
This is a work in progress that builds Xvfb, Xephyr, Xwayland, Xnest,
and Xdmx so far. The outline of Xquartz/Xwin support is in tree, but
hasn't been built yet. The unit tests are also not done.
The intent is to build this as a complete replacement for the
autotools system, then eventually replace autotools. meson is faster
to generate the build, faster to run the bulid, shorter to write the
build files in, and less error-prone than autotools.
v2: Fix indentation nits, move version declaration to project(), use
existing meson_options for version-config.h's vendor name/web.
Signed-off-by: Eric Anholt <eric@anholt.net>
Acked-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-03-11 10:24:04 -08:00
|
|
|
endif
|
2024-02-17 16:34:11 +01:00
|
|
|
elif host_machine.system() == 'netbsd' or host_machine.system() == 'openbsd'
|
Add a Meson build system alongside autotools.
This is a work in progress that builds Xvfb, Xephyr, Xwayland, Xnest,
and Xdmx so far. The outline of Xquartz/Xwin support is in tree, but
hasn't been built yet. The unit tests are also not done.
The intent is to build this as a complete replacement for the
autotools system, then eventually replace autotools. meson is faster
to generate the build, faster to run the bulid, shorter to write the
build files in, and less error-prone than autotools.
v2: Fix indentation nits, move version declaration to project(), use
existing meson_options for version-config.h's vendor name/web.
Signed-off-by: Eric Anholt <eric@anholt.net>
Acked-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-03-11 10:24:04 -08:00
|
|
|
if host_machine.cpu_family() == 'x86'
|
2021-04-05 16:24:47 +03:00
|
|
|
xorg_data.set('USE_I386_IOPL', '1')
|
Add a Meson build system alongside autotools.
This is a work in progress that builds Xvfb, Xephyr, Xwayland, Xnest,
and Xdmx so far. The outline of Xquartz/Xwin support is in tree, but
hasn't been built yet. The unit tests are also not done.
The intent is to build this as a complete replacement for the
autotools system, then eventually replace autotools. meson is faster
to generate the build, faster to run the bulid, shorter to write the
build files in, and less error-prone than autotools.
v2: Fix indentation nits, move version declaration to project(), use
existing meson_options for version-config.h's vendor name/web.
Signed-off-by: Eric Anholt <eric@anholt.net>
Acked-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-03-11 10:24:04 -08:00
|
|
|
endif
|
|
|
|
|
if host_machine.cpu_family() == 'x86_64'
|
2021-04-05 16:24:47 +03:00
|
|
|
xorg_data.set('USE_AMD64_IOPL', '1')
|
Add a Meson build system alongside autotools.
This is a work in progress that builds Xvfb, Xephyr, Xwayland, Xnest,
and Xdmx so far. The outline of Xquartz/Xwin support is in tree, but
hasn't been built yet. The unit tests are also not done.
The intent is to build this as a complete replacement for the
autotools system, then eventually replace autotools. meson is faster
to generate the build, faster to run the bulid, shorter to write the
build files in, and less error-prone than autotools.
v2: Fix indentation nits, move version declaration to project(), use
existing meson_options for version-config.h's vendor name/web.
Signed-off-by: Eric Anholt <eric@anholt.net>
Acked-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-03-11 10:24:04 -08:00
|
|
|
endif
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
configure_file(output : 'xorg-config.h',
|
|
|
|
|
input : 'xorg-config.h.meson.in',
|
|
|
|
|
configuration : xorg_data)
|
|
|
|
|
|
2017-05-07 20:53:04 +01:00
|
|
|
xwin_data = configuration_data()
|
|
|
|
|
xwin_data.set_quoted('DEFAULT_LOGDIR', log_dir)
|
2021-04-05 16:24:47 +03:00
|
|
|
xwin_data.set('HAS_WINSOCK', host_machine.system() == 'windows' ? '1' : false,
|
|
|
|
|
description: 'Use Windows sockets')
|
|
|
|
|
xwin_data.set('RELOCATE_PROJECTROOT', host_machine.system() == 'windows' ? '1' : false,
|
|
|
|
|
description: 'Make paths relative to the xserver installation location')
|
2024-03-15 16:01:50 +01:00
|
|
|
xwin_data.set10('ENABLE_DEBUG', enable_debugging)
|
2017-05-07 20:53:04 +01:00
|
|
|
|
|
|
|
|
configure_file(output : 'xwin-config.h',
|
|
|
|
|
input : 'xwin-config.h.meson.in',
|
|
|
|
|
configuration : xwin_data)
|
|
|
|
|
|
2019-08-27 15:54:42 -04:00
|
|
|
dtrace_hdr = []
|
|
|
|
|
dtrace_tmpl = files('Xserver.d')
|
|
|
|
|
if with_dtrace
|
|
|
|
|
dtrace_header = generator(dtrace,
|
|
|
|
|
output: '@BASENAME@-dtrace.h',
|
|
|
|
|
arguments: ['-h', '-s', '@INPUT@', '-o', '@OUTPUT@']
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
dtrace_hdr += dtrace_header.process(dtrace_tmpl)
|
|
|
|
|
endif
|
|
|
|
|
|
Add a Meson build system alongside autotools.
This is a work in progress that builds Xvfb, Xephyr, Xwayland, Xnest,
and Xdmx so far. The outline of Xquartz/Xwin support is in tree, but
hasn't been built yet. The unit tests are also not done.
The intent is to build this as a complete replacement for the
autotools system, then eventually replace autotools. meson is faster
to generate the build, faster to run the bulid, shorter to write the
build files in, and less error-prone than autotools.
v2: Fix indentation nits, move version declaration to project(), use
existing meson_options for version-config.h's vendor name/web.
Signed-off-by: Eric Anholt <eric@anholt.net>
Acked-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-03-11 10:24:04 -08:00
|
|
|
if build_xorg
|
|
|
|
|
install_data(
|
|
|
|
|
[
|
|
|
|
|
'Xprintf.h',
|
|
|
|
|
'callback.h',
|
|
|
|
|
'client.h',
|
|
|
|
|
'closure.h',
|
|
|
|
|
'colormap.h',
|
|
|
|
|
'colormapst.h',
|
|
|
|
|
'hotplug.h',
|
|
|
|
|
'cursor.h',
|
|
|
|
|
'cursorstr.h',
|
|
|
|
|
'dix.h',
|
|
|
|
|
'dixaccess.h',
|
|
|
|
|
'dixfont.h',
|
|
|
|
|
'dixfontstr.h',
|
|
|
|
|
'dixstruct.h',
|
|
|
|
|
'events.h',
|
|
|
|
|
'exevents.h',
|
|
|
|
|
'extension.h',
|
|
|
|
|
'extinit.h',
|
|
|
|
|
'extnsionst.h',
|
2025-07-25 14:35:33 +02:00
|
|
|
'fd_notify.h',
|
2020-09-15 11:43:16 +02:00
|
|
|
'fourcc.h',
|
Add a Meson build system alongside autotools.
This is a work in progress that builds Xvfb, Xephyr, Xwayland, Xnest,
and Xdmx so far. The outline of Xquartz/Xwin support is in tree, but
hasn't been built yet. The unit tests are also not done.
The intent is to build this as a complete replacement for the
autotools system, then eventually replace autotools. meson is faster
to generate the build, faster to run the bulid, shorter to write the
build files in, and less error-prone than autotools.
v2: Fix indentation nits, move version declaration to project(), use
existing meson_options for version-config.h's vendor name/web.
Signed-off-by: Eric Anholt <eric@anholt.net>
Acked-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-03-11 10:24:04 -08:00
|
|
|
'gc.h',
|
|
|
|
|
'gcstruct.h',
|
|
|
|
|
'globals.h',
|
2018-01-10 13:05:44 -05:00
|
|
|
'glxvndabi.h',
|
Add a Meson build system alongside autotools.
This is a work in progress that builds Xvfb, Xephyr, Xwayland, Xnest,
and Xdmx so far. The outline of Xquartz/Xwin support is in tree, but
hasn't been built yet. The unit tests are also not done.
The intent is to build this as a complete replacement for the
autotools system, then eventually replace autotools. meson is faster
to generate the build, faster to run the bulid, shorter to write the
build files in, and less error-prone than autotools.
v2: Fix indentation nits, move version declaration to project(), use
existing meson_options for version-config.h's vendor name/web.
Signed-off-by: Eric Anholt <eric@anholt.net>
Acked-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-03-11 10:24:04 -08:00
|
|
|
'input.h',
|
|
|
|
|
'inputstr.h',
|
|
|
|
|
'list.h',
|
|
|
|
|
'misc.h',
|
|
|
|
|
'miscstruct.h',
|
|
|
|
|
'opaque.h',
|
|
|
|
|
'nonsdk_extinit.h',
|
|
|
|
|
'optionstr.h',
|
|
|
|
|
'os.h',
|
|
|
|
|
'pixmap.h',
|
|
|
|
|
'pixmapstr.h',
|
|
|
|
|
'privates.h',
|
|
|
|
|
'property.h',
|
|
|
|
|
'ptrveloc.h',
|
|
|
|
|
'region.h',
|
|
|
|
|
'regionstr.h',
|
|
|
|
|
'resource.h',
|
|
|
|
|
'rgb.h',
|
|
|
|
|
'screenint.h',
|
|
|
|
|
'scrnintstr.h',
|
|
|
|
|
'servermd.h',
|
|
|
|
|
'validate.h',
|
|
|
|
|
'displaymode.h',
|
|
|
|
|
'window.h',
|
|
|
|
|
'windowstr.h',
|
|
|
|
|
'xkbsrv.h',
|
|
|
|
|
'xkbstr.h',
|
|
|
|
|
'xkbrules.h',
|
2018-03-29 13:07:55 +02:00
|
|
|
'Xprintf.h',
|
Add a Meson build system alongside autotools.
This is a work in progress that builds Xvfb, Xephyr, Xwayland, Xnest,
and Xdmx so far. The outline of Xquartz/Xwin support is in tree, but
hasn't been built yet. The unit tests are also not done.
The intent is to build this as a complete replacement for the
autotools system, then eventually replace autotools. meson is faster
to generate the build, faster to run the bulid, shorter to write the
build files in, and less error-prone than autotools.
v2: Fix indentation nits, move version declaration to project(), use
existing meson_options for version-config.h's vendor name/web.
Signed-off-by: Eric Anholt <eric@anholt.net>
Acked-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-03-11 10:24:04 -08:00
|
|
|
'xserver-properties.h',
|
|
|
|
|
],
|
|
|
|
|
install_dir: xorgsdkdir,
|
|
|
|
|
)
|
|
|
|
|
endif
|