aboutsummaryrefslogtreecommitdiff
path: root/src/meson.build
diff options
context:
space:
mode:
authoraxtlos <rose@pinkro.se>2025-06-19 00:47:45 +0200
committeraxtlos <rose@pinkro.se>2025-06-19 00:47:45 +0200
commitcd3b65bd1c2d84780f916bb61aea616ff65f6d7d (patch)
tree71eef403d9de916e68a3b9becc70c433e1f62a16 /src/meson.build
parent7654df2f9cb61572636183887d0832e448957689 (diff)
downloadautodarkmode-cd3b65bd1c2d84780f916bb61aea616ff65f6d7d.tar.gz
autodarkmode-cd3b65bd1c2d84780f916bb61aea616ff65f6d7d.tar.bz2
Make gclue dependency optional with build optionHEADmain
Diffstat (limited to 'src/meson.build')
-rw-r--r--src/meson.build6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/meson.build b/src/meson.build
index 6642e9d..e91cc83 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -9,9 +9,13 @@ autodarkmode_sources = [
autodarkmode_deps = [
dependency('glib-2.0'),
- dependency('libgeoclue-2.0'),
+ dependency('libgeoclue-2.0', required : get_option('gclue_support')),
]
+if get_option('gclue_support').enabled()
+ add_project_arguments('-DUSE_GCLUE', language: 'c')
+endif
+
executable('autodarkmode', autodarkmode_sources,
dependencies: autodarkmode_deps,
install: true,