summaryrefslogtreecommitdiffstats
path: root/meson.build
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2024-10-30 14:21:09 +0100
committerLuca Boccassi <luca.boccassi@gmail.com>2024-10-31 22:08:08 +0100
commit243b63d8a6797cf9de37b309575d9ec0cb04c041 (patch)
tree4193f13ff3cbdce911e5bdaace7b46db39f8f549 /meson.build
parentman: warn that sysupdate's API is unstable (diff)
downloadsystemd-243b63d8a6797cf9de37b309575d9ec0cb04c041.tar.xz
systemd-243b63d8a6797cf9de37b309575d9ec0cb04c041.zip
meson: add separate option for sysupdated, disable in release builds
This commit introduces a build-time option to enable/disable sysupdated separately from sysupdate. 'auto' translated to enabled by default in developer builds.
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build15
1 files changed, 15 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index d8003bce10..bf78ff3bbb 100644
--- a/meson.build
+++ b/meson.build
@@ -1609,6 +1609,20 @@ have = get_option('sysupdate').require(
error_message : 'fdisk and openssl required').allowed()
conf.set10('ENABLE_SYSUPDATE', have)
+have2 = get_option('sysupdated')
+if have2 == 'enabled'
+ if have
+ have2 = true
+ else
+ error('sysupdated requires sysupdate to be enabled')
+ endif
+elif have2 == 'auto'
+ have2 = have and conf.get('BUILD_MODE_DEVELOPER') == 1
+else
+ have2 = false
+endif
+conf.set10('ENABLE_SYSUPDATED', have2)
+
conf.set10('ENABLE_STORAGETM', get_option('storagetm'))
have = get_option('importd').require(
@@ -3071,6 +3085,7 @@ foreach tuple : [
['sysext'],
['systemd-analyze', conf.get('ENABLE_ANALYZE') == 1],
['sysupdate'],
+ ['sysupdated'],
['sysusers'],
['storagetm'],
['timedated'],