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