chiark / gitweb /
Prep v235: Add missing includes and dependencies.
[elogind.git] / src / shared / meson.build
1 #if 0 /// elogind has a much shorter list
2 # shared_sources = '''
3 #         acl-util.h
4 #         acpi-fpdt.c
5 #         acpi-fpdt.h
6 #         apparmor-util.c
7 #         apparmor-util.h
8 #         ask-password-api.c
9 #         ask-password-api.h
10 #         base-filesystem.c
11 #         base-filesystem.h
12 #         boot-timestamps.c
13 #         boot-timestamps.h
14 #         bus-unit-util.c
15 #         bus-unit-util.h
16 #         bus-util.c
17 #         bus-util.h
18 #         cgroup-show.c
19 #         cgroup-show.h
20 #         clean-ipc.c
21 #         clean-ipc.h
22 #         condition.c
23 #         condition.h
24 #         conf-parser.c
25 #         conf-parser.h
26 #         dev-setup.c
27 #         dev-setup.h
28 #         dissect-image.c
29 #         dissect-image.h
30 #         dns-domain.c
31 #         dns-domain.h
32 #         dropin.c
33 #         dropin.h
34 #         efivars.c
35 #         efivars.h
36 #         fdset.c
37 #         fdset.h
38 #         firewall-util.h
39 #         fstab-util.c
40 #         fstab-util.h
41 #         gcrypt-util.c
42 #         gcrypt-util.h
43 #         generator.c
44 #         generator.h
45 #         gpt.h
46 #         ima-util.c
47 #         ima-util.h
48 #         import-util.c
49 #         import-util.h
50 #         initreq.h
51 #         install.c
52 #         install.h
53 #         install-printf.c
54 #         install-printf.h
55 #         journal-util.c
56 #         journal-util.h
57 #         logs-show.c
58 #         logs-show.h
59 #         loop-util.c
60 #         loop-util.h
61 #         machine-image.c
62 #         machine-image.h
63 #         machine-pool.c
64 #         machine-pool.h
65 #         nsflags.c
66 #         nsflags.h
67 #         output-mode.c
68 #         output-mode.h
69 #         pager.c
70 #         pager.h
71 #         path-lookup.c
72 #         path-lookup.h
73 #         ptyfwd.c
74 #         ptyfwd.h
75 #         resolve-util.c
76 #         resolve-util.h
77 #         seccomp-util.h
78 #         sleep-config.c
79 #         sleep-config.h
80 #         spawn-ask-password-agent.c
81 #         spawn-ask-password-agent.h
82 #         spawn-polkit-agent.c
83 #         spawn-polkit-agent.h
84 #         specifier.c
85 #         specifier.h
86 #         switch-root.c
87 #         switch-root.h
88 #         sysctl-util.c
89 #         sysctl-util.h
90 #         tests.c
91 #         tests.h
92 #         udev-util.h
93 #         udev-util.c
94 #         uid-range.c
95 #         uid-range.h
96 #         utmp-wtmp.h
97 #         vlan-util.c
98 #         vlan-util.h
99 #         volatile-util.c
100 #         volatile-util.h
101 #         watchdog.c
102 #         watchdog.h
103 # '''.split()
104 #else
105 shared_sources = '''
106         bus-util.c
107         bus-util.h
108         clean-ipc.c
109         clean-ipc.h
110         conf-parser.c
111         conf-parser.h
112         musl_missing.c
113         musl_missing.h
114         nsflags.c
115         nsflags.h
116         pager.c
117         pager.h
118         sleep-config.c
119         sleep-config.h
120         spawn-polkit-agent.c
121         spawn-polkit-agent.h
122         udev-util.c
123         udev-util.h
124 '''.split()
125 #endif // 0
126
127 test_tables_h = files('test-tables.h')
128 shared_sources += [test_tables_h]
129
130 if conf.get('HAVE_ACL', false)
131         shared_sources += ['acl-util.c']
132 endif
133
134 if conf.get('HAVE_UTMP', false)
135         shared_sources += ['utmp-wtmp.c']
136 endif
137
138 #if 0 /// UNNEEDED by elogind
139 # if conf.get('HAVE_SECCOMP', false)
140 #         shared_sources += ['seccomp-util.c']
141 # endif
142 #
143 # if conf.get('HAVE_LIBIPTC', false)
144 #         shared_sources += ['firewall-util.c']
145 # endif
146 #endif // 0
147
148 libshared_name = 'elogind-shared-@0@'.format(meson.project_version())
149
150 #if 0 /// elogind doesn't need all this
151 # libshared_deps = [threads,
152 #                   librt,
153 #                   libcap,
154 #                   libacl,
155 #                   libcryptsetup,
156 #                   libgcrypt,
157 #                   libiptc,
158 #                   libseccomp,
159 #                   libselinux,
160 #                   libidn,
161 #                   libxz,
162 #                   liblz4,
163 #                   libblkid]
164 # #else
165 libshared_deps = [threads,
166                   libcap,
167                   libacl,
168                   libselinux,
169                   libudev]
170 #endif // 0
171
172 libshared = shared_library(
173         libshared_name,
174         shared_sources,
175         basic_sources,
176 #if 0 /// UNNEEDED by elogind
177 #         journal_internal_sources,
178 #         libsystemd_internal_sources,
179 #         libudev_sources,
180 #else
181         libelogind_internal_sources,
182 #endif // 0
183         include_directories : includes,
184         link_args : ['-shared'],
185         c_args : ['-fvisibility=default'],
186         dependencies : libshared_deps,
187 #if 0 /// UNNEEDED by elogind
188 #         install : true,
189 #         install_dir : rootlibexecdir)
190 #else
191         install : false)
192 #endif // 0
193
194 libshared_static = static_library(
195         libshared_name,
196         shared_sources,
197         basic_sources,
198 #if 1 /// need elogind internal library sources
199         libelogind_internal_sources,
200 #endif // 1
201         include_directories : includes,
202         dependencies : libshared_deps)