diff options
author | Jon TURNEY <jon.turney@dronecode.org.uk> | 2017-05-09 12:23:48 +0100 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2017-05-10 14:43:13 -0400 |
commit | 820a4cbe9fef36bc97a7107ccc74a785180e227a (patch) | |
tree | 4ed02259cbac6a05c924ebf1196575927689a3cd /dri3 | |
parent | fdb11e2274f1d1069cdc9ff7b3655288c1b42cf4 (diff) |
meson: Make driprotos and libdrm optional
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>
Diffstat (limited to 'dri3')
-rw-r--r-- | dri3/meson.build | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/dri3/meson.build b/dri3/meson.build index abb13c63a..3d05020e6 100644 --- a/dri3/meson.build +++ b/dri3/meson.build @@ -4,9 +4,12 @@ srcs_dri3 = [ 'dri3_screen.c', ] -libxserver_dri3 = static_library('libxserver_dri3', - srcs_dri3, - include_directories: inc, - dependencies: common_dep, - c_args: '-DHAVE_XORG_CONFIG_H' -) +libxserver_dri3 = [] +if build_dri3 + libxserver_dri3 = static_library('libxserver_dri3', + srcs_dri3, + include_directories: inc, + dependencies: common_dep, + c_args: '-DHAVE_XORG_CONFIG_H' + ) +endif |