]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/shared/meson.build
Merge pull request #7089 from oniko/luks2-support
[thirdparty/systemd.git] / src / shared / meson.build
1 shared_sources = '''
2 acl-util.h
3 acpi-fpdt.c
4 acpi-fpdt.h
5 apparmor-util.c
6 apparmor-util.h
7 ask-password-api.c
8 ask-password-api.h
9 base-filesystem.c
10 base-filesystem.h
11 boot-timestamps.c
12 boot-timestamps.h
13 bus-unit-util.c
14 bus-unit-util.h
15 bus-util.c
16 bus-util.h
17 cgroup-show.c
18 cgroup-show.h
19 clean-ipc.c
20 clean-ipc.h
21 condition.c
22 condition.h
23 conf-parser.c
24 conf-parser.h
25 dev-setup.c
26 dev-setup.h
27 dissect-image.c
28 dissect-image.h
29 dns-domain.c
30 dns-domain.h
31 dropin.c
32 dropin.h
33 efivars.c
34 efivars.h
35 fdset.c
36 fdset.h
37 firewall-util.h
38 fstab-util.c
39 fstab-util.h
40 gcrypt-util.c
41 gcrypt-util.h
42 generator.c
43 generator.h
44 gpt.h
45 ima-util.c
46 ima-util.h
47 import-util.c
48 import-util.h
49 initreq.h
50 install.c
51 install.h
52 install-printf.c
53 install-printf.h
54 journal-util.c
55 journal-util.h
56 logs-show.c
57 logs-show.h
58 loop-util.c
59 loop-util.h
60 machine-image.c
61 machine-image.h
62 machine-pool.c
63 machine-pool.h
64 nsflags.c
65 nsflags.h
66 output-mode.c
67 output-mode.h
68 pager.c
69 pager.h
70 path-lookup.c
71 path-lookup.h
72 ptyfwd.c
73 ptyfwd.h
74 resolve-util.c
75 resolve-util.h
76 seccomp-util.h
77 sleep-config.c
78 sleep-config.h
79 spawn-ask-password-agent.c
80 spawn-ask-password-agent.h
81 spawn-polkit-agent.c
82 spawn-polkit-agent.h
83 specifier.c
84 specifier.h
85 switch-root.c
86 switch-root.h
87 sysctl-util.c
88 sysctl-util.h
89 tests.c
90 tests.h
91 tomoyo-util.c
92 tomoyo-util.h
93 udev-util.h
94 udev-util.c
95 uid-range.c
96 uid-range.h
97 utmp-wtmp.h
98 vlan-util.c
99 vlan-util.h
100 volatile-util.c
101 volatile-util.h
102 watchdog.c
103 watchdog.h
104 '''.split()
105
106 test_tables_h = files('test-tables.h')
107 shared_sources += [test_tables_h]
108
109 if conf.get('HAVE_ACL') == 1
110 shared_sources += ['acl-util.c']
111 endif
112
113 if conf.get('ENABLE_UTMP') == 1
114 shared_sources += ['utmp-wtmp.c']
115 endif
116
117 if conf.get('HAVE_SECCOMP') == 1
118 shared_sources += ['seccomp-util.c']
119 endif
120
121 if conf.get('HAVE_LIBIPTC') == 1
122 shared_sources += ['firewall-util.c']
123 endif
124
125 libshared_name = 'systemd-shared-@0@'.format(meson.project_version())
126
127 libshared_deps = [threads,
128 librt,
129 libcap,
130 libacl,
131 libcryptsetup,
132 libgcrypt,
133 libiptc,
134 libseccomp,
135 libselinux,
136 libidn,
137 libxz,
138 liblz4,
139 libblkid]
140
141 libshared_sym_path = '@0@/libshared.sym'.format(meson.current_source_dir())
142
143 libshared = shared_library(
144 libshared_name,
145 shared_sources,
146 basic_sources,
147 journal_internal_sources,
148 libsystemd_internal_sources,
149 libudev_sources,
150 include_directories : includes,
151 link_args : ['-shared',
152 '-Wl,--version-script=' + libshared_sym_path],
153 c_args : ['-fvisibility=default'],
154 dependencies : libshared_deps,
155 install : true,
156 install_dir : rootlibexecdir)
157
158 libshared_static = static_library(
159 libshared_name,
160 shared_sources,
161 basic_sources,
162 include_directories : includes,
163 dependencies : libshared_deps)