aboutsummaryrefslogtreecommitdiff
path: root/util/meson.build
diff options
context:
space:
mode:
authorIlia Bozhinov <ammen99@gmail.com>2021-01-05 20:18:38 +0100
committerSimon Ser <contact@emersion.fr>2021-01-05 20:32:56 +0100
commit37602e153b1a8c020dbefe2a499851ac0edd2df8 (patch)
treeb29bb548e48c04d2a32871073dae4111eb6a986e /util/meson.build
parent42d033e738d8ef213f13e1de849899d563f92a5b (diff)
types: add wlr_xdg_foreign_registry
Diffstat (limited to 'util/meson.build')
-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')