summaryrefslogtreecommitdiff
path: root/dri3
diff options
context:
space:
mode:
Diffstat (limited to 'dri3')
-rw-r--r--dri3/meson.build15
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