#####################################################################
cc = meson.get_compiler('c')
+userspace_c_args = []
+userspace_c_ld_args = []
meson_build_sh = find_program('tools/meson-build.sh')
want_tests = get_option('tests')
if want_libfuzzer
fuzzing_engine = meson.get_compiler('cpp').find_library('Fuzzer', required : false)
if fuzzing_engine.found()
- add_project_arguments('-fsanitize-coverage=trace-pc-guard,trace-cmp', language : 'c')
+ userspace_c_args += '-fsanitize-coverage=trace-pc-guard,trace-cmp'
elif cc.has_argument('-fsanitize=fuzzer-no-link')
- add_project_arguments('-fsanitize=fuzzer-no-link', language : 'c')
+ userspace_c_args += '-fsanitize=fuzzer-no-link'
else
error('Looks like neither libFuzzer nor -fsanitize=fuzzer-no-link is supported')
endif
possible_common_cc_flags += '-ftrivial-auto-var-init=zero'
endif
-possible_cc_flags = possible_common_cc_flags + [
+possible_cc_flags = [
'-Werror=missing-declarations',
'-Werror=missing-prototypes',
'-fdiagnostics-show-option',
possible_cc_flags += '-fno-omit-frame-pointer'
endif
-add_project_arguments(cc.get_supported_arguments(basic_disabled_warnings), language : 'c')
-add_project_arguments(cc.get_supported_arguments(possible_cc_flags), language : 'c')
-add_project_link_arguments(cc.get_supported_link_arguments(possible_link_flags), language : 'c')
+add_project_arguments(
+ cc.get_supported_arguments(
+ basic_disabled_warnings,
+ possible_common_cc_flags
+ ),
+ language : 'c')
+
+userspace_c_args += cc.get_supported_arguments(possible_cc_flags)
+userspace_c_ld_args += cc.get_supported_link_arguments(possible_link_flags)
have = cc.has_argument('-Wzero-length-bounds')
conf.set10('HAVE_ZERO_LENGTH_BOUNDS', have)
command: vcs_tagger)
endif
-versiondep = declare_dependency(sources: version_h)
+versiondep = declare_dependency(
+ sources: version_h,
+ include_directories : include_directories('.'))
shared_lib_tag = get_option('shared-lib-tag')
if shared_lib_tag == ''
############################################################
if get_option('b_coverage')
- add_project_arguments('-include', 'src/basic/coverage.h', language : 'c')
+ userspace_c_args += ['-include', 'src/basic/coverage.h']
endif
############################################################
output : 'config.h',
configuration : conf)
-add_project_arguments('-include', 'config.h', language : 'c')
+userspace_c_args += ['-include', 'config.h']
jinja2_cmdline = [meson_render_jinja2, config_h, version_h]
+userspace = declare_dependency(
+ compile_args : userspace_c_args,
+ link_args : userspace_c_ld_args,
+)
+
############################################################
# binaries that have --help and are intended for use by humans,
libbasic_gcrypt,
libbasic_compress],
link_whole : [libsystemd_static],
- dependencies : [threads,
- librt],
+ dependencies : [librt,
+ threads,
+ userspace],
link_depends : libsystemd_sym,
install : true,
install_tag: 'libsystemd',
install_tag: 'libsystemd',
install_dir : rootlibdir,
pic : static_libsystemd_pic,
- dependencies : [threads,
- librt,
- libxz,
- libzstd,
- liblz4,
- libdl,
+ dependencies : [libblkid,
libcap,
- libblkid,
- libmount,
+ libdl,
libgcrypt,
+ liblz4,
+ libmount,
libopenssl,
+ librt,
+ libxz,
+ libzstd,
+ threads,
+ userspace,
versiondep],
c_args : libsystemd_c_args + (static_libsystemd_pic ? [] : ['-fno-PIC']))
'-Wl,--version-script=' + libudev_sym_path],
link_with : [libsystemd_static, libshared_static],
link_whole : libudev_basic,
- dependencies : [threads],
+ dependencies : [threads,
+ userspace],
link_depends : libudev_sym,
install : true,
install_tag: 'libudev',
install_tag: 'libudev',
install_dir : rootlibdir,
link_depends : libudev_sym,
- dependencies : [libshared_deps,
- libmount,
+ dependencies : [libmount,
+ libshared_deps,
+ userspace,
versiondep],
c_args : static_libudev_pic ? [] : ['-fno-PIC'],
pic : static_libudev_pic)
libshared],
dependencies : [libcryptsetup,
tpm2,
+ userspace,
versiondep],
link_depends : cryptsetup_token_sym,
install_rpath : rootpkglibdir,
libshared],
dependencies : [libcryptsetup,
libfido2,
+ userspace,
versiondep],
link_depends : cryptsetup_token_sym,
install_rpath : rootpkglibdir,
libshared],
dependencies : [libcryptsetup,
libp11kit,
+ userspace,
versiondep],
link_depends : cryptsetup_token_sym,
install_rpath : rootpkglibdir,
test_dlopen_c,
include_directories : includes,
link_with : [libbasic],
- dependencies : [libdl],
+ dependencies : [libdl,
+ userspace],
build_by_default : want_tests != 'false')
foreach tuple : [['myhostname', 'ENABLE_NSS_MYHOSTNAME'],
link_with : [libsystemd_static,
libshared_static,
libbasic],
- dependencies : [threads,
- librt],
+ dependencies : [librt,
+ threads,
+ userspace],
link_depends : sym,
install : true,
install_tag : 'nss',
link_with : [libcore,
libshared],
dependencies : [libseccomp,
+ userspace,
versiondep],
install_rpath : rootpkglibdir,
install : true,
link_with : [libcore,
libshared],
dependencies : [libseccomp,
+ userspace,
versiondep],
install_rpath : rootpkglibdir,
install : conf.get('ENABLE_ANALYZE') == 1)
include_directories : includes,
link_with : [libjournal_core,
libshared],
- dependencies : [threads,
- libxz,
- liblz4,
+ dependencies : [liblz4,
libselinux,
+ libxz,
libzstd,
+ threads,
+ userspace,
versiondep],
install_rpath : rootpkglibdir,
install : true,
link_with : [libjournal_core,
libshared],
dependencies : [threads,
+ userspace,
versiondep],
install_rpath : rootpkglibdir,
install : true)
journalctl_sources,
include_directories : includes,
link_with : [journalctl_link_with],
- dependencies : [threads,
- libdl,
- libxz,
+ dependencies : [libdl,
liblz4,
+ libxz,
libzstd,
- libdl,
+ threads,
+ userspace,
versiondep],
install_rpath : rootpkglibdir,
install : true,
'src/getty-generator/getty-generator.c',
include_directories : includes,
link_with : [libshared],
+ dependencies : userspace,
install_rpath : rootpkglibdir,
install : true,
install_dir : systemgeneratordir)
'src/debug-generator/debug-generator.c',
include_directories : includes,
link_with : [libshared],
+ dependencies : userspace,
install_rpath : rootpkglibdir,
install : true,
install_dir : systemgeneratordir)
'src/run-generator/run-generator.c',
include_directories : includes,
link_with : [libshared],
+ dependencies : userspace,
install_rpath : rootpkglibdir,
install : true,
install_dir : systemgeneratordir)
'src/fstab-generator/fstab-generator.c',
include_directories : includes,
link_with : [libshared],
+ dependencies : userspace,
install_rpath : rootpkglibdir,
install : true,
install_dir : systemgeneratordir)
'src/environment-d-generator/environment-d-generator.c',
include_directories : includes,
link_with : [libshared],
+ dependencies : userspace,
install_rpath : rootpkglibdir,
install : true,
install_dir : userenvgeneratordir)
'src/hibernate-resume/hibernate-resume-generator.c',
include_directories : includes,
link_with : [libshared],
+ dependencies : userspace,
install_rpath : rootpkglibdir,
install : true,
install_dir : systemgeneratordir)
'src/hibernate-resume/hibernate-resume.c',
include_directories : includes,
link_with : [libshared],
+ dependencies : userspace,
install_rpath : rootpkglibdir,
install : true,
install_dir : rootlibexecdir)
'src/gpt-auto-generator/gpt-auto-generator.c',
include_directories : includes,
link_with : [libshared],
- dependencies : libblkid,
+ dependencies : [libblkid,
+ userspace],
install_rpath : rootpkglibdir,
install : true,
install_dir : systemgeneratordir)
'src/dissect/dissect.c',
include_directories : includes,
link_with : [libshared],
- dependencies : [versiondep],
+ dependencies : [userspace,
+ versiondep],
install_rpath : rootpkglibdir,
install : true)
link_with : [libshared,
libbasic_gcrypt,
libsystemd_resolve_core],
- dependencies : systemd_resolved_dependencies,
+ dependencies : [systemd_resolved_dependencies,
+ userspace],
install_rpath : rootpkglibdir,
install : true,
install_dir : rootlibexecdir)
link_with : [libshared,
libbasic_gcrypt,
libsystemd_resolve_core],
- dependencies : [threads,
- lib_openssl_or_gcrypt,
- libm,
+ dependencies : [lib_openssl_or_gcrypt,
libidn,
+ libm,
+ threads,
+ userspace,
versiondep],
install_rpath : rootpkglibdir,
install : true)
include_directories : includes,
link_with : [liblogind_core,
libshared],
- dependencies : [threads,
- libacl,
+ dependencies : [libacl,
+ threads,
+ userspace,
versiondep],
install_rpath : rootpkglibdir,
install : true,
loginctl_sources,
include_directories : includes,
link_with : [libshared],
- dependencies : [threads,
- liblz4,
+ dependencies : [liblz4,
libxz,
libzstd,
+ threads,
+ userspace,
versiondep],
install_rpath : rootpkglibdir,
install : true,
'src/login/inhibit.c',
include_directories : includes,
link_with : [libshared],
- dependencies : [versiondep],
+ dependencies : [userspace,
+ versiondep],
install_rpath : rootpkglibdir,
install : true,
install_dir : rootbindir)
'-Wl,--version-script=' + version_script_arg],
link_with : [libsystemd_static,
libshared_static],
- dependencies : [threads,
+ dependencies : [libpam_misc,
libpam,
- libpam_misc,
+ threads,
+ userspace,
versiondep],
link_depends : pam_systemd_sym,
install : true,
user_runtime_dir_sources,
include_directories : includes,
link_with : [libshared],
+ dependencies : userspace,
install_rpath : rootpkglibdir,
install : true,
install_dir : rootlibexecdir)
'src/user-sessions/user-sessions.c',
include_directories : includes,
link_with : [libshared],
+ dependencies : userspace,
install_rpath : rootpkglibdir,
install : true,
install_dir : rootlibexecdir)
include_directories : includes,
link_with : [boot_link_with],
dependencies : [libblkid,
+ userspace,
versiondep],
install_rpath : rootpkglibdir,
install : true)
include_directories : includes,
link_with : [boot_link_with],
dependencies : [libblkid,
+ userspace,
versiondep],
install_rpath : rootpkglibdir,
install : true,
'src/boot/bless-boot-generator.c',
include_directories : includes,
link_with : [boot_link_with],
+ dependencies : userspace,
install_rpath : rootpkglibdir,
install : true,
install_dir : systemgeneratordir)
include_directories : includes,
link_with : [libshared],
dependencies : [libopenssl,
+ userspace,
versiondep],
install_rpath : rootpkglibdir,
install : true,
'src/boot/pcrphase.c',
include_directories : includes,
link_with : [libshared],
- dependencies : [libopenssl,
+ dependencies : [libblkid,
+ libopenssl,
tpm2,
- libblkid,
+ userspace,
versiondep],
install_rpath : rootpkglibdir,
install : true,
include_directories : includes,
link_with : [libshared],
dependencies : [libblkid,
+ userspace,
versiondep],
install_rpath : rootpkglibdir,
install : true,
include_directories : includes,
link_with : [libshared],
dependencies : [threads,
+ userspace,
versiondep],
install_rpath : rootpkglibdir,
install : true)
systemctl_sources,
include_directories : includes,
link_with : systemctl_link_with,
- dependencies : [threads,
- libcap,
+ dependencies : [libcap,
+ liblz4,
libselinux,
libxz,
- liblz4,
libzstd,
+ threads,
+ userspace,
versiondep],
install_rpath : rootpkglibdir,
install : true,
systemd_portabled_sources,
include_directories : includes,
link_with : [libshared],
- dependencies : [threads,
- libselinux,
+ dependencies : [libselinux,
+ threads,
+ userspace,
versiondep],
install_rpath : rootpkglibdir,
install : true,
include_directories : includes,
link_with : [libshared],
dependencies : [threads,
+ userspace,
versiondep],
install_rpath : rootpkglibdir,
install : true,
systemd_sysext_sources,
include_directories : includes,
link_with : [libshared],
- dependencies : [versiondep],
+ dependencies : [userspace,
+ versiondep],
install_rpath : rootpkglibdir,
install : true,
install_dir : rootbindir)
include_directories : includes,
link_with : [libshared],
dependencies : [threads,
+ userspace,
versiondep],
install_rpath : rootpkglibdir,
install : true,
include_directories : includes,
link_with : [libshared],
dependencies : [threads,
+ userspace,
versiondep],
install_rpath : rootpkglibdir,
install : true,
include_directories : includes,
link_with : [libshared],
dependencies : [threads,
+ userspace,
versiondep],
install_rpath : rootpkglibdir,
install : true)
include_directories : includes,
link_with : [libshared,
libshared_fdisk],
- dependencies : [threads,
- libblkid,
+ dependencies : [libblkid,
libcrypt,
- libopenssl,
libfdisk,
+ libopenssl,
libp11kit,
+ threads,
+ userspace,
versiondep],
install_rpath : rootpkglibdir,
install : true,
systemd_homed_sources,
include_directories : home_includes,
link_with : [libshared],
- dependencies : [threads,
- libcrypt,
- libopenssl,
+ dependencies : [libcrypt,
libm,
+ libopenssl,
+ threads,
+ userspace,
versiondep],
install_rpath : rootpkglibdir,
install : true,
homectl_sources,
include_directories : includes,
link_with : [libshared],
- dependencies : [threads,
- libcrypt,
+ dependencies : [libcrypt,
+ libdl,
libopenssl,
libp11kit,
- libdl,
+ threads,
+ userspace,
versiondep],
install_rpath : rootpkglibdir,
install : true)
'-Wl,--version-script=' + version_script_arg],
link_with : [libsystemd_static,
libshared_static],
- dependencies : [threads,
- libpam,
+ dependencies : [libcrypt,
libpam_misc,
- libcrypt,
+ libpam,
+ threads,
+ userspace,
versiondep],
link_depends : pam_systemd_home_sym,
install : true,
'src/backlight/backlight.c',
include_directories : includes,
link_with : [libshared],
+ dependencies : userspace,
install_rpath : rootpkglibdir,
install : true,
install_dir : rootlibexecdir)
'src/rfkill/rfkill.c',
include_directories : includes,
link_with : [libshared],
+ dependencies : userspace,
install_rpath : rootpkglibdir,
install : true,
install_dir : rootlibexecdir)
'src/system-update-generator/system-update-generator.c',
include_directories : includes,
link_with : [libshared],
+ dependencies : userspace,
install_rpath : rootpkglibdir,
install : true,
install_dir : systemgeneratordir)
include_directories : includes,
link_with : [libshared],
dependencies : [libcryptsetup,
+ libopenssl,
libp11kit,
- versiondep,
- libopenssl],
+ userspace,
+ versiondep],
install_rpath : rootpkglibdir,
install : true,
install_dir : rootlibexecdir)
'src/cryptsetup/cryptsetup-generator.c',
include_directories : includes,
link_with : [libshared],
+ dependencies : userspace,
install_rpath : rootpkglibdir,
install : true,
install_dir : systemgeneratordir)
include_directories : includes,
link_with : [libshared],
dependencies : [libcryptsetup,
+ userspace,
versiondep],
install_rpath : rootpkglibdir,
install : true,
'src/veritysetup/veritysetup-generator.c',
include_directories : includes,
link_with : [libshared],
- dependencies : [versiondep],
+ dependencies : [userspace,
+ versiondep],
install_rpath : rootpkglibdir,
install : true,
install_dir : systemgeneratordir)
libdl,
libopenssl,
libp11kit,
+ userspace,
versiondep],
install_rpath : rootpkglibdir,
install : true)
include_directories : includes,
link_with : [libshared],
dependencies : [libcryptsetup,
+ userspace,
versiondep],
install_rpath : rootpkglibdir,
install : true,
['src/integritysetup/integritysetup-generator.c', 'src/integritysetup/integrity-util.c'],
include_directories : includes,
link_with : [libshared],
+ dependencies : userspace,
install_rpath : rootpkglibdir,
install : true,
install_dir : systemgeneratordir)
'src/sysv-generator/sysv-generator.c',
include_directories : includes,
link_with : [libshared],
+ dependencies : userspace,
install_rpath : rootpkglibdir,
install : true,
install_dir : systemgeneratordir)
'src/rc-local-generator/rc-local-generator.c',
include_directories : includes,
link_with : [libshared],
+ dependencies : userspace,
install_rpath : rootpkglibdir,
install : true,
install_dir : systemgeneratordir)
systemd_xdg_autostart_generator_sources,
include_directories : includes,
link_with : [libshared],
+ dependencies : userspace,
install_rpath : rootpkglibdir,
install : true,
install_dir : usergeneratordir)
'src/xdg-autostart-generator/xdg-autostart-condition.c',
include_directories : includes,
link_with : [libshared],
+ dependencies : userspace,
install_rpath : rootpkglibdir,
install : true,
install_dir : rootlibexecdir)
'src/hostname/hostnamed.c',
include_directories : includes,
link_with : [libshared],
+ dependencies : userspace,
install_rpath : rootpkglibdir,
install : true,
install_dir : rootlibexecdir)
'src/hostname/hostnamectl.c',
include_directories : includes,
link_with : [libshared],
- dependencies : [versiondep],
+ dependencies : [userspace,
+ versiondep],
install_rpath : rootpkglibdir,
install : true)
endif
# need to specify where the headers are
deps = [libdl,
libxkbcommon.partial_dependency(compile_args: true),
+ userspace,
versiondep]
else
- deps = [versiondep]
+ deps = [userspace,
+ versiondep]
endif
dbus_programs += executable(
localectl_sources,
include_directories : includes,
link_with : [libshared],
- dependencies : [versiondep],
+ dependencies : [userspace,
+ versiondep],
install_rpath : rootpkglibdir,
install : true)
endif
'src/timedate/timedated.c',
include_directories : includes,
link_with : [libshared],
+ dependencies : userspace,
install_rpath : rootpkglibdir,
install : true,
install_dir : rootlibexecdir)
install_rpath : rootpkglibdir,
link_with : [libshared],
dependencies : [libm,
+ userspace,
versiondep],
install : true)
endif
systemd_timesyncd_sources,
include_directories : includes,
link_with : [libtimesyncd_core],
- dependencies : [threads,
- libm,
+ dependencies : [libm,
+ threads,
+ userspace,
versiondep],
install_rpath : rootpkglibdir,
install : true,
'src/timesync/wait-sync.c',
include_directories : includes,
link_with : [libtimesyncd_core],
+ dependencies : userspace,
install_rpath : rootpkglibdir,
install : true,
install_dir : rootlibexecdir)
include_directories : includes,
link_with : [libmachine_core,
libshared],
+ dependencies : userspace,
install_rpath : rootpkglibdir,
install : true,
install_dir : rootlibexecdir)
'src/machine/machinectl.c',
include_directories : includes,
link_with : [libshared],
- dependencies : [threads,
+ dependencies : [liblz4,
libxz,
- liblz4,
libzstd,
+ threads,
+ userspace,
versiondep],
install_rpath : rootpkglibdir,
install : true,
include_directories : includes,
link_with : [libshared],
dependencies : [threads,
+ userspace,
versiondep],
install_rpath : rootpkglibdir,
install : true,
include_directories : includes,
link_with : [libshared,
lib_import_common],
- dependencies : [libcurl,
- lib_openssl_or_gcrypt,
- libz,
+ dependencies : [lib_openssl_or_gcrypt,
libbzip2,
+ libcurl,
libxz,
+ libz,
+ userspace,
versiondep],
install_rpath : rootpkglibdir,
install : true,
include_directories : includes,
link_with : [libshared,
lib_import_common],
- dependencies : [libcurl,
- libz,
- libbzip2,
+ dependencies : [libbzip2,
+ libcurl,
libxz,
+ libz,
+ userspace,
versiondep],
install_rpath : rootpkglibdir,
install : true,
include_directories : includes,
link_with : [libshared,
lib_import_common],
- dependencies : [versiondep],
+ dependencies : [userspace,
+ versiondep],
install_rpath : rootpkglibdir,
install : true,
install_dir : rootlibexecdir)
include_directories : includes,
link_with : [libshared,
lib_import_common],
- dependencies : [libcurl,
- libz,
- libbzip2,
+ dependencies : [libbzip2,
+ libcurl,
libxz,
+ libz,
+ userspace,
versiondep],
install_rpath : rootpkglibdir,
install : true,
systemd_journal_upload_sources,
include_directories : includes,
link_with : [libshared],
- dependencies : [threads,
- libcurl,
+ dependencies : [libcurl,
libgnutls,
- libxz,
liblz4,
+ libxz,
libzstd,
+ threads,
+ userspace,
versiondep],
install_rpath : rootpkglibdir,
install : true,
include_directories : journal_includes,
link_with : [libshared,
libsystemd_journal_remote],
- dependencies : [threads,
+ dependencies : [libgnutls,
+ liblz4,
libmicrohttpd,
- libgnutls,
libxz,
- liblz4,
libzstd,
+ threads,
+ userspace,
versiondep],
install_rpath : rootpkglibdir,
install : true,
systemd_journal_gatewayd_sources,
include_directories : journal_includes,
link_with : [libshared],
- dependencies : [threads,
+ dependencies : [libgnutls,
+ liblz4,
libmicrohttpd,
- libgnutls,
libxz,
- liblz4,
libzstd,
+ threads,
+ userspace,
versiondep],
install_rpath : rootpkglibdir,
install : true,
include_directories : includes,
link_with : [libshared,
libbasic_compress],
- dependencies : [threads,
- libacl,
- libxz,
+ dependencies : [libacl,
liblz4,
+ libxz,
libzstd,
+ threads,
+ userspace,
versiondep],
install_rpath : rootpkglibdir,
install : true,
include_directories : includes,
link_with : [libshared,
libbasic_compress],
- dependencies : [threads,
+ dependencies : [liblz4,
libxz,
- liblz4,
libzstd,
+ threads,
+ userspace,
versiondep],
install_rpath : rootpkglibdir,
install : true)
systemd_pstore_sources,
include_directories : includes,
link_with : [libshared],
- dependencies : [threads,
- libacl,
- libxz,
+ dependencies : [libacl,
liblz4,
+ libxz,
libzstd,
+ threads,
+ userspace,
versiondep],
install_rpath : rootpkglibdir,
install : true,
include_directories : includes,
link_with : [libshared],
dependencies : [libatomic,
+ userspace,
versiondep],
install_rpath : rootpkglibdir,
install : true,
oomctl_sources,
include_directories : includes,
link_with : [libshared],
- dependencies : [versiondep],
+ dependencies : [userspace,
+ versiondep],
install_rpath : rootpkglibdir,
install : true)
endif
'src/binfmt/binfmt.c',
include_directories : includes,
link_with : [libshared],
- dependencies : [versiondep],
+ dependencies : [userspace,
+ versiondep],
install_rpath : rootpkglibdir,
install : true,
install_dir : rootlibexecdir)
include_directories : includes,
link_with : [libshared,
libshared_fdisk],
- dependencies : [threads,
- libblkid,
+ dependencies : [libblkid,
libfdisk,
libopenssl,
+ threads,
+ userspace,
versiondep],
install_rpath : rootpkglibdir,
install : true,
'src/vconsole/vconsole-setup.c',
include_directories : includes,
link_with : [libshared],
+ dependencies : userspace,
install_rpath : rootpkglibdir,
install : true,
install_dir : rootlibexecdir)
'src/random-seed/random-seed.c',
include_directories : includes,
link_with : [libshared],
- dependencies : [versiondep],
+ dependencies : [userspace,
+ versiondep],
install_rpath : rootpkglibdir,
install : true,
install_dir : rootlibexecdir)
include_directories : includes,
link_with : [libshared],
dependencies : [libcrypt,
+ userspace,
versiondep],
install_rpath : rootpkglibdir,
install : true,
'src/remount-fs/remount-fs.c',
include_directories : includes,
link_with : [libshared],
- dependencies : [versiondep],
+ dependencies : [userspace,
+ versiondep],
install_rpath : rootpkglibdir,
install : true,
install_dir : rootlibexecdir)
'src/machine-id-setup/machine-id-setup-main.c',
include_directories : includes,
link_with : [libshared],
- dependencies : [versiondep],
+ dependencies : [userspace,
+ versiondep],
install_rpath : rootpkglibdir,
install : true,
install_dir : rootbindir)
'src/fsck/fsck.c',
include_directories : includes,
link_with : [libshared],
- dependencies : [versiondep],
+ dependencies : [userspace,
+ versiondep],
install_rpath : rootpkglibdir,
install : true,
install_dir : rootlibexecdir)
'src/partition/growfs.c',
include_directories : includes,
link_with : [libshared],
- dependencies : [versiondep],
+ dependencies : [userspace,
+ versiondep],
install_rpath : rootpkglibdir,
install : true,
install_dir : rootlibexecdir)
'src/partition/makefs.c',
include_directories : includes,
link_with : [libshared],
- dependencies : [versiondep],
+ dependencies : [userspace,
+ versiondep],
install_rpath : rootpkglibdir,
install : true,
install_dir : rootlibexecdir)
'src/sleep/sleep.c',
include_directories : includes,
link_with : [libshared],
- dependencies : [versiondep],
+ dependencies : [userspace,
+ versiondep],
install_rpath : rootpkglibdir,
install : true,
install_dir : rootlibexecdir)
'src/sysctl/sysctl.c',
include_directories : includes,
link_with : [libshared],
- dependencies : [versiondep],
+ dependencies : [userspace,
+ versiondep],
install_rpath : rootpkglibdir,
install : true,
install_dir : rootlibexecdir)
'src/ac-power/ac-power.c',
include_directories : includes,
link_with : [libshared],
- dependencies : [versiondep],
+ dependencies : [userspace,
+ versiondep],
install_rpath : rootpkglibdir,
install : true)
'src/detect-virt/detect-virt.c',
include_directories : includes,
link_with : [libshared],
- dependencies : [versiondep],
+ dependencies : [userspace,
+ versiondep],
install_rpath : rootpkglibdir,
install : true)
'src/delta/delta.c',
include_directories : includes,
link_with : [libshared],
- dependencies : [versiondep],
+ dependencies : [userspace,
+ versiondep],
install_rpath : rootpkglibdir,
install : true)
'src/escape/escape.c',
include_directories : includes,
link_with : [libshared],
- dependencies : [versiondep],
+ dependencies : [userspace,
+ versiondep],
install_rpath : rootpkglibdir,
install : true,
install_dir : rootbindir)
'src/notify/notify.c',
include_directories : includes,
link_with : [libshared],
- dependencies : [versiondep],
+ dependencies : [userspace,
+ versiondep],
install_rpath : rootpkglibdir,
install : true,
install_dir : rootbindir)
link_with : [libshared],
dependencies : [threads,
libopenssl,
+ userspace,
versiondep],
install_rpath : rootpkglibdir,
install : true,
'src/volatile-root/volatile-root.c',
include_directories : includes,
link_with : [libshared],
+ dependencies : userspace,
install_rpath : rootpkglibdir,
install : conf.get('ENABLE_INITRD') == 1,
install_dir : rootlibexecdir)
'src/cgroups-agent/cgroups-agent.c',
include_directories : includes,
link_with : [libshared],
+ dependencies : userspace,
install_rpath : rootpkglibdir,
install : true,
install_dir : rootlibexecdir)
'src/id128/id128.c',
include_directories : includes,
link_with : [libshared],
- dependencies : [versiondep],
+ dependencies : [userspace,
+ versiondep],
install_rpath : rootpkglibdir,
install : true)
public_programs += systemd_id128
'src/path/path.c',
include_directories : includes,
link_with : [libshared],
- dependencies : [versiondep],
+ dependencies : [userspace,
+ versiondep],
install_rpath : rootpkglibdir,
install : true)
'src/ask-password/ask-password.c',
include_directories : includes,
link_with : [libshared],
- dependencies : [versiondep],
+ dependencies : [userspace,
+ versiondep],
install_rpath : rootpkglibdir,
install : true,
install_dir : rootbindir)
'src/reply-password/reply-password.c',
include_directories : includes,
link_with : [libshared],
+ dependencies : userspace,
install_rpath : rootpkglibdir,
install : true,
install_dir : rootlibexecdir)
'src/tty-ask-password-agent/tty-ask-password-agent.c',
include_directories : includes,
link_with : [libshared],
- dependencies : [versiondep],
+ dependencies : [userspace,
+ versiondep],
install_rpath : rootpkglibdir,
install : true,
install_dir : rootbindir)
'src/cgls/cgls.c',
include_directories : includes,
link_with : [libshared],
- dependencies : [versiondep],
+ dependencies : [userspace,
+ versiondep],
install_rpath : rootpkglibdir,
install : true)
'src/cgtop/cgtop.c',
include_directories : includes,
link_with : [libshared],
- dependencies : [versiondep],
+ dependencies : [userspace,
+ versiondep],
install_rpath : rootpkglibdir,
install : true)
'src/initctl/initctl.c',
include_directories : includes,
link_with : [libshared],
+ dependencies : userspace,
install_rpath : rootpkglibdir,
install : (conf.get('HAVE_SYSV_COMPAT') == 1),
install_dir : rootlibexecdir)
include_directories : includes,
link_with : [libshared],
dependencies: [libmount,
+ userspace,
versiondep],
install_rpath : rootpkglibdir,
install : true)
'src/run/run.c',
include_directories : includes,
link_with : [libshared],
- dependencies : [versiondep],
+ dependencies : [userspace,
+ versiondep],
install_rpath : rootpkglibdir,
install : true)
'src/stdio-bridge/stdio-bridge.c',
include_directories : includes,
link_with : [libshared],
- dependencies : [versiondep,
+ dependencies : [userspace,
versiondep],
install_rpath : rootpkglibdir,
install : true)
busctl_sources,
include_directories : includes,
link_with : [libshared],
- dependencies : [versiondep],
+ dependencies : [userspace,
+ versiondep],
install_rpath : rootpkglibdir,
install : true)
'src/sysusers/sysusers.c',
include_directories : includes,
link_with : [libshared],
- dependencies : [versiondep],
+ dependencies : [userspace,
+ versiondep],
install_rpath : rootpkglibdir,
install : true,
install_dir : rootbindir)
libbasic,
libbasic_gcrypt,
libsystemd_static],
- dependencies : [versiondep],
+ dependencies : [userspace,
+ versiondep],
install : true,
install_dir : rootbindir)
public_programs += exe
include_directories : includes,
link_with : [libshared],
dependencies : [libacl,
+ userspace,
versiondep],
install_rpath : rootpkglibdir,
install : true,
libbasic_gcrypt,
libsystemd_static],
dependencies : [libacl,
+ userspace,
versiondep],
install : true,
install_dir : rootbindir)
'src/hwdb/hwdb.c',
include_directories : includes,
link_with : udev_link_with,
- dependencies : [versiondep],
+ dependencies : [userspace,
+ versiondep],
install_rpath : udev_rpath,
install : true,
install_dir : rootbindir)
'src/quotacheck/quotacheck.c',
include_directories : includes,
link_with : [libshared],
+ dependencies : userspace,
install_rpath : rootpkglibdir,
install : true,
install_dir : rootlibexecdir)
include_directories : includes,
link_with : [libshared],
dependencies : [threads,
+ userspace,
versiondep],
install_rpath : rootpkglibdir,
install : true,
udevadm_sources,
include_directories : includes,
link_with : [libudevd_core],
- dependencies : [threads,
- libkmod,
- libidn,
- libacl,
+ dependencies : [libacl,
libblkid,
+ libidn,
+ libkmod,
+ threads,
+ userspace,
versiondep],
install_rpath : udev_rpath,
install : true,
include_directories : includes,
link_with : [libshared,
libshared_fdisk],
- dependencies : [threads,
- libblkid,
+ dependencies : [libblkid,
libfdisk,
libopenssl,
+ threads,
+ userspace,
versiondep],
install_rpath : rootpkglibdir,
install : true,
libbasic_gcrypt,
libsystemd_static,
libshared_fdisk],
- dependencies : [threads,
- libblkid,
+ dependencies : [libblkid,
libfdisk,
libopenssl,
+ threads,
+ userspace,
versiondep],
install_rpath : rootpkglibdir,
install : true,
include_directories : includes,
link_with : [libshared],
dependencies : [libmount,
+ userspace,
versiondep],
install_rpath : rootpkglibdir,
install : true,
libbasic,
libsystemd_static],
dependencies : [libmount,
+ userspace,
versiondep],
install_rpath : rootpkglibdir,
install : true,
'src/update-done/update-done.c',
include_directories : includes,
link_with : [libshared],
- dependencies : [versiondep],
+ dependencies : [userspace,
+ versiondep],
install_rpath : rootpkglibdir,
install : true,
install_dir : rootlibexecdir)
include_directories : includes,
link_with : [libshared],
dependencies : [libaudit,
+ userspace,
versiondep],
install_rpath : rootpkglibdir,
install : (conf.get('ENABLE_UTMP') == 1),
include_directories : includes,
link_with : [libshared],
dependencies : [libkmod,
+ userspace,
versiondep],
install_rpath : rootpkglibdir,
install : true,
libshared],
dependencies : [libblkid,
libseccomp,
+ userspace,
versiondep],
install_rpath : rootpkglibdir,
install : true)
libsystemd_network,
networkd_link_with],
dependencies : [threads,
+ userspace,
versiondep],
install_rpath : rootpkglibdir,
install : true,
systemd_networkd_wait_online_sources,
include_directories : includes,
link_with : [networkd_link_with],
- dependencies : [versiondep],
+ dependencies : [userspace,
+ versiondep],
install_rpath : rootpkglibdir,
install : true,
install_dir : rootlibexecdir)
include_directories : libsystemd_network_includes,
link_with : [libsystemd_network,
networkd_link_with],
- dependencies : [versiondep],
+ dependencies : [userspace,
+ versiondep],
install_rpath : rootpkglibdir,
install : true,
install_dir : rootbindir)
network_generator_sources,
include_directories : includes,
link_with : [networkd_link_with],
- dependencies : [versiondep],
+ dependencies : [userspace,
+ versiondep],
install_rpath : rootpkglibdir,
install : true,
install_dir : rootlibexecdir)
'src/sulogin-shell/sulogin-shell.c',
include_directories : includes,
link_with : [libshared],
- dependencies : [versiondep],
+ dependencies : [userspace,
+ versiondep],
install_rpath : rootpkglibdir,
install : true,
install_dir : rootlibexecdir)
condition = test.get('condition', '')
type = test.get('type', '')
base = test.get('base', {})
+ deps = [
+ base.get('dependencies', []),
+ test.get('dependencies', []),
+ versiondep,
+ ]
# FIXME: Use fs.stem() with meson >= 0.54.0
- name = '@0@'.format(sources[0]).split('/')[-1].split('.')[0]
+ name = '@0@'.format(sources[0]).split('/')[-1]
+ if not name.endswith('.cc')
+ deps += [userspace]
+ endif
+ name = name.split('.')[0]
suite = fs.name(fs.parent('@0@'.format(sources[0])))
# FIXME: Use str.replace() with meson >= 0.58.0
sources,
include_directories : [base.get('includes', []), test.get('includes', includes)],
link_with : [base.get('link_with', []), test.get('link_with', libshared)],
- dependencies : [versiondep, base.get('dependencies', []), test.get('dependencies', [])],
+ dependencies : deps,
c_args : [test_cflags, test.get('c_args', [])],
build_by_default : want_tests != 'false',
install_rpath : rootpkglibdir,
test_libsystemd_sym_c,
include_directories : includes,
link_with : [libsystemd],
+ dependencies : userspace,
build_by_default : want_tests != 'false',
install : install_tests,
install_dir : testsdir)
test_libsystemd_sym_c,
include_directories : includes,
link_with : [install_libsystemd_static],
- dependencies : [threads], # threads is already included in dependencies on the library,
- # but does not seem to get propagated. Add here as a work-around.
+ dependencies : [
+ # threads is already included in dependencies on the library,
+ # but does not seem to get propagated. Add here as a work-around.
+ threads,
+ userspace,
+ ],
build_by_default : want_tests != 'false' and static_libsystemd_pic,
install : install_tests and static_libsystemd_pic,
install_dir : testsdir)
include_directories : libudev_includes,
c_args : ['-Wno-deprecated-declarations'] + test_cflags,
link_with : [libudev],
+ dependencies : userspace,
build_by_default : want_tests != 'false',
install : install_tests,
install_dir : testsdir)
include_directories : libudev_includes,
c_args : ['-Wno-deprecated-declarations'] + test_cflags,
link_with : [install_libudev_static],
+ dependencies : userspace,
build_by_default : want_tests != 'false' and static_libudev_pic,
install : install_tests and static_libudev_pic,
install_dir : testsdir)
include_directories('src/fuzz'),
],
link_with : [base.get('link_with', []), fuzzer.get('link_with', libshared)],
- dependencies : [dependencies, versiondep],
+ dependencies : [
+ dependencies,
+ userspace,
+ versiondep,
+ ],
c_args : [test_cflags, fuzzer.get('c_args', [])],
link_args: link_args,
install : false,