mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-24 05:30:06 +01:00
Add options for DRI{1,2,3}
shmfence is required for DRI3
libdrm is required for any DRI{1,2,3}
Consolidate calls to dependency('libdrm')
Set WITH_LIBDRM when building with libdrm
v2:
Initialize libxserver_dri3 to []
Manually flatten libxserver, since meson doesn't (currently)
Use version_compare rather than circumloctions with dependency()
Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
Reviewed-by: Eric Anholt <eric@anholt.net>
23 lines
362 B
Meson
23 lines
362 B
Meson
srcs_xorg_dri = [
|
|
'dri.c',
|
|
'xf86dri.c',
|
|
]
|
|
|
|
xorg_dri = static_library('xorg_dri',
|
|
srcs_xorg_dri,
|
|
include_directories: [inc, xorg_inc],
|
|
dependencies: [
|
|
common_dep,
|
|
libdrm_dep,
|
|
],
|
|
c_args: xorg_c_args,
|
|
)
|
|
|
|
install_data(
|
|
[
|
|
'dri.h',
|
|
'sarea.h',
|
|
'dristruct.h',
|
|
],
|
|
install_dir: xorgsdkdir,
|
|
)
|