2017-05-07 21:53:04 +02: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()
|
2018-05-02 21:09:52 +02:00
|
|
|
if version_split.length() == 4
|
|
|
|
subpatch = version_split[3].to_int()
|
|
|
|
else
|
|
|
|
subpatch = 0
|
|
|
|
endif
|
2017-05-07 21:53:04 +02:00
|
|
|
|
2021-04-07 20:55:01 +02: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 19:24:04 +01:00
|
|
|
|
2019-04-28 22:56:20 +02: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 19:24:04 +01:00
|
|
|
|
|
|
|
conf_data = configuration_data()
|
|
|
|
conf_data.set('_DIX_CONFIG_H_', '1')
|
|
|
|
|
2017-09-27 20:31:38 +02:00
|
|
|
conf_data.set('HAVE_TYPEOF', cc.compiles('''
|
|
|
|
int foo(int bar) { typeof(bar) baz = 1; return baz; }
|
|
|
|
''',
|
|
|
|
name: 'typeof()'))
|
2017-05-11 23:17:55 +02:00
|
|
|
|
2019-04-26 02:00:28 +02:00
|
|
|
conf_data.set('MONOTONIC_CLOCK', cc.has_function('clock_gettime') and
|
|
|
|
cc.compiles('''
|
2017-05-11 23:17:55 +02: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 19:24:04 +01:00
|
|
|
#include <time.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
#ifndef CLOCK_MONOTONIC
|
|
|
|
#error CLOCK_MONOTONIC not defined
|
|
|
|
#endif
|
|
|
|
''',
|
|
|
|
name: 'CLOCK_MONOTONIC'))
|
|
|
|
|
2019-08-27 21:54:42 +02:00
|
|
|
conf_data.set('XSERVER_DTRACE', with_dtrace)
|
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 19:24:04 +01: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
|
|
|
|
|
2017-09-22 14:54:01 +02: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 19:24:04 +01: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?
|
|
|
|
conf_data.set('HAS_APERTURE_DRV', host_machine.system() == 'openbsd')
|
|
|
|
|
2018-09-19 22:07:16 +02: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 15:26:38 +02:00
|
|
|
if host_machine.system() == 'windows' and get_option('input_thread') == 'auto'
|
|
|
|
enable_input_thread = false
|
|
|
|
endif
|
2018-09-19 22:07:16 +02:00
|
|
|
endif
|
|
|
|
conf_data.set('HAVE_INPUTTHREAD', enable_input_thread)
|
2018-08-01 22:49:54 +02:00
|
|
|
|
|
|
|
if cc.compiles('''
|
|
|
|
#define _GNU_SOURCE 1
|
|
|
|
#include <pthread.h>
|
|
|
|
void foo(int bar) { pthread_setname_np(pthread_self(), "example"); }
|
|
|
|
''',
|
|
|
|
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"); }
|
|
|
|
''',
|
|
|
|
name: 'pthread_setname_np(name)')
|
|
|
|
conf_data.set('HAVE_PTHREAD_SETNAME_NP_WITHOUT_TID', 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 19:24:04 +01:00
|
|
|
conf_data.set('HAVE_LIBBSD', libbsd_dep.found())
|
2018-08-08 01:23:19 +02:00
|
|
|
# Note: this symbol is used by libXtrans.
|
|
|
|
conf_data.set('HAVE_SYSTEMD_DAEMON', libsystemd_daemon_dep.found())
|
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 19:24:04 +01:00
|
|
|
conf_data.set('CONFIG_UDEV', build_udev)
|
2020-02-09 16:28:10 +01:00
|
|
|
conf_data.set('CONFIG_UDEV_KMS', build_udev_kms)
|
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 19:24:04 +01:00
|
|
|
conf_data.set('HAVE_DBUS', build_dbus)
|
|
|
|
conf_data.set('CONFIG_HAL', build_hal)
|
|
|
|
conf_data.set('SYSTEMD_LOGIND', build_systemd_logind)
|
|
|
|
conf_data.set('NEED_DBUS', build_systemd_logind or build_hal)
|
|
|
|
conf_data.set('CONFIG_WSCONS', host_machine.system() == 'openbsd')
|
|
|
|
|
2017-06-02 01:46:02 +02:00
|
|
|
conf_data.set('HAVE_XSHMFENCE', xshmfence_dep.found())
|
2019-08-01 13:34:13 +02:00
|
|
|
conf_data.set('WITH_LIBDRM', libdrm_required)
|
2018-02-28 02:19:44 +01:00
|
|
|
conf_data.set('GLAMOR_HAS_EGL_QUERY_DMABUF',
|
|
|
|
epoxy_dep.found() and epoxy_dep.version().version_compare('>= 1.4.4'))
|
2019-11-22 08:01:28 +01:00
|
|
|
conf_data.set('GLAMOR_HAS_EGL_QUERY_DRIVER',
|
|
|
|
epoxy_dep.found() and epoxy_dep.version().version_compare('>= 1.5.4'))
|
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 19:24:04 +01:00
|
|
|
conf_data.set('GLXEXT', build_glx)
|
|
|
|
conf_data.set('GLAMOR', build_glamor)
|
|
|
|
conf_data.set('GLAMOR_HAS_GBM', gbm_dep.found())
|
2017-09-20 16:22:13 +02:00
|
|
|
conf_data.set('GLAMOR_HAS_GBM_LINEAR',
|
xwayland: Add glamor egl_backend for EGLStreams
This adds initial support for displaying Xwayland applications through
the use of EGLStreams and nvidia's custom wayland protocol by adding
another egl_backend driver. This also adds some additional egl_backend
hooks that are required to make things work properly.
EGLStreams work a lot differently then the traditional way of handling
buffers with wayland. Unfortunately, there are also a LOT of various
pitfalls baked into it's design that need to be explained.
This has a very large and unfortunate implication: direct rendering is,
for the time being at least, impossible to do through EGLStreams. The
main reason being that the EGLStream spec mandates that we lose the
entire color buffer contents with each eglSwapBuffers(), which goes
against X's requirement of not losing data with pixmaps. no way to use
an allocated EGLSurface as the storage for glamor rendering like we do
with GBM, we have to rely on blitting each pixmap to it's respective
EGLSurface producer each frame. In order to pull this off, we add two
different additional egl_backend hooks that GBM opts out of
implementing:
- egl_backend.allow_commits for holding off displaying any EGLStream
backed pixmaps until the point where it's stream is completely
initialized and ready for use
- egl_backend.post_damage for blitting the content of the EGLStream
surface producer before Xwayland actually damages and commits the
wl_surface to the screen.
The other big pitfall here is that using nvidia's wayland-eglstreams
helper library is also not possible for the most part. All of it's API
for creating and destroying streams rely on being able to perform a
roundtrip in order to bring each stream to completion since the wayland
compositor must perform it's job of connecting a consumer to each
EGLstream. Because Xwayland has to potentially handle both responding to
the wayland compositor and it's own X clients, the situation of the
wayland compositor being one of our X clients must be considered. If we
perform a roundtrip with the Wayland compositor, it's possible that the
wayland compositor might currently be connected to us as an X client and
thus hang while both Xwayland and the wayland compositor await responses
from eachother. To avoid this, we work directly with the wayland
protocol and use wl_display_sync() events along with release() events to
set up and destroy EGLStreams asynchronously alongside handling X
clients.
Additionally, since setting up EGLStreams is not an atomic operation we
have to take into consideration the fact that an EGLStream can
potentially be created in response to a window resize, then immediately
deleted due to another pending window resize in the same X client's
pending reqests before Xwayland hits the part of it's event loop where
we read from the wayland compositor. To make this even more painful, we
also have to take into consideration that since EGLStreams are not
atomic that it's possible we could delete wayland resources for an
EGLStream before the compositor even finishes using them and thus run
into errors. So, we use quite a bit of tracking logic to keep EGLStream
objects alive until we know the compositor isn't using them (even if
this means the stream outlives the pixmap it backed).
While the default backend for glamor remains GBM, this patch exists for
users who have had to deal with the reprecussion of their GPU
manufacturers ignoring the advice of upstream and the standardization of
GBM across most major GPU manufacturers. It is not intended to be a
final solution to the GBM debate, but merely a baindaid so our users
don't have to suffer from the consequences of companies avoiding working
upstream. New drivers are strongly encouraged not to use this as a
backend, and use GBM like everyone else. We even spit this out as an
error from Xwayland when using the eglstream backend.
Signed-off-by: Lyude Paul <lyude@redhat.com>
Acked-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
2018-04-20 20:38:05 +02:00
|
|
|
build_glamor and gbm_dep.found() and gbm_dep.version().version_compare('>= 10.6'))
|
2018-02-28 02:19:43 +01:00
|
|
|
conf_data.set('GBM_BO_WITH_MODIFIERS',
|
xwayland: Add glamor egl_backend for EGLStreams
This adds initial support for displaying Xwayland applications through
the use of EGLStreams and nvidia's custom wayland protocol by adding
another egl_backend driver. This also adds some additional egl_backend
hooks that are required to make things work properly.
EGLStreams work a lot differently then the traditional way of handling
buffers with wayland. Unfortunately, there are also a LOT of various
pitfalls baked into it's design that need to be explained.
This has a very large and unfortunate implication: direct rendering is,
for the time being at least, impossible to do through EGLStreams. The
main reason being that the EGLStream spec mandates that we lose the
entire color buffer contents with each eglSwapBuffers(), which goes
against X's requirement of not losing data with pixmaps. no way to use
an allocated EGLSurface as the storage for glamor rendering like we do
with GBM, we have to rely on blitting each pixmap to it's respective
EGLSurface producer each frame. In order to pull this off, we add two
different additional egl_backend hooks that GBM opts out of
implementing:
- egl_backend.allow_commits for holding off displaying any EGLStream
backed pixmaps until the point where it's stream is completely
initialized and ready for use
- egl_backend.post_damage for blitting the content of the EGLStream
surface producer before Xwayland actually damages and commits the
wl_surface to the screen.
The other big pitfall here is that using nvidia's wayland-eglstreams
helper library is also not possible for the most part. All of it's API
for creating and destroying streams rely on being able to perform a
roundtrip in order to bring each stream to completion since the wayland
compositor must perform it's job of connecting a consumer to each
EGLstream. Because Xwayland has to potentially handle both responding to
the wayland compositor and it's own X clients, the situation of the
wayland compositor being one of our X clients must be considered. If we
perform a roundtrip with the Wayland compositor, it's possible that the
wayland compositor might currently be connected to us as an X client and
thus hang while both Xwayland and the wayland compositor await responses
from eachother. To avoid this, we work directly with the wayland
protocol and use wl_display_sync() events along with release() events to
set up and destroy EGLStreams asynchronously alongside handling X
clients.
Additionally, since setting up EGLStreams is not an atomic operation we
have to take into consideration the fact that an EGLStream can
potentially be created in response to a window resize, then immediately
deleted due to another pending window resize in the same X client's
pending reqests before Xwayland hits the part of it's event loop where
we read from the wayland compositor. To make this even more painful, we
also have to take into consideration that since EGLStreams are not
atomic that it's possible we could delete wayland resources for an
EGLStream before the compositor even finishes using them and thus run
into errors. So, we use quite a bit of tracking logic to keep EGLStream
objects alive until we know the compositor isn't using them (even if
this means the stream outlives the pixmap it backed).
While the default backend for glamor remains GBM, this patch exists for
users who have had to deal with the reprecussion of their GPU
manufacturers ignoring the advice of upstream and the standardization of
GBM across most major GPU manufacturers. It is not intended to be a
final solution to the GBM debate, but merely a baindaid so our users
don't have to suffer from the consequences of companies avoiding working
upstream. New drivers are strongly encouraged not to use this as a
backend, and use GBM like everyone else. We even spit this out as an
error from Xwayland when using the eglstream backend.
Signed-off-by: Lyude Paul <lyude@redhat.com>
Acked-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
2018-04-20 20:38:05 +02:00
|
|
|
build_glamor and gbm_dep.found() and gbm_dep.version().version_compare('>= 17.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 19:24:04 +01: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 18:58:15 +02:00
|
|
|
conf_data.set_quoted('SUID_WRAPPER_DIR', join_paths(get_option('prefix'), get_option('libexecdir')))
|
2018-03-26 20:57:07 +02: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 19:24:04 +01:00
|
|
|
|
2017-05-07 21:53:04 +02: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 19:24:04 +01:00
|
|
|
|
2018-03-28 14:04:32 +02:00
|
|
|
conf_data.set('HASXDMAUTH', has_xdm_auth)
|
2018-01-08 21:50:28 +01:00
|
|
|
conf_data.set('SECURE_RPC', get_option('secure-rpc'))
|
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 19:24:04 +01:00
|
|
|
|
|
|
|
conf_data.set('HAVE_DLFCN_H', cc.has_header('dlfcn.h'))
|
|
|
|
conf_data.set('HAVE_EXECINFO_H', cc.has_header('execinfo.h'))
|
|
|
|
conf_data.set('HAVE_FCNTL_H', cc.has_header('fcntl.h'))
|
|
|
|
conf_data.set('HAVE_FNMATCH_H', cc.has_header('fnmatch.h'))
|
|
|
|
conf_data.set('HAVE_LINUX_AGPGART_H', cc.has_header('linux/agpgart.h'))
|
|
|
|
conf_data.set('HAVE_STDLIB_H', cc.has_header('stdlib.h'))
|
|
|
|
conf_data.set('HAVE_STRING_H', cc.has_header('string.h'))
|
|
|
|
conf_data.set('HAVE_STRINGS_H', cc.has_header('strings.h'))
|
|
|
|
conf_data.set('HAVE_SYS_AGPGART_H', cc.has_header('sys/agpgart.h'))
|
|
|
|
conf_data.set('HAVE_SYS_AGPIO_H', cc.has_header('sys/agpio.h'))
|
|
|
|
conf_data.set('HAVE_SYS_UTSNAME_H', cc.has_header('sys/utsname.h'))
|
2017-04-27 20:45:25 +02:00
|
|
|
conf_data.set('HAVE_SYS_SYSMACROS_H', cc.has_header('sys/sysmacros.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 19:24:04 +01:00
|
|
|
conf_data.set('HAVE_UNISTD_H', cc.has_header('unistd.h'))
|
|
|
|
|
2017-05-10 01:39:44 +02:00
|
|
|
conf_data.set('HAVE_ARC4RANDOM_BUF', cc.has_function('arc4random_buf', dependencies: libbsd_dep))
|
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 19:24:04 +01:00
|
|
|
conf_data.set('HAVE_BACKTRACE', cc.has_function('backtrace'))
|
|
|
|
conf_data.set('HAVE_CBRT', cc.has_function('cbrt'))
|
2017-08-14 21:54:36 +02:00
|
|
|
conf_data.set('HAVE_EPOLL_CREATE1', cc.has_function('epoll_create1'))
|
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 19:24:04 +01:00
|
|
|
conf_data.set('HAVE_GETUID', cc.has_function('getuid'))
|
|
|
|
conf_data.set('HAVE_GETEUID', cc.has_function('geteuid'))
|
2019-11-21 17:23:18 +01:00
|
|
|
conf_data.set('HAVE_ISASTREAM', cc.has_function('isastream'))
|
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 19:24:04 +01:00
|
|
|
conf_data.set('HAVE_ISSETUGID', cc.has_function('issetugid'))
|
|
|
|
conf_data.set('HAVE_GETIFADDRS', cc.has_function('getifaddrs'))
|
|
|
|
conf_data.set('HAVE_GETPEEREID', cc.has_function('getpeereid'))
|
|
|
|
conf_data.set('HAVE_GETPEERUCRED', cc.has_function('getpeerucred'))
|
|
|
|
conf_data.set('HAVE_GETPROGNAME', cc.has_function('getprogname'))
|
|
|
|
conf_data.set('HAVE_GETZONEID', cc.has_function('getzoneid'))
|
2019-02-11 16:54:10 +01:00
|
|
|
conf_data.set('HAVE_MEMFD_CREATE', cc.has_function('memfd_create'))
|
2017-07-07 16:31:48 +02:00
|
|
|
conf_data.set('HAVE_MKOSTEMP', cc.has_function('mkostemp'))
|
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 19:24:04 +01:00
|
|
|
conf_data.set('HAVE_MMAP', cc.has_function('mmap'))
|
|
|
|
conf_data.set('HAVE_POLL', cc.has_function('poll'))
|
2017-10-12 22:48:36 +02:00
|
|
|
conf_data.set('HAVE_POLLSET_CREATE', cc.has_function('pollset_create'))
|
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 19:24:04 +01:00
|
|
|
conf_data.set('HAVE_POSIX_FALLOCATE', cc.has_function('posix_fallocate'))
|
2017-10-12 22:48:37 +02:00
|
|
|
conf_data.set('HAVE_PORT_CREATE', cc.has_function('port_create'))
|
2017-05-10 01:39:47 +02:00
|
|
|
conf_data.set('HAVE_REALLOCARRAY', cc.has_function('reallocarray', dependencies: libbsd_dep))
|
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 19:24:04 +01:00
|
|
|
conf_data.set('HAVE_SETEUID', cc.has_function('seteuid'))
|
|
|
|
conf_data.set('HAVE_SETITIMER', cc.has_function('setitimer'))
|
|
|
|
conf_data.set('HAVE_SHMCTL64', cc.has_function('shmctl64'))
|
2017-05-10 01:39:45 +02:00
|
|
|
conf_data.set('HAVE_SIGACTION', cc.has_function('sigaction'))
|
2016-07-28 15:46:15 +02:00
|
|
|
conf_data.set('HAVE_SIGPROCMASK', cc.has_function('sigprocmask'))
|
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 19:24:04 +01:00
|
|
|
conf_data.set('HAVE_STRCASECMP', cc.has_function('strcasecmp'))
|
2017-05-10 01:39:45 +02:00
|
|
|
conf_data.set('HAVE_STRCASESTR', cc.has_function('strcasestr'))
|
2017-05-10 01:39:47 +02:00
|
|
|
conf_data.set('HAVE_STRLCAT', cc.has_function('strlcat', dependencies: libbsd_dep))
|
|
|
|
conf_data.set('HAVE_STRLCPY', cc.has_function('strlcpy', dependencies: libbsd_dep))
|
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 19:24:04 +01:00
|
|
|
conf_data.set('HAVE_STRNCASECMP', cc.has_function('strncasecmp'))
|
2019-04-26 20:46:05 +02:00
|
|
|
conf_data.set('HAVE_STRNDUP', cc.has_function('strndup') and cc.has_header_symbol('string.h', 'strndup'))
|
2017-05-10 01:39:45 +02:00
|
|
|
conf_data.set('HAVE_TIMINGSAFE_MEMCMP', cc.has_function('timingsafe_memcmp'))
|
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 19:24:04 +01:00
|
|
|
conf_data.set('HAVE_VASPRINTF', cc.has_function('vasprintf'))
|
|
|
|
conf_data.set('HAVE_VSNPRINTF', cc.has_function('vsnprintf'))
|
|
|
|
conf_data.set('HAVE_WALKCONTEXT', cc.has_function('walkcontext'))
|
|
|
|
|
2017-05-10 01:39:45 +02:00
|
|
|
conf_data.set('BUSFAULT', conf_data.get('HAVE_SIGACTION'))
|
|
|
|
|
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 19:24:04 +01: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 22:49:50 +02: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 19:24:04 +01:00
|
|
|
|
2018-08-08 01:23:17 +02:00
|
|
|
if not conf_data.get('HAVE_GETPEEREID') and not conf_data.get('HAVE_GETPEERUCRED')
|
|
|
|
if not cc.has_header_symbol('sys/socket.h', 'SO_PEERCRED')
|
|
|
|
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 19:24:04 +01:00
|
|
|
conf_data.set('TCPCONN', '1')
|
2019-04-26 01:32:29 +02:00
|
|
|
conf_data.set('UNIXCONN', host_machine.system() != 'windows')
|
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 19:24:04 +01:00
|
|
|
conf_data.set('IPv6', build_ipv6)
|
|
|
|
|
|
|
|
conf_data.set('BIGREQS', '1')
|
|
|
|
conf_data.set('COMPOSITE', '1')
|
|
|
|
conf_data.set('DAMAGE', '1')
|
|
|
|
conf_data.set('DBE', '1')
|
2018-02-18 10:58:35 +01:00
|
|
|
conf_data.set('DGA', build_dga)
|
2018-02-13 22:33:49 +01:00
|
|
|
conf_data.set('DPMSExtension', build_dpms)
|
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 19:24:04 +01:00
|
|
|
conf_data.set('DRI2', build_dri2)
|
|
|
|
conf_data.set('DRI3', build_dri3)
|
2019-04-28 22:56:20 +02:00
|
|
|
if build_glx
|
|
|
|
conf_data.set_quoted('DRI_DRIVER_PATH', dri_dep.get_pkgconfig_variable('dridriverdir'))
|
|
|
|
endif
|
2018-03-01 12:58:16 +01:00
|
|
|
conf_data.set('HAS_SHM', build_mitshm)
|
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 19:24:04 +01:00
|
|
|
conf_data.set('MITSHM', build_mitshm)
|
2018-02-13 22:33:50 +01:00
|
|
|
conf_data.set('PANORAMIX', build_xinerama)
|
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 19:24:04 +01:00
|
|
|
conf_data.set('PRESENT', '1')
|
|
|
|
conf_data.set('RANDR', '1')
|
|
|
|
conf_data.set('RES', build_res)
|
|
|
|
conf_data.set('RENDER', '1')
|
|
|
|
conf_data.set('SCREENSAVER', build_screensaver)
|
|
|
|
conf_data.set('SHAPE', '1')
|
|
|
|
conf_data.set('XACE', build_xace)
|
|
|
|
conf_data.set('XCMISC', '1')
|
|
|
|
conf_data.set('XCSECURITY', build_xsecurity)
|
2018-03-28 14:04:32 +02:00
|
|
|
conf_data.set('XDMCP', xdmcp_dep.found())
|
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 19:24:04 +01:00
|
|
|
conf_data.set('XF86BIGFONT', build_xf86bigfont)
|
|
|
|
conf_data.set('XF86DRI', build_dri1)
|
2018-08-08 01:23:14 +02:00
|
|
|
conf_data.set('XF86VIDMODE', 1)
|
2017-05-08 12:40:16 +02:00
|
|
|
conf_data.set('XFIXES', '1')
|
2018-02-18 10:58:35 +01:00
|
|
|
conf_data.set('XFreeXDGA', build_dga)
|
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 19:24:04 +01:00
|
|
|
conf_data.set('XINERAMA', build_xinerama)
|
|
|
|
conf_data.set('XINPUT', '1')
|
|
|
|
conf_data.set('XRECORD', '1')
|
|
|
|
conf_data.set('XSELINUX', build_xselinux)
|
|
|
|
conf_data.set('XSYNC', '1')
|
|
|
|
conf_data.set('XTEST', '1')
|
|
|
|
conf_data.set('XV', build_xv)
|
|
|
|
conf_data.set('XvExtension', build_xv)
|
2018-02-18 10:58:33 +01:00
|
|
|
conf_data.set('XvMCExtension', build_xvmc)
|
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 19:24:04 +01:00
|
|
|
|
2019-10-26 18:12:26 +02:00
|
|
|
conf_data.set('HAVE_SHA1_IN_' + sha1.to_upper(), '1', description: 'Use @0@ SHA1 functions'.format(sha1))
|
2019-08-28 00:10:38 +02: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 19:24:04 +01:00
|
|
|
|
2018-03-01 12:55:11 +01:00
|
|
|
conf_data.set('HAVE_APM', build_apm or build_acpi)
|
2018-03-01 12:56:28 +01:00
|
|
|
conf_data.set('HAVE_ACPI', build_acpi)
|
2018-03-01 12:55:11 +01:00
|
|
|
|
2017-10-13 21:44:32 +02:00
|
|
|
enable_debugging = get_option('buildtype') == 'debug'
|
|
|
|
conf_data.set('DEBUG', enable_debugging)
|
|
|
|
|
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 19:24:04 +01: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 21:53:04 +02: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 19:24:04 +01:00
|
|
|
|
2019-04-19 15:01:48 +02:00
|
|
|
if build_rootless
|
|
|
|
conf_data.set('ROOTLESS', build_rootless)
|
|
|
|
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_pccons = false
|
|
|
|
supports_pcvt = false
|
|
|
|
supports_syscons = false
|
|
|
|
supports_wscons = false
|
|
|
|
csrg_based = false
|
|
|
|
|
2021-04-08 01:28:46 +02:00
|
|
|
if host_machine.system() == 'freebsd' or host_machine.system() == 'dragonfly'
|
2018-03-28 14:04:36 +02:00
|
|
|
supports_pccons = true
|
|
|
|
supports_pcvt = true
|
|
|
|
supports_syscons = true
|
|
|
|
csrg_based = true
|
|
|
|
endif
|
|
|
|
|
|
|
|
if host_machine.system() == 'kfreebsd'
|
|
|
|
supports_pccons = true
|
|
|
|
supports_pcvt = true
|
|
|
|
supports_syscons = true
|
|
|
|
endif
|
|
|
|
|
|
|
|
if host_machine.system() == 'netbsd'
|
|
|
|
supports_pccons = true
|
|
|
|
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 18:06:41 +02:00
|
|
|
if host_machine.system() == 'darwin'
|
|
|
|
csrg_based = true
|
|
|
|
endif
|
|
|
|
|
2018-03-28 14:04:36 +02:00
|
|
|
conf_data.set('SVR4', cc.compiles(defines_svr4))
|
|
|
|
conf_data.set_quoted('XKB_DFLT_RULES', get_option('xkb_default_rules'))
|
|
|
|
conf_data.set('XORGSERVER', build_xorg)
|
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 19:48:17 +02:00
|
|
|
conf_data.set_quoted('XCONFIGFILE', 'xorg.conf')
|
2018-03-28 14:04:36 +02:00
|
|
|
conf_data.set_quoted('__XSERVERNAME__', 'Xorg')
|
|
|
|
conf_data.set('WITH_VGAHW', build_vgahw)
|
|
|
|
conf_data.set('CSRG_BASED', csrg_based)
|
|
|
|
conf_data.set('PCCONS_SUPPORT', supports_pccons)
|
|
|
|
conf_data.set('PCVT_SUPPORT', supports_pcvt)
|
|
|
|
conf_data.set('SYSCONS_SUPPORT', supports_syscons)
|
|
|
|
conf_data.set('WSCONS_SUPPORT', supports_wscons)
|
|
|
|
conf_data.set('XSERVER_LIBPCIACCESS', get_option('pciaccess'))
|
2020-02-09 16:28:10 +01:00
|
|
|
conf_data.set('XSERVER_PLATFORM_BUS', build_udev_kms)
|
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 19:24:04 +01:00
|
|
|
configure_file(output : 'dix-config.h',
|
|
|
|
configuration : conf_data)
|
|
|
|
|
2018-03-28 14:04:35 +02:00
|
|
|
configure_file(output : 'xorg-server.h',
|
|
|
|
input : 'xorg-server.h.meson.in',
|
|
|
|
configuration : conf_data,
|
2021-03-05 23:50:51 +01:00
|
|
|
install: build_xorg,
|
2018-03-28 14:04:35 +02:00
|
|
|
install_dir: xorgsdkdir)
|
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 19:24:04 +01: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 21:53:04 +02: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 19:24:04 +01:00
|
|
|
configure_file(output : 'version-config.h',
|
|
|
|
configuration : version_data)
|
|
|
|
|
|
|
|
xkb_data = configuration_data()
|
|
|
|
|
2017-10-12 00:03:45 +02: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 19:24:04 +01: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 19:24:04 +01: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 19:48:17 +02: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 19:24:04 +01: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-05 00:09:22 +02: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 19:24:04 +01:00
|
|
|
xorg_data.set_quoted('__XSERVERNAME__', 'Xorg')
|
|
|
|
xorg_data.set('XSERVER_LIBPCIACCESS', get_option('pciaccess'))
|
|
|
|
xorg_data.set_quoted('PCI_TXT_IDS_PATH', '')
|
2020-02-09 16:28:10 +01:00
|
|
|
xorg_data.set('XSERVER_PLATFORM_BUS', build_udev_kms)
|
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 19:24:04 +01:00
|
|
|
xorg_data.set('WSCONS_SUPPORT', host_machine.system() == 'netbsd' or host_machine.system() == 'openbsd')
|
2019-09-24 01:28:42 +02:00
|
|
|
xorg_data.set('HAVE_STROPTS_H', cc.has_header('stropts.h'))
|
|
|
|
xorg_data.set('HAVE_SYS_KD_H', cc.has_header('sys/kd.h'))
|
|
|
|
xorg_data.set('HAVE_SYS_VT_H', cc.has_header('sys/vt.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 19:24:04 +01:00
|
|
|
|
2021-04-08 01:28:46 +02:00
|
|
|
if host_machine.system() == 'freebsd' or host_machine.system() == 'dragonfly'
|
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 19:24:04 +01:00
|
|
|
if host_machine.cpu_family() == 'x86' or host_machine.cpu_family() == 'x86_64'
|
|
|
|
xorg_data.set('USE_DEV_IO', true)
|
|
|
|
endif
|
|
|
|
elif host_machine.system() == 'netbsd'
|
|
|
|
if host_machine.cpu_family() == 'x86' or host_machine.cpu_family() == 'x86_64'
|
|
|
|
xorg_data.set('USE_I386_IOPL', true)
|
|
|
|
endif
|
|
|
|
elif host_machine.system() == 'openbsd'
|
|
|
|
if host_machine.cpu_family() == 'x86'
|
|
|
|
xorg_data.set('USE_I386_IOPL', true)
|
|
|
|
endif
|
|
|
|
if host_machine.cpu_family() == 'x86_64'
|
|
|
|
xorg_data.set('USE_AMD64_IOPL', true)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
configure_file(output : 'xorg-config.h',
|
|
|
|
input : 'xorg-config.h.meson.in',
|
|
|
|
configuration : xorg_data)
|
|
|
|
|
2017-05-07 21:53:04 +02:00
|
|
|
xwin_data = configuration_data()
|
|
|
|
xwin_data.set_quoted('DEFAULT_LOGDIR', log_dir)
|
|
|
|
xwin_data.set('HAS_WINSOCK', host_machine.system() == 'windows', description: 'Use Windows sockets')
|
|
|
|
xwin_data.set('HAS_DEVWINDOWS', host_machine.system() == 'cygwin', description: 'Has /dev/windows for signaling new win32 messages')
|
|
|
|
xwin_data.set('RELOCATE_PROJECTROOT', host_machine.system() == 'windows', description: 'Make paths relative to the xserver installation location')
|
|
|
|
# XXX: these three are all the same as DEBUG so we should just change to that
|
|
|
|
xwin_data.set10('CYGDEBUG', enable_debugging)
|
|
|
|
xwin_data.set10('CYGWINDOWING_DEBUG',enable_debugging)
|
|
|
|
xwin_data.set10('CYGMULTIWINDOW_DEBUG', enable_debugging)
|
|
|
|
|
|
|
|
configure_file(output : 'xwin-config.h',
|
|
|
|
input : 'xwin-config.h.meson.in',
|
|
|
|
configuration : xwin_data)
|
|
|
|
|
2018-04-20 20:38:04 +02:00
|
|
|
xwayland_data = configuration_data()
|
xwayland: Add glamor egl_backend for EGLStreams
This adds initial support for displaying Xwayland applications through
the use of EGLStreams and nvidia's custom wayland protocol by adding
another egl_backend driver. This also adds some additional egl_backend
hooks that are required to make things work properly.
EGLStreams work a lot differently then the traditional way of handling
buffers with wayland. Unfortunately, there are also a LOT of various
pitfalls baked into it's design that need to be explained.
This has a very large and unfortunate implication: direct rendering is,
for the time being at least, impossible to do through EGLStreams. The
main reason being that the EGLStream spec mandates that we lose the
entire color buffer contents with each eglSwapBuffers(), which goes
against X's requirement of not losing data with pixmaps. no way to use
an allocated EGLSurface as the storage for glamor rendering like we do
with GBM, we have to rely on blitting each pixmap to it's respective
EGLSurface producer each frame. In order to pull this off, we add two
different additional egl_backend hooks that GBM opts out of
implementing:
- egl_backend.allow_commits for holding off displaying any EGLStream
backed pixmaps until the point where it's stream is completely
initialized and ready for use
- egl_backend.post_damage for blitting the content of the EGLStream
surface producer before Xwayland actually damages and commits the
wl_surface to the screen.
The other big pitfall here is that using nvidia's wayland-eglstreams
helper library is also not possible for the most part. All of it's API
for creating and destroying streams rely on being able to perform a
roundtrip in order to bring each stream to completion since the wayland
compositor must perform it's job of connecting a consumer to each
EGLstream. Because Xwayland has to potentially handle both responding to
the wayland compositor and it's own X clients, the situation of the
wayland compositor being one of our X clients must be considered. If we
perform a roundtrip with the Wayland compositor, it's possible that the
wayland compositor might currently be connected to us as an X client and
thus hang while both Xwayland and the wayland compositor await responses
from eachother. To avoid this, we work directly with the wayland
protocol and use wl_display_sync() events along with release() events to
set up and destroy EGLStreams asynchronously alongside handling X
clients.
Additionally, since setting up EGLStreams is not an atomic operation we
have to take into consideration the fact that an EGLStream can
potentially be created in response to a window resize, then immediately
deleted due to another pending window resize in the same X client's
pending reqests before Xwayland hits the part of it's event loop where
we read from the wayland compositor. To make this even more painful, we
also have to take into consideration that since EGLStreams are not
atomic that it's possible we could delete wayland resources for an
EGLStream before the compositor even finishes using them and thus run
into errors. So, we use quite a bit of tracking logic to keep EGLStream
objects alive until we know the compositor isn't using them (even if
this means the stream outlives the pixmap it backed).
While the default backend for glamor remains GBM, this patch exists for
users who have had to deal with the reprecussion of their GPU
manufacturers ignoring the advice of upstream and the standardization of
GBM across most major GPU manufacturers. It is not intended to be a
final solution to the GBM debate, but merely a baindaid so our users
don't have to suffer from the consequences of companies avoiding working
upstream. New drivers are strongly encouraged not to use this as a
backend, and use GBM like everyone else. We even spit this out as an
error from Xwayland when using the eglstream backend.
Signed-off-by: Lyude Paul <lyude@redhat.com>
Acked-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
2018-04-20 20:38:05 +02:00
|
|
|
xwayland_data.set('XWL_HAS_GLAMOR', build_glamor and (gbm_dep.found() or build_eglstream))
|
|
|
|
xwayland_data.set('XWL_HAS_EGLSTREAM', build_eglstream)
|
2018-04-20 20:38:04 +02:00
|
|
|
|
|
|
|
configure_file(output : 'xwayland-config.h',
|
|
|
|
input : 'xwayland-config.h.meson.in',
|
|
|
|
configuration : xwayland_data)
|
|
|
|
|
2019-08-27 21:54:42 +02: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 19:24:04 +01:00
|
|
|
if build_xorg
|
|
|
|
install_data(
|
|
|
|
[
|
|
|
|
'XIstubs.h',
|
|
|
|
'Xprintf.h',
|
|
|
|
'callback.h',
|
|
|
|
'client.h',
|
|
|
|
'closestr.h',
|
|
|
|
'closure.h',
|
|
|
|
'colormap.h',
|
|
|
|
'colormapst.h',
|
|
|
|
'hotplug.h',
|
|
|
|
'cursor.h',
|
|
|
|
'cursorstr.h',
|
|
|
|
'dix.h',
|
|
|
|
'dixaccess.h',
|
|
|
|
'dixevents.h',
|
|
|
|
'dixfont.h',
|
|
|
|
'dixfontstr.h',
|
|
|
|
'dixgrabs.h',
|
|
|
|
'dixstruct.h',
|
|
|
|
'events.h',
|
|
|
|
'exevents.h',
|
|
|
|
'extension.h',
|
|
|
|
'extinit.h',
|
|
|
|
'extnsionst.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 19:24:04 +01:00
|
|
|
'gc.h',
|
|
|
|
'gcstruct.h',
|
|
|
|
'globals.h',
|
|
|
|
'glx_extinit.h',
|
2018-01-10 19:05:44 +01: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 19:24:04 +01: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',
|
|
|
|
'propertyst.h',
|
|
|
|
'ptrveloc.h',
|
|
|
|
'region.h',
|
|
|
|
'regionstr.h',
|
|
|
|
'registry.h',
|
|
|
|
'resource.h',
|
|
|
|
'rgb.h',
|
|
|
|
'screenint.h',
|
|
|
|
'scrnintstr.h',
|
|
|
|
'selection.h',
|
|
|
|
'servermd.h',
|
|
|
|
'validate.h',
|
|
|
|
'displaymode.h',
|
|
|
|
'window.h',
|
|
|
|
'windowstr.h',
|
|
|
|
'xkbfile.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 19:24:04 +01:00
|
|
|
'xserver_poll.h',
|
|
|
|
'xserver-properties.h',
|
|
|
|
],
|
|
|
|
install_dir: xorgsdkdir,
|
|
|
|
)
|
|
|
|
endif
|