meson: rename extract+objects to export+import
We have two concepts: a list of files that should be extracted from an
intermediate build artifact to be used in a later build artifact, and for a
given artifact, a list "donors". The first list was called "extract", because
it is passed to the .extract_objects() meson function, and the second was
called "objects", because that is the meson parameter to specify pre-built
objects files (6350d2dbd9). But this naming is
confusing: we don't care about the 'extract' step, this is something internal
to the build machinery. And 'objects' is a very generic term.
Let's use 'export' for the stuff that is "exported" for other binaries to use,
and 'import' to say where to import from. Those terms are symmetrical and the
association between them should be intuitive. (If you think the terms are
actually assymetrical, there are precedents for confusing the import with the
import sources. E.g. in modern English, turkeys are called so because they were
imported from the Americas and guineafowls were imported from Africa via
Türkiye and all that foreign stuff is alike.)
This commit is contained in:
+10
-10
@@ -1815,7 +1815,7 @@ catalogs = []
|
||||
modules = [] # nss, pam, and other plugins
|
||||
executables = []
|
||||
executables_by_name = {}
|
||||
objects_by_name = {}
|
||||
exported_by_name = {}
|
||||
fuzzer_exes = []
|
||||
sources = []
|
||||
|
||||
@@ -2276,7 +2276,7 @@ foreach dict : executables
|
||||
continue
|
||||
endif
|
||||
|
||||
exe_sources = dict.get('sources', []) + dict.get('extract', [])
|
||||
exe_sources = dict.get('sources', []) + dict.get('export', [])
|
||||
|
||||
foreach bpf_name : dict.get('bpf_programs', [])
|
||||
if bpf_name in bpf_programs_by_name
|
||||
@@ -2287,7 +2287,7 @@ foreach dict : executables
|
||||
kwargs = {}
|
||||
foreach key, val : dict
|
||||
if key in ['name', 'dbus', 'public', 'conditions', 'type', 'suite',
|
||||
'timeout', 'parallel', 'objects', 'sources', 'extract',
|
||||
'timeout', 'parallel', 'sources', 'import', 'export',
|
||||
'include_directories', 'build_by_default', 'install',
|
||||
'bpf_programs']
|
||||
continue
|
||||
@@ -2305,9 +2305,9 @@ foreach dict : executables
|
||||
include_directories += fs.parent(exe_sources[0])
|
||||
endif
|
||||
|
||||
foreach val : dict.get('objects', [])
|
||||
obj = objects_by_name[val]
|
||||
kwargs += { 'objects' : kwargs.get('objects', []) + obj['objects'] }
|
||||
foreach val : dict.get('import', [])
|
||||
obj = exported_by_name[val]
|
||||
kwargs += { 'objects' : kwargs.get('objects', []) + obj['exported'] }
|
||||
include_directories += obj['include_directories']
|
||||
endforeach
|
||||
|
||||
@@ -2354,11 +2354,11 @@ foreach dict : executables
|
||||
sources += exe_sources
|
||||
endif
|
||||
|
||||
if dict.has_key('extract')
|
||||
objects_by_name += {
|
||||
if dict.has_key('export')
|
||||
exported_by_name += {
|
||||
name : {
|
||||
'objects' : exe.extract_objects(dict['extract']),
|
||||
'include_directories' : fs.parent(dict['extract'][0]),
|
||||
'exported' : exe.extract_objects(dict['export']),
|
||||
'include_directories' : fs.parent(dict['export'][0]),
|
||||
}
|
||||
}
|
||||
endif
|
||||
|
||||
@@ -49,7 +49,7 @@ executables += [
|
||||
'name' : 'systemd-analyze',
|
||||
'public' : conf.get('ENABLE_ANALYZE') == 1,
|
||||
'sources' : systemd_analyze_sources,
|
||||
'extract' : systemd_analyze_extract_sources,
|
||||
'export' : systemd_analyze_extract_sources,
|
||||
'include_directories' : core_includes,
|
||||
'link_with' : [
|
||||
libcore,
|
||||
@@ -63,6 +63,6 @@ executables += [
|
||||
},
|
||||
core_test_template + {
|
||||
'sources' : files('test-verify.c'),
|
||||
'objects' : ['systemd-analyze'],
|
||||
'import' : ['systemd-analyze'],
|
||||
},
|
||||
]
|
||||
|
||||
@@ -12,10 +12,10 @@ executables += [
|
||||
'name' : 'busctl',
|
||||
'public' : true,
|
||||
'sources' : busctl_sources,
|
||||
'extract' : busctl_extract_sources,
|
||||
'export' : busctl_extract_sources,
|
||||
},
|
||||
test_template + {
|
||||
'sources' : files('test-busctl-introspect.c'),
|
||||
'objects' : ['busctl'],
|
||||
'import' : ['busctl'],
|
||||
},
|
||||
]
|
||||
|
||||
@@ -36,7 +36,7 @@ executables += [
|
||||
libexec_template + {
|
||||
'name' : 'systemd-coredump',
|
||||
'sources' : systemd_coredump_sources,
|
||||
'extract' : systemd_coredump_extract_sources,
|
||||
'export' : systemd_coredump_extract_sources,
|
||||
'link_with' : [libshared],
|
||||
'dependencies' : [
|
||||
common_dependencies,
|
||||
@@ -52,7 +52,7 @@ executables += [
|
||||
},
|
||||
test_template + {
|
||||
'sources' : files('test-coredump-vacuum.c'),
|
||||
'objects' : ['systemd-coredump'],
|
||||
'import' : ['systemd-coredump'],
|
||||
'type' : 'manual',
|
||||
},
|
||||
]
|
||||
|
||||
@@ -8,11 +8,11 @@ executables += [
|
||||
libexec_template + {
|
||||
'name' : 'systemd-hibernate-resume',
|
||||
'sources' : files('hibernate-resume.c'),
|
||||
'extract' : files('hibernate-resume-config.c'),
|
||||
'export' : files('hibernate-resume-config.c'),
|
||||
},
|
||||
generator_template + {
|
||||
'name' : 'systemd-hibernate-resume-generator',
|
||||
'sources' : files('hibernate-resume-generator.c'),
|
||||
'objects' : ['systemd-hibernate-resume'],
|
||||
'import' : ['systemd-hibernate-resume'],
|
||||
},
|
||||
]
|
||||
|
||||
@@ -66,13 +66,13 @@ executables += [
|
||||
'name' : 'systemd-homed',
|
||||
'dbus' : true,
|
||||
'sources' : systemd_homed_sources,
|
||||
'extract' : systemd_homed_extract_sources,
|
||||
'export' : systemd_homed_extract_sources,
|
||||
'dependencies' : libopenssl_cflags,
|
||||
},
|
||||
libexec_template + {
|
||||
'name' : 'systemd-homework',
|
||||
'sources' : systemd_homework_sources,
|
||||
'objects' : ['systemd-homed'],
|
||||
'import' : ['systemd-homed'],
|
||||
'dependencies' : [
|
||||
libblkid_cflags,
|
||||
libcryptsetup_cflags,
|
||||
@@ -86,8 +86,8 @@ executables += [
|
||||
'name' : 'homectl',
|
||||
'public' : true,
|
||||
'sources' : homectl_sources,
|
||||
'extract' : homectl_extract,
|
||||
'objects' : ['systemd-homed'],
|
||||
'export' : homectl_extract,
|
||||
'import' : ['systemd-homed'],
|
||||
'dependencies' : [
|
||||
libfido2_cflags,
|
||||
libopenssl_cflags,
|
||||
@@ -96,7 +96,7 @@ executables += [
|
||||
},
|
||||
test_template + {
|
||||
'sources' : files('test-homectl-prompts.c'),
|
||||
'objects' : ['homectl'],
|
||||
'import' : ['homectl'],
|
||||
'type' : 'manual',
|
||||
},
|
||||
test_template + {
|
||||
|
||||
@@ -9,7 +9,7 @@ executables += [
|
||||
'name' : 'systemd-imdsd',
|
||||
'public' : true,
|
||||
'sources' : files('imdsd.c'),
|
||||
'extract' : files('imds-util.c'),
|
||||
'export' : files('imds-util.c'),
|
||||
'dependencies' : [
|
||||
libcurl_cflags,
|
||||
],
|
||||
@@ -20,12 +20,12 @@ executables += [
|
||||
'sources' : files(
|
||||
'imds-tool.c',
|
||||
'imds-tool-metrics.c'),
|
||||
'objects' : ['systemd-imdsd'],
|
||||
'import' : ['systemd-imdsd'],
|
||||
},
|
||||
generator_template + {
|
||||
'name' : 'systemd-imds-generator',
|
||||
'sources' : files('imds-generator.c'),
|
||||
'objects' : ['systemd-imdsd'],
|
||||
'import' : ['systemd-imdsd'],
|
||||
},
|
||||
]
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ executables += [
|
||||
'importd.c',
|
||||
'oci-util.c',
|
||||
),
|
||||
'extract' : files(
|
||||
'export' : files(
|
||||
'oci-util.c',
|
||||
'import-common.c',
|
||||
'qcow2-util.c',
|
||||
@@ -33,7 +33,7 @@ executables += [
|
||||
'pull-raw.c',
|
||||
'pull-tar.c',
|
||||
),
|
||||
'objects' : ['systemd-importd'],
|
||||
'import' : ['systemd-importd'],
|
||||
'dependencies' : [
|
||||
libcurl_cflags,
|
||||
libopenssl_cflags,
|
||||
@@ -47,7 +47,7 @@ executables += [
|
||||
'import-raw.c',
|
||||
'import-tar.c',
|
||||
),
|
||||
'objects' : ['systemd-importd'],
|
||||
'import' : ['systemd-importd'],
|
||||
},
|
||||
libexec_template + {
|
||||
'name' : 'systemd-import-fs',
|
||||
@@ -55,7 +55,7 @@ executables += [
|
||||
'sources' : files(
|
||||
'import-fs.c',
|
||||
),
|
||||
'objects' : ['systemd-importd'],
|
||||
'import' : ['systemd-importd'],
|
||||
},
|
||||
libexec_template + {
|
||||
'name' : 'systemd-export',
|
||||
@@ -65,13 +65,13 @@ executables += [
|
||||
'export-tar.c',
|
||||
'export-raw.c',
|
||||
),
|
||||
'objects' : ['systemd-importd'],
|
||||
'import' : ['systemd-importd'],
|
||||
},
|
||||
executable_template + {
|
||||
'name' : 'importctl',
|
||||
'public' : true,
|
||||
'sources' : files('importctl.c'),
|
||||
'objects': ['systemd-importd'],
|
||||
'import' : ['systemd-importd'],
|
||||
},
|
||||
generator_template + {
|
||||
'name' : 'systemd-import-generator',
|
||||
@@ -86,12 +86,12 @@ executables += [
|
||||
},
|
||||
test_template + {
|
||||
'sources' : files('test-qcow2.c'),
|
||||
'objects' : ['systemd-importd'],
|
||||
'import' : ['systemd-importd'],
|
||||
'type' : 'manual',
|
||||
},
|
||||
test_template + {
|
||||
'sources' : files('test-oci-util.c'),
|
||||
'objects': ['systemd-importd'],
|
||||
'import' : ['systemd-importd'],
|
||||
},
|
||||
]
|
||||
|
||||
|
||||
@@ -8,12 +8,12 @@ executables += [
|
||||
libexec_template + {
|
||||
'name' : 'systemd-integritysetup',
|
||||
'sources' : files('integritysetup.c'),
|
||||
'extract' : files('integrity-util.c'),
|
||||
'export' : files('integrity-util.c'),
|
||||
'dependencies' : libcryptsetup_cflags,
|
||||
},
|
||||
generator_template + {
|
||||
'name' : 'systemd-integritysetup-generator',
|
||||
'sources' : files('integritysetup-generator.c'),
|
||||
'objects' : ['systemd-integritysetup'],
|
||||
'import' : ['systemd-integritysetup'],
|
||||
},
|
||||
]
|
||||
|
||||
@@ -46,7 +46,7 @@ executables += [
|
||||
# Instead, we make sure we don't install it when the remote feature is disabled.
|
||||
'install' : conf.get('ENABLE_REMOTE') == 1,
|
||||
'sources' : systemd_journal_remote_sources,
|
||||
'extract' : systemd_journal_remote_extract_sources,
|
||||
'export' : systemd_journal_remote_extract_sources,
|
||||
'dependencies' : common_deps + [libmicrohttpd_cflags],
|
||||
},
|
||||
libexec_template + {
|
||||
@@ -57,8 +57,8 @@ executables += [
|
||||
'HAVE_LIBCURL',
|
||||
],
|
||||
'sources' : systemd_journal_upload_sources,
|
||||
'extract' : systemd_journal_upload_extract_sources,
|
||||
'objects' : ['systemd-journal-remote'],
|
||||
'export' : systemd_journal_upload_extract_sources,
|
||||
'import' : ['systemd-journal-remote'],
|
||||
'dependencies' : [
|
||||
common_deps,
|
||||
libcurl_cflags,
|
||||
@@ -67,11 +67,11 @@ executables += [
|
||||
test_template + {
|
||||
'sources' : files('test-journal-header-util.c'),
|
||||
'conditions' : ['ENABLE_REMOTE', 'HAVE_LIBCURL'],
|
||||
'objects' : ['systemd-journal-upload'],
|
||||
'import' : ['systemd-journal-upload'],
|
||||
},
|
||||
fuzz_template + {
|
||||
'sources' : files('fuzz-journal-remote.c'),
|
||||
'objects' : ['systemd-journal-remote'],
|
||||
'import' : ['systemd-journal-remote'],
|
||||
'dependencies' : common_deps + [libmicrohttpd_cflags],
|
||||
},
|
||||
]
|
||||
|
||||
@@ -78,11 +78,11 @@ else
|
||||
endif
|
||||
|
||||
journal_test_template = test_template + {
|
||||
'objects' : ['systemd-journald'],
|
||||
'import' : ['systemd-journald'],
|
||||
}
|
||||
|
||||
journal_fuzz_template = fuzz_template + {
|
||||
'objects' : [
|
||||
'import' : [
|
||||
'fuzz-journald-audit',
|
||||
'systemd-journald',
|
||||
],
|
||||
@@ -93,7 +93,7 @@ executables += [
|
||||
libexec_template + {
|
||||
'name' : 'systemd-journald',
|
||||
'sources' : systemd_journald_sources,
|
||||
'extract' : systemd_journald_extract_sources,
|
||||
'export' : systemd_journald_extract_sources,
|
||||
'dependencies' : [
|
||||
libacl_cflags,
|
||||
libaudit_cflags,
|
||||
@@ -117,7 +117,7 @@ executables += [
|
||||
'name' : 'systemd-cat',
|
||||
'public' : true,
|
||||
'sources' : files('cat.c'),
|
||||
'objects' : ['systemd-journald'],
|
||||
'import' : ['systemd-journald'],
|
||||
},
|
||||
executable_template + {
|
||||
'name' : 'journalctl',
|
||||
@@ -168,8 +168,8 @@ executables += [
|
||||
fuzz_template + {
|
||||
'sources' : files('fuzz-journald-audit.c'),
|
||||
# fuzz-journald-util.c is shared with the other fuzzers below.
|
||||
'extract' : files('fuzz-journald-util.c'),
|
||||
'objects' : ['systemd-journald'],
|
||||
'export' : files('fuzz-journald-util.c'),
|
||||
'import' : ['systemd-journald'],
|
||||
},
|
||||
journal_fuzz_template + {
|
||||
'sources' : files('fuzz-journald-kmsg.c'),
|
||||
|
||||
@@ -116,11 +116,11 @@ executables += [
|
||||
},
|
||||
network_test_template + {
|
||||
'sources' : files('test-ndisc-ra.c'),
|
||||
'extract' : files('icmp6-test-util.c'),
|
||||
'export' : files('icmp6-test-util.c'),
|
||||
},
|
||||
network_test_template + {
|
||||
'sources' : files('test-ndisc-rs.c'),
|
||||
'objects' : ['test-ndisc-ra'],
|
||||
'import' : ['test-ndisc-ra'],
|
||||
},
|
||||
network_test_template + {
|
||||
'sources' : files('test-ndisc-send.c'),
|
||||
@@ -146,6 +146,6 @@ executables += [
|
||||
},
|
||||
network_fuzz_template + {
|
||||
'sources' : files('fuzz-ndisc-rs.c'),
|
||||
'objects' : ['test-ndisc-ra'],
|
||||
'import' : ['test-ndisc-ra'],
|
||||
},
|
||||
]
|
||||
|
||||
@@ -29,7 +29,7 @@ executables += [
|
||||
'name' : 'systemd-localed',
|
||||
'dbus' : true,
|
||||
'sources' : systemd_localed_sources,
|
||||
'extract' : systemd_localed_extract_sources,
|
||||
'export' : systemd_localed_extract_sources,
|
||||
'dependencies' : libxkbcommon_deps,
|
||||
},
|
||||
executable_template + {
|
||||
@@ -39,7 +39,7 @@ executables += [
|
||||
},
|
||||
test_template + {
|
||||
'sources' : files('test-localed-util.c'),
|
||||
'objects' : ['systemd-localed'],
|
||||
'import' : ['systemd-localed'],
|
||||
'dependencies' : libxkbcommon_deps,
|
||||
},
|
||||
]
|
||||
|
||||
@@ -47,7 +47,7 @@ executables += [
|
||||
'name' : 'systemd-logind',
|
||||
'dbus' : true,
|
||||
'sources' : systemd_logind_sources,
|
||||
'extract' : systemd_logind_extract_sources,
|
||||
'export' : systemd_logind_extract_sources,
|
||||
'dependencies' : [
|
||||
libacl_cflags,
|
||||
],
|
||||
@@ -77,7 +77,7 @@ executables += [
|
||||
},
|
||||
test_template + {
|
||||
'sources' : files('test-login-tables.c'),
|
||||
'objects' : ['systemd-logind'],
|
||||
'import' : ['systemd-logind'],
|
||||
},
|
||||
test_template + {
|
||||
'sources' : files('test-session-properties.c'),
|
||||
|
||||
@@ -26,7 +26,7 @@ executables += [
|
||||
'name' : 'systemd-machined',
|
||||
'dbus' : true,
|
||||
'sources' : systemd_machined_sources,
|
||||
'extract' : systemd_machined_extract_sources,
|
||||
'export' : systemd_machined_extract_sources,
|
||||
},
|
||||
executable_template + {
|
||||
'name' : 'machinectl',
|
||||
@@ -40,7 +40,7 @@ executables += [
|
||||
},
|
||||
test_template + {
|
||||
'sources' : files('test-machine-tables.c'),
|
||||
'objects' : ['systemd-machined'],
|
||||
'import' : ['systemd-machined'],
|
||||
},
|
||||
]
|
||||
|
||||
|
||||
@@ -178,7 +178,7 @@ network_test_template = test_template + {
|
||||
networkd_link_with,
|
||||
libsystemd_network,
|
||||
],
|
||||
'objects' : ['systemd-networkd'],
|
||||
'import' : ['systemd-networkd'],
|
||||
'include_directories' : network_includes,
|
||||
}
|
||||
|
||||
@@ -188,7 +188,7 @@ network_fuzz_template = fuzz_template + {
|
||||
networkd_link_with,
|
||||
libsystemd_network,
|
||||
],
|
||||
'objects' : ['systemd-networkd'],
|
||||
'import' : ['systemd-networkd'],
|
||||
'include_directories' : network_includes,
|
||||
}
|
||||
|
||||
@@ -198,7 +198,7 @@ executables += [
|
||||
'dbus' : true,
|
||||
'conditions' : ['ENABLE_NETWORKD'],
|
||||
'sources' : systemd_networkd_sources,
|
||||
'extract' : systemd_networkd_extract_sources,
|
||||
'export' : systemd_networkd_extract_sources,
|
||||
'include_directories' : network_includes,
|
||||
'link_with' : [
|
||||
libsystemd_network,
|
||||
@@ -235,12 +235,12 @@ executables += [
|
||||
libexec_template + {
|
||||
'name' : 'systemd-network-generator',
|
||||
'sources' : files('generator/network-generator-main.c'),
|
||||
'extract' : files('generator/network-generator.c'),
|
||||
'export' : files('generator/network-generator.c'),
|
||||
'link_with' : networkd_link_with,
|
||||
},
|
||||
test_template + {
|
||||
'sources' : files('generator/test-network-generator.c'),
|
||||
'objects' : ['systemd-network-generator'],
|
||||
'import' : ['systemd-network-generator'],
|
||||
'suite' : 'network',
|
||||
},
|
||||
network_test_template + {
|
||||
|
||||
@@ -31,7 +31,7 @@ nspawn_extract_sources += nspawn_gperf_c
|
||||
|
||||
nspawn_common_template = {
|
||||
'dependencies' : libseccomp_cflags,
|
||||
'objects' : ['systemd-nspawn'],
|
||||
'import' : ['systemd-nspawn'],
|
||||
}
|
||||
nspawn_test_template = test_template + nspawn_common_template
|
||||
nspawn_fuzz_template = fuzz_template + nspawn_common_template
|
||||
@@ -41,7 +41,7 @@ executables += [
|
||||
'name' : 'systemd-nspawn',
|
||||
'public' : true,
|
||||
'sources' : nspawn_sources,
|
||||
'extract' : nspawn_extract_sources,
|
||||
'export' : nspawn_extract_sources,
|
||||
'include_directories' : [
|
||||
include_directories('.'),
|
||||
executable_template['include_directories'],
|
||||
|
||||
@@ -23,7 +23,7 @@ executables += [
|
||||
libexec_template + {
|
||||
'name' : 'systemd-nsresourced',
|
||||
'sources' : systemd_nsresourced_sources,
|
||||
'extract' : systemd_nsresourced_extract_sources,
|
||||
'export' : systemd_nsresourced_extract_sources,
|
||||
'dependencies' : [
|
||||
libbpf_cflags,
|
||||
],
|
||||
@@ -32,13 +32,13 @@ executables += [
|
||||
libexec_template + {
|
||||
'name' : 'systemd-nsresourcework',
|
||||
'sources' : systemd_nsresourcework_sources,
|
||||
'objects' : ['systemd-nsresourced'],
|
||||
'import' : ['systemd-nsresourced'],
|
||||
'bpf_programs': ['userns-restrict'],
|
||||
},
|
||||
test_template + {
|
||||
'sources' : test_userns_restrict_sources,
|
||||
'conditions' : ['HAVE_VMLINUX_H'],
|
||||
'objects' : ['systemd-nsresourced'],
|
||||
'import' : ['systemd-nsresourced'],
|
||||
'bpf_programs': ['userns-restrict'],
|
||||
},
|
||||
]
|
||||
|
||||
+2
-2
@@ -19,7 +19,7 @@ executables += [
|
||||
'name' : 'systemd-oomd',
|
||||
'dbus' : true,
|
||||
'sources' : systemd_oomd_sources,
|
||||
'extract' : systemd_oomd_extract_sources,
|
||||
'export' : systemd_oomd_extract_sources,
|
||||
'dependencies' : libatomic,
|
||||
},
|
||||
executable_template + {
|
||||
@@ -29,7 +29,7 @@ executables += [
|
||||
},
|
||||
test_template + {
|
||||
'sources' : files('test-oomd-util.c'),
|
||||
'objects' : ['systemd-oomd'],
|
||||
'import' : ['systemd-oomd'],
|
||||
'dependencies' : libatomic,
|
||||
},
|
||||
]
|
||||
|
||||
@@ -8,7 +8,7 @@ executables += [
|
||||
executable_template + {
|
||||
'name' : 'systemd-repart',
|
||||
'public' : true,
|
||||
'extract' : files(
|
||||
'export' : files(
|
||||
'iso9660.c',
|
||||
'repart.c',
|
||||
'repart-list-candidate-devices.c',
|
||||
@@ -25,7 +25,7 @@ executables += [
|
||||
executable_template + {
|
||||
'name' : 'systemd-repart.standalone',
|
||||
'public' : true,
|
||||
'objects' : ['systemd-repart'],
|
||||
'import' : ['systemd-repart'],
|
||||
'link_with' : [
|
||||
libc_wrapper_static,
|
||||
libbasic_static,
|
||||
|
||||
@@ -74,15 +74,15 @@ resolve_common_template = {
|
||||
],
|
||||
}
|
||||
|
||||
resolve_test_template = test_template + resolve_common_template + {'objects' : ['systemd-resolved']}
|
||||
resolve_fuzz_template = fuzz_template + resolve_common_template + {'objects' : ['systemd-resolved']}
|
||||
resolve_test_template = test_template + resolve_common_template + {'import' : ['systemd-resolved']}
|
||||
resolve_fuzz_template = fuzz_template + resolve_common_template + {'import' : ['systemd-resolved']}
|
||||
|
||||
executables += [
|
||||
libexec_template + resolve_common_template + {
|
||||
'name' : 'systemd-resolved',
|
||||
'dbus' : true,
|
||||
'sources' : systemd_resolved_sources,
|
||||
'extract' : systemd_resolved_extract_sources,
|
||||
'export' : systemd_resolved_extract_sources,
|
||||
},
|
||||
executable_template + resolve_common_template + {
|
||||
'name' : 'resolvectl',
|
||||
@@ -91,7 +91,7 @@ executables += [
|
||||
'resolvconf-compat.c',
|
||||
'resolvectl.c',
|
||||
),
|
||||
'objects' : ['systemd-resolved'],
|
||||
'import' : ['systemd-resolved'],
|
||||
},
|
||||
resolve_test_template + {
|
||||
'sources' : files('test-resolve-tables.c'),
|
||||
|
||||
@@ -12,7 +12,7 @@ shutdown_detach_sources = files(
|
||||
executables += [
|
||||
libexec_template + {
|
||||
'name' : 'systemd-shutdown',
|
||||
'extract' : files(
|
||||
'export' : files(
|
||||
'detach-dm.c',
|
||||
'detach-loopback.c',
|
||||
'detach-md.c',
|
||||
@@ -22,7 +22,7 @@ executables += [
|
||||
},
|
||||
libexec_template + {
|
||||
'name' : 'systemd-shutdown.standalone',
|
||||
'objects' : ['systemd-shutdown'],
|
||||
'import' : ['systemd-shutdown'],
|
||||
'link_with' : [
|
||||
libc_wrapper_static,
|
||||
libbasic_static,
|
||||
|
||||
@@ -4,11 +4,11 @@ executables += [
|
||||
libexec_template + {
|
||||
'name' : 'systemd-sleep',
|
||||
'sources' : files('sleep.c'),
|
||||
'extract' : files('battery-capacity.c'),
|
||||
'export' : files('battery-capacity.c'),
|
||||
},
|
||||
test_template + {
|
||||
'sources' : files('test-battery-capacity.c'),
|
||||
'objects' : ['systemd-sleep'],
|
||||
'import' : ['systemd-sleep'],
|
||||
},
|
||||
]
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ executables += [
|
||||
generator_template + {
|
||||
'name' : 'systemd-ssh-generator',
|
||||
'sources' : files('ssh-generator.c'),
|
||||
'extract' : files('ssh-util.c'),
|
||||
'export' : files('ssh-util.c'),
|
||||
},
|
||||
libexec_template + {
|
||||
'name' : 'systemd-ssh-proxy',
|
||||
@@ -13,7 +13,7 @@ executables += [
|
||||
libexec_template + {
|
||||
'name' : 'systemd-ssh-issue',
|
||||
'sources' : files('ssh-issue.c'),
|
||||
'objects' : ['systemd-ssh-generator'],
|
||||
'import' : ['systemd-ssh-generator'],
|
||||
},
|
||||
]
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ executables += [
|
||||
'name' : 'systemctl',
|
||||
'public' : true,
|
||||
'sources' : systemctl_sources,
|
||||
'extract' : systemctl_extract_sources,
|
||||
'export' : systemctl_extract_sources,
|
||||
'link_with' : systemctl_link_with,
|
||||
'dependencies' : [
|
||||
liblz4_cflags,
|
||||
@@ -63,7 +63,7 @@ executables += [
|
||||
},
|
||||
fuzz_template + {
|
||||
'sources' : files('fuzz-systemctl-parse-argv.c'),
|
||||
'objects' : ['systemctl'],
|
||||
'import' : ['systemctl'],
|
||||
'link_with' : systemctl_link_with,
|
||||
'dependencies' : [
|
||||
libselinux_cflags,
|
||||
|
||||
@@ -29,7 +29,7 @@ executables += [
|
||||
'public' : true,
|
||||
'conditions' : ['ENABLE_SYSUPDATE'],
|
||||
'sources' : systemd_sysupdate_sources,
|
||||
'extract' : systemd_sysupdate_extract_sources,
|
||||
'export' : systemd_sysupdate_extract_sources,
|
||||
'dependencies' : [
|
||||
libfdisk_cflags,
|
||||
libopenssl_cflags,
|
||||
@@ -45,12 +45,12 @@ executables += [
|
||||
'name' : 'updatectl',
|
||||
'public' : true,
|
||||
'sources' : systemd_updatectl_sources,
|
||||
'objects' : ['systemd-sysupdate'],
|
||||
'import' : ['systemd-sysupdate'],
|
||||
'conditions' : ['ENABLE_SYSUPDATED'],
|
||||
},
|
||||
test_template + {
|
||||
'sources' : files('test-sysupdate-util.c'),
|
||||
'objects' : ['systemd-sysupdate'],
|
||||
'import' : ['systemd-sysupdate'],
|
||||
'conditions' : ['ENABLE_SYSUPDATE'],
|
||||
},
|
||||
]
|
||||
|
||||
@@ -8,13 +8,13 @@ executables += [
|
||||
executable_template + {
|
||||
'name' : 'systemd-sysusers',
|
||||
'public' : true,
|
||||
'extract' : files('sysusers.c'),
|
||||
'export' : files('sysusers.c'),
|
||||
'dependencies' : libaudit_cflags,
|
||||
},
|
||||
executable_template + {
|
||||
'name' : 'systemd-sysusers.standalone',
|
||||
'public' : true,
|
||||
'objects' : ['systemd-sysusers'],
|
||||
'import' : ['systemd-sysusers'],
|
||||
'link_with' : [
|
||||
libc_wrapper_static,
|
||||
libbasic_static,
|
||||
|
||||
@@ -438,14 +438,14 @@ executables += [
|
||||
},
|
||||
test_template + {
|
||||
'sources' : files('test-nss-hosts.c'),
|
||||
'extract' : files('nss-test-util.c'),
|
||||
'export' : files('nss-test-util.c'),
|
||||
'dependencies' : libseccomp_cflags,
|
||||
'conditions' : ['ENABLE_NSS'],
|
||||
'timeout' : 120,
|
||||
},
|
||||
test_template + {
|
||||
'sources' : files('test-nss-users.c'),
|
||||
'objects' : ['test-nss-hosts'],
|
||||
'import' : ['test-nss-hosts'],
|
||||
'conditions' : ['ENABLE_NSS'],
|
||||
},
|
||||
test_template + {
|
||||
@@ -463,7 +463,7 @@ executables += [
|
||||
},
|
||||
test_template + {
|
||||
'sources' : files('test-qmp-client-qemu.c'),
|
||||
'objects' : ['systemd-vmspawn'],
|
||||
'import' : ['systemd-vmspawn'],
|
||||
'conditions' : ['ENABLE_VMSPAWN'],
|
||||
},
|
||||
test_template + {
|
||||
@@ -517,12 +517,12 @@ executables += [
|
||||
},
|
||||
test_template + {
|
||||
'sources' : files('test-varlink-idl-machine.c'),
|
||||
'objects' : ['systemd-machined'],
|
||||
'import' : ['systemd-machined'],
|
||||
'conditions' : ['ENABLE_MACHINED'],
|
||||
},
|
||||
test_template + {
|
||||
'sources' : files('test-varlink-idl-login.c'),
|
||||
'objects' : ['systemd-logind'],
|
||||
'import' : ['systemd-logind'],
|
||||
'conditions' : ['ENABLE_LOGIND'],
|
||||
},
|
||||
test_template + {
|
||||
|
||||
@@ -33,19 +33,19 @@ executables += [
|
||||
libexec_template + {
|
||||
'name' : 'systemd-timesyncd',
|
||||
'sources' : timesyncd_sources,
|
||||
'extract' : timesyncd_extract_sources,
|
||||
'export' : timesyncd_extract_sources,
|
||||
'link_with' : timesyncd_link_with,
|
||||
'dependencies' : libm,
|
||||
},
|
||||
libexec_template + {
|
||||
'name' : 'systemd-time-wait-sync',
|
||||
'sources' : files('wait-sync.c'),
|
||||
'objects' : ['systemd-timesyncd'],
|
||||
'import' : ['systemd-timesyncd'],
|
||||
'dependencies' : libm,
|
||||
},
|
||||
test_template + {
|
||||
'sources' : files('test-timesync.c'),
|
||||
'objects' : ['systemd-timesyncd'],
|
||||
'import' : ['systemd-timesyncd'],
|
||||
'dependencies' : libm,
|
||||
},
|
||||
]
|
||||
|
||||
@@ -10,7 +10,7 @@ executables += [
|
||||
executable_template + {
|
||||
'name' : 'systemd-tmpfiles',
|
||||
'public' : true,
|
||||
'extract' : files('tmpfiles.c') +
|
||||
'export' : files('tmpfiles.c') +
|
||||
offline_passwd_c,
|
||||
'dependencies' : [
|
||||
libacl_cflags,
|
||||
@@ -20,7 +20,7 @@ executables += [
|
||||
executable_template + {
|
||||
'name' : 'systemd-tmpfiles.standalone',
|
||||
'public' : true,
|
||||
'objects' : ['systemd-tmpfiles'],
|
||||
'import' : ['systemd-tmpfiles'],
|
||||
'link_with' : [
|
||||
libc_wrapper_static,
|
||||
libbasic_static,
|
||||
|
||||
@@ -135,7 +135,7 @@ udev_plugin_template = executable_template + {
|
||||
}
|
||||
|
||||
udev_common_template = {
|
||||
'objects' : ['udevadm'],
|
||||
'import' : ['udevadm'],
|
||||
'dependencies' : [
|
||||
libacl_cflags,
|
||||
libblkid_cflags,
|
||||
@@ -150,7 +150,7 @@ udev_binaries_dict = [
|
||||
'public' : true,
|
||||
'sources' : udevadm_sources +
|
||||
keyboard_keys_from_name_inc,
|
||||
'extract' : udevadm_extract_sources,
|
||||
'export' : udevadm_extract_sources,
|
||||
'include_directories' : [
|
||||
include_directories('.', 'net'),
|
||||
libexec_template['include_directories'],
|
||||
@@ -176,7 +176,7 @@ udev_binaries_dict = [
|
||||
udev_plugin_template + {
|
||||
'name' : 'fido_id',
|
||||
'sources' : files('fido_id/fido_id.c'),
|
||||
'extract' : files('fido_id/fido_id_desc.c'),
|
||||
'export' : files('fido_id/fido_id_desc.c'),
|
||||
},
|
||||
udev_plugin_template + {
|
||||
'name' : 'iocost',
|
||||
@@ -211,7 +211,7 @@ executables += udev_binaries_dict
|
||||
executables += [
|
||||
test_template + {
|
||||
'sources' : files('fido_id/test-fido-id-desc.c'),
|
||||
'objects' : ['fido_id'],
|
||||
'import' : ['fido_id'],
|
||||
'suite' : 'udev',
|
||||
},
|
||||
udev_test_template + {
|
||||
@@ -245,7 +245,7 @@ executables += [
|
||||
},
|
||||
fuzz_template + {
|
||||
'sources' : files('fido_id/fuzz-fido-id-desc.c'),
|
||||
'objects' : ['fido_id'],
|
||||
'import' : ['fido_id'],
|
||||
},
|
||||
udev_fuzz_template + {
|
||||
'sources' : files('net/fuzz-link-parser.c'),
|
||||
|
||||
@@ -23,14 +23,14 @@ executables += [
|
||||
'name' : 'systemd-vmspawn',
|
||||
'public' : true,
|
||||
'sources' : vmspawn_sources,
|
||||
'extract' : vmspawn_extract_sources,
|
||||
'export' : vmspawn_extract_sources,
|
||||
},
|
||||
test_template + {
|
||||
'sources' : files('test-vmspawn-util.c'),
|
||||
'objects' : ['systemd-vmspawn'],
|
||||
'import' : ['systemd-vmspawn'],
|
||||
},
|
||||
test_template + {
|
||||
'sources' : files('test-vmspawn-qemu-config.c'),
|
||||
'objects' : ['systemd-vmspawn'],
|
||||
'import' : ['systemd-vmspawn'],
|
||||
},
|
||||
]
|
||||
|
||||
@@ -8,7 +8,7 @@ executables += [
|
||||
executable_template + {
|
||||
'name' : 'systemd-xdg-autostart-generator',
|
||||
'sources' : files('xdg-autostart-generator.c'),
|
||||
'extract' : files('xdg-autostart-service.c'),
|
||||
'export' : files('xdg-autostart-service.c'),
|
||||
'install_dir' : usergeneratordir,
|
||||
},
|
||||
libexec_template + {
|
||||
@@ -17,10 +17,10 @@ executables += [
|
||||
},
|
||||
test_template + {
|
||||
'sources' : files('test-xdg-autostart.c'),
|
||||
'objects' : ['systemd-xdg-autostart-generator'],
|
||||
'import' : ['systemd-xdg-autostart-generator'],
|
||||
},
|
||||
fuzz_template + {
|
||||
'sources' : files('fuzz-xdg-desktop.c'),
|
||||
'objects' : ['systemd-xdg-autostart-generator'],
|
||||
'import' : ['systemd-xdg-autostart-generator'],
|
||||
},
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user