]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/shared/meson.build
Merge pull request #5960 from keszybz/journald-memleak
[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 udev-util.h
92 udev-util.c
93 uid-range.c
94 uid-range.h
95 utmp-wtmp.h
96 vlan-util.c
97 vlan-util.h
98 volatile-util.c
99 volatile-util.h
100 watchdog.c
101 watchdog.h
102 '''.split()
103
104 test_tables_h = files('test-tables.h')
105 shared_sources += [test_tables_h]
106
107 if conf.get('HAVE_ACL', false)
108 shared_sources += ['acl-util.c']
109 endif
110
111 if conf.get('HAVE_UTMP', false)
112 shared_sources += ['utmp-wtmp.c']
113 endif
114
115 if conf.get('HAVE_SECCOMP', false)
116 shared_sources += ['seccomp-util.c']
117 endif
118
119 if conf.get('HAVE_LIBIPTC', false)
120 shared_sources += ['firewall-util.c']
121 endif
122
123 libshared_name = 'systemd-shared-@0@'.format(meson.project_version())
124
125 libshared = shared_library(
126 libshared_name,
127 shared_sources,
128 basic_sources,
129 journal_internal_sources,
130 libsystemd_internal_sources,
131 libudev_sources,
132 include_directories : includes,
133 link_args : ['-shared'],
134 c_args : ['-fvisibility=default'],
135 dependencies : [threads,
136 librt,
137 libcap,
138 libacl,
139 libcryptsetup,
140 libgcrypt,
141 libiptc,
142 libseccomp,
143 libselinux,
144 libidn,
145 libxz,
146 liblz4,
147 libblkid],
148 install : true,
149 install_dir : rootlibexecdir)
150
151 libshared_static = static_library(
152 libshared_name,
153 shared_sources,
154 basic_sources,
155 include_directories : includes,
156 dependencies : [threads,
157 librt,
158 libcap,
159 libacl,
160 libcryptsetup,
161 libseccomp,
162 libselinux,
163 libidn,
164 libxz,
165 liblz4,
166 libblkid])