aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/meson.build15
1 files changed, 9 insertions, 6 deletions
diff --git a/util/meson.build b/util/meson.build
index 06996a4e..6b423980 100644
--- a/util/meson.build
+++ b/util/meson.build
@@ -8,10 +8,13 @@ wlr_files += files(
'time.c',
)
-if uuid.found()
- wlr_deps += uuid
- add_project_arguments('-DHAS_LIBUUID=1', language: 'c')
-else
- add_project_arguments('-DHAS_LIBUUID=0', language: 'c')
+
+if conf_data.get('WLR_HAS_XDG_FOREIGN', 0) == 1
+ if uuid.found()
+ wlr_deps += uuid
+ add_project_arguments('-DHAS_LIBUUID=1', language: 'c')
+ else
+ add_project_arguments('-DHAS_LIBUUID=0', language: 'c')
+ endif
+ wlr_files += files('uuid.c')
endif
-wlr_files += files('uuid.c')