mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 00:47:10 +09:00
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.
This commit is contained in:
committed by
Luca Boccassi
parent
89696521d2
commit
243b63d8a6
15
meson.build
15
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'],
|
||||
|
||||
Reference in New Issue
Block a user