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