aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenny Levinsen <kl@kl.wtf>2021-04-25 20:16:19 +0200
committerKenny Levinsen <kl@kl.wtf>2021-04-25 20:20:52 +0200
commit355cc9c944a29d29736de84e782a2e91168f1a59 (patch)
tree0dedf2348b5acf93bbf14812a8b881655ecd7d03
parent36f54adc2c1b16943e5470af3ad85d2b4cdf480c (diff)
meson: Support building builtin without seatd
The builtin backend relies on the seatd backend implementation. When builtin was enabled without seatd, compilation would fail due to the implementation not being included. Include the implementation if either seatd or builtin is enabled.
-rw-r--r--meson.build5
1 files changed, 4 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index 7a70cb6..6299f4e 100644
--- a/meson.build
+++ b/meson.build
@@ -106,8 +106,11 @@ with_seatd = get_option('seatd') == 'enabled'
with_builtin = get_option('builtin') == 'enabled'
with_server = get_option('server') == 'enabled'
-if with_seatd
+if with_seatd or with_builtin
private_files += 'libseat/backend/seatd.c'
+endif
+
+if with_seatd
add_project_arguments('-DSEATD_ENABLED=1', language: 'c')
endif