mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-20 08:10:03 +01:00
build: Move epoll dependency check
DragonFly and OpenBSD rely on epoll-shim to provide eventfd.
Move the check for epoll dependency to the root meson.build script so
that we can use that for the <sys/evenfd.h> check as well.
This is preparation work for the following commits, no functional change
intended at this point.
Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
(cherry picked from commit 673b56e61c)
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1702>
This commit is contained in:
parent
16645b410d
commit
b701969331
2 changed files with 6 additions and 6 deletions
|
|
@ -332,6 +332,12 @@ endif
|
||||||
|
|
||||||
libdrm_dep = dependency('libdrm', version: libdrm_req, required: false)
|
libdrm_dep = dependency('libdrm', version: libdrm_req, required: false)
|
||||||
|
|
||||||
|
if host_machine.system() in ['freebsd', 'openbsd']
|
||||||
|
epoll_dep = dependency('epoll-shim')
|
||||||
|
else
|
||||||
|
epoll_dep = []
|
||||||
|
endif
|
||||||
|
|
||||||
have_eventfd = cc.has_header('sys/eventfd.h')
|
have_eventfd = cc.has_header('sys/eventfd.h')
|
||||||
if get_option('dri3') == 'auto'
|
if get_option('dri3') == 'auto'
|
||||||
build_dri3 = dri3proto_dep.found() and xshmfence_dep.found() and libdrm_dep.found() and have_eventfd
|
build_dri3 = dri3proto_dep.found() and xshmfence_dep.found() and libdrm_dep.found() and have_eventfd
|
||||||
|
|
|
||||||
|
|
@ -16,12 +16,6 @@ hdrs_present = [
|
||||||
'presentext.h',
|
'presentext.h',
|
||||||
]
|
]
|
||||||
|
|
||||||
if host_machine.system() in ['freebsd', 'openbsd']
|
|
||||||
epoll_dep = dependency('epoll-shim')
|
|
||||||
else
|
|
||||||
epoll_dep = []
|
|
||||||
endif
|
|
||||||
|
|
||||||
libxserver_present = static_library('libxserver_present',
|
libxserver_present = static_library('libxserver_present',
|
||||||
srcs_present,
|
srcs_present,
|
||||||
include_directories: inc,
|
include_directories: inc,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue