]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/shared/meson.build
pager: move pager.[ch] src/shared/ → src/basic/
[thirdparty/systemd.git] / src / shared / meson.build
1 # SPDX-License-Identifier: LGPL-2.1+
2 #
3 # Copyright 2017 Zbigniew Jędrzejewski-Szmek
4
5 shared_sources = '''
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
17 bootspec.c
18 bootspec.h
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
43 firewall-util.h
44 fstab-util.c
45 fstab-util.h
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
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
93 tomoyo-util.c
94 tomoyo-util.h
95 udev-util.h
96 udev-util.c
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
106 wireguard-netlink.h
107 '''.split()
108
109 test_tables_h = files('test-tables.h')
110 shared_sources += [test_tables_h]
111
112 if conf.get('HAVE_ACL') == 1
113 shared_sources += ['acl-util.c']
114 endif
115
116 if conf.get('ENABLE_UTMP') == 1
117 shared_sources += ['utmp-wtmp.c']
118 endif
119
120 if conf.get('HAVE_SECCOMP') == 1
121 shared_sources += ['seccomp-util.c']
122 endif
123
124 if conf.get('HAVE_LIBIPTC') == 1
125 shared_sources += ['firewall-util.c']
126 endif
127
128 libshared_name = 'systemd-shared-@0@'.format(meson.project_version())
129
130 libshared_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
144 libshared_sym_path = '@0@/libshared.sym'.format(meson.current_source_dir())
145
146 libshared_static = static_library(
147 libshared_name,
148 shared_sources,
149 include_directories : includes,
150 dependencies : libshared_deps,
151 c_args : ['-fvisibility=default'])
152
153 libshared = shared_library(
154 libshared_name,
155 libudev_sources,
156 include_directories : includes,
157 link_args : ['-shared',
158 '-Wl,--version-script=' + libshared_sym_path],
159 link_whole : [libshared_static,
160 libbasic,
161 libbasic_gcrypt,
162 libsystemd_static,
163 libjournal_client],
164 c_args : ['-fvisibility=default'],
165 dependencies : libshared_deps,
166 install : true,
167 install_dir : rootlibexecdir)