]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/shared/meson.build
meson: drop libiptc link dependencies from libshared
[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 fstab-util.c
38 fstab-util.h
39 gcrypt-util.c
40 gcrypt-util.h
41 generator.c
42 generator.h
43 gpt.h
44 ima-util.c
45 ima-util.h
46 import-util.c
47 import-util.h
48 initreq.h
49 install.c
50 install.h
51 install-printf.c
52 install-printf.h
53 journal-util.c
54 journal-util.h
55 logs-show.c
56 logs-show.h
57 loop-util.c
58 loop-util.h
59 machine-image.c
60 machine-image.h
61 machine-pool.c
62 machine-pool.h
63 nsflags.c
64 nsflags.h
65 output-mode.c
66 output-mode.h
67 pager.c
68 pager.h
69 path-lookup.c
70 path-lookup.h
71 ptyfwd.c
72 ptyfwd.h
73 resolve-util.c
74 resolve-util.h
75 seccomp-util.h
76 sleep-config.c
77 sleep-config.h
78 spawn-ask-password-agent.c
79 spawn-ask-password-agent.h
80 spawn-polkit-agent.c
81 spawn-polkit-agent.h
82 specifier.c
83 specifier.h
84 switch-root.c
85 switch-root.h
86 sysctl-util.c
87 sysctl-util.h
88 tests.c
89 tests.h
90 udev-util.h
91 uid-range.c
92 uid-range.h
93 utmp-wtmp.h
94 vlan-util.c
95 vlan-util.h
96 volatile-util.c
97 volatile-util.h
98 watchdog.c
99 watchdog.h
100 '''.split()
101
102 test_tables_h = files('test-tables.h')
103 shared_sources += [test_tables_h]
104
105 if conf.get('HAVE_ACL', 0) == 1
106 shared_sources += ['acl-util.c']
107 endif
108
109 if conf.get('HAVE_UTMP', 0) == 1
110 shared_sources += ['utmp-wtmp.c']
111 endif
112
113 if conf.get('HAVE_SECCOMP', 0) == 1
114 shared_sources += ['seccomp-util.c']
115 endif
116
117 libshared_name = 'systemd-shared-@0@'.format(meson.project_version())
118
119 libshared = shared_library(
120 libshared_name,
121 shared_sources,
122 basic_sources,
123 journal_internal_sources,
124 libsystemd_internal_sources,
125 include_directories : includes,
126 link_args : ['-shared'],
127 c_args : ['-fvisibility=default'],
128 link_with : [libudev],
129 dependencies : [threads,
130 librt,
131 libcap,
132 libacl,
133 libcryptsetup,
134 libgcrypt,
135 libseccomp,
136 libselinux,
137 libidn,
138 libxz,
139 liblz4,
140 libblkid],
141 install : true,
142 install_dir : rootlibexecdir)
143
144 libshared_static = static_library(
145 libshared_name,
146 shared_sources,
147 basic_sources,
148 include_directories : includes,
149 dependencies : [threads,
150 librt,
151 libcap,
152 libacl,
153 libcryptsetup,
154 libseccomp,
155 libselinux,
156 libidn,
157 libxz,
158 liblz4,
159 libblkid])
160
161 if conf.get('HAVE_LIBIPTC', 0) == 1
162 libfirewall = static_library(
163 'firewall',
164 'firewall-util.h',
165 'firewall-util.c',
166 include_directories : includes,
167 dependencies : [libiptc])
168 else
169 libfirewall = []
170 endif