diff options
author | Lennart Poettering <lennart@poettering.net> | 2020-12-28 15:17:54 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2022-03-19 00:13:55 +0100 |
commit | 43cc7a3ef4f6a89946e7ffd6a3112a0c1740b1ef (patch) | |
tree | 719c7e2eeba27fbfbf45141fa1f65e2d41b4e9e7 /meson.build | |
parent | various: make parse_env_file error handling the same in various places (diff) | |
download | systemd-43cc7a3ef4f6a89946e7ffd6a3112a0c1740b1ef.tar.xz systemd-43cc7a3ef4f6a89946e7ffd6a3112a0c1740b1ef.zip |
sysupdate: add new component "sysupdate"
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/meson.build b/meson.build index 107192b211..05dcc79cfa 100644 --- a/meson.build +++ b/meson.build @@ -1644,6 +1644,18 @@ conf.set('DEFAULT_DNSSEC_MODE', 'DNSSEC_' + default_dnssec.underscorify().to_upper()) conf.set_quoted('DEFAULT_DNSSEC_MODE_STR', default_dnssec) +want_sysupdate = get_option('sysupdate') +if want_sysupdate != 'false' + have = (conf.get('HAVE_OPENSSL') == 1 and + conf.get('HAVE_LIBFDISK') == 1) + if want_sysupdate == 'true' and not have + error('sysupdate support was requested, but dependencies are not available') + endif +else + have = false +endif +conf.set10('ENABLE_SYSUPDATE', have) + want_importd = get_option('importd') if want_importd != 'false' have = (conf.get('HAVE_LIBCURL') == 1 and @@ -2006,6 +2018,7 @@ subdir('src/rpm') subdir('src/shutdown') subdir('src/sysext') subdir('src/systemctl') +subdir('src/sysupdate') subdir('src/timedate') subdir('src/timesync') subdir('src/tmpfiles') @@ -3074,6 +3087,22 @@ if conf.get('ENABLE_REPART') == 1 endif endif +if conf.get('ENABLE_SYSUPDATE') == 1 + exe = executable( + 'systemd-sysupdate', + systemd_sysupdate_sources, + include_directories : includes, + link_with : [libshared], + dependencies : [threads, + libblkid, + libfdisk, + libopenssl], + install_rpath : rootlibexecdir, + install : true, + install_dir : rootlibexecdir) + public_programs += exe +endif + if conf.get('ENABLE_VCONSOLE') == 1 executable( 'systemd-vconsole-setup', @@ -4117,6 +4146,7 @@ foreach tuple : [ ['rfkill'], ['sysext'], ['systemd-analyze', conf.get('ENABLE_ANALYZE') == 1], + ['sysupdate'], ['sysusers'], ['timedated'], ['timesyncd'], |