]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/shared/meson.build
Drop my copyright headers
[thirdparty/systemd.git] / src / shared / meson.build
1 # SPDX-License-Identifier: LGPL-2.1+
2
3 shared_sources = files('''
4 acl-util.h
5 acpi-fpdt.c
6 acpi-fpdt.h
7 apparmor-util.c
8 apparmor-util.h
9 ask-password-api.c
10 ask-password-api.h
11 base-filesystem.c
12 base-filesystem.h
13 boot-timestamps.c
14 boot-timestamps.h
15 bootspec.c
16 bootspec.h
17 bus-unit-util.c
18 bus-unit-util.h
19 bus-util.c
20 bus-util.h
21 cgroup-show.c
22 cgroup-show.h
23 clean-ipc.c
24 clean-ipc.h
25 condition.c
26 condition.h
27 conf-parser.c
28 conf-parser.h
29 dev-setup.c
30 dev-setup.h
31 dissect-image.c
32 dissect-image.h
33 dns-domain.c
34 dns-domain.h
35 dropin.c
36 dropin.h
37 efivars.c
38 efivars.h
39 fdset.c
40 fdset.h
41 firewall-util.h
42 fstab-util.c
43 fstab-util.h
44 generator.c
45 generator.h
46 gpt.h
47 ima-util.c
48 ima-util.h
49 import-util.c
50 import-util.h
51 initreq.h
52 install.c
53 install.h
54 install-printf.c
55 install-printf.h
56 journal-util.c
57 journal-util.h
58 logs-show.c
59 logs-show.h
60 loop-util.c
61 loop-util.h
62 machine-image.c
63 machine-image.h
64 machine-pool.c
65 machine-pool.h
66 nsflags.c
67 nsflags.h
68 output-mode.c
69 output-mode.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 wireguard-netlink.h
105 '''.split())
106
107 test_tables_h = files('test-tables.h')
108 shared_sources += [test_tables_h]
109
110 if conf.get('HAVE_ACL') == 1
111 shared_sources += files('acl-util.c')
112 endif
113
114 if conf.get('ENABLE_UTMP') == 1
115 shared_sources += files('utmp-wtmp.c')
116 endif
117
118 if conf.get('HAVE_SECCOMP') == 1
119 shared_sources += files('seccomp-util.c')
120 endif
121
122 if conf.get('HAVE_LIBIPTC') == 1
123 shared_sources += files('firewall-util.c')
124 endif
125
126 libshared_name = 'systemd-shared-@0@'.format(meson.project_version())
127
128 libshared_deps = [threads,
129 librt,
130 libcap,
131 libacl,
132 libcryptsetup,
133 libgcrypt,
134 libiptc,
135 libseccomp,
136 libselinux,
137 libidn,
138 libxz,
139 liblz4,
140 libblkid]
141
142 libshared_sym_path = '@0@/libshared.sym'.format(meson.current_source_dir())
143
144 libshared_static = static_library(
145 libshared_name,
146 shared_sources,
147 include_directories : includes,
148 dependencies : libshared_deps,
149 c_args : ['-fvisibility=default'])
150
151 libshared = shared_library(
152 libshared_name,
153 libudev_sources,
154 include_directories : includes,
155 link_args : ['-shared',
156 '-Wl,--version-script=' + libshared_sym_path],
157 link_whole : [libshared_static,
158 libbasic,
159 libbasic_gcrypt,
160 libsystemd_static,
161 libjournal_client],
162 c_args : ['-fvisibility=default'],
163 dependencies : libshared_deps,
164 install : true,
165 install_dir : rootlibexecdir)