chiark / gitweb /
Add IP address address ACL representation and parser
[elogind.git] / src / core / meson.build
1 #if 0 /// elogind has only two of the parts here in it...
2 # libcore_la_sources = '''
3 #         audit-fd.c
4 #         audit-fd.h
5 #         automount.c
6 #         automount.h
7 #         cgroup.c
8 #         cgroup.h
9 #         dbus-automount.c
10 #         dbus-automount.h
11 #         dbus-cgroup.c
12 #         dbus-cgroup.h
13 #         dbus-device.c
14 #         dbus-device.h
15 #         dbus-execute.c
16 #         dbus-execute.h
17 #         dbus-job.c
18 #         dbus-job.h
19 #         dbus-kill.c
20 #         dbus-kill.h
21 #         dbus-manager.c
22 #         dbus-manager.h
23 #         dbus-mount.c
24 #         dbus-mount.h
25 #         dbus-path.c
26 #         dbus-path.h
27 #         dbus-scope.c
28 #         dbus-scope.h
29 #         dbus-service.c
30 #         dbus-service.h
31 #         dbus-slice.c
32 #         dbus-slice.h
33 #         dbus-socket.c
34 #         dbus-socket.h
35 #         dbus-swap.c
36 #         dbus-swap.h
37 #         dbus-target.c
38 #         dbus-target.h
39 #         dbus-timer.c
40 #         dbus-timer.h
41 #         dbus-unit.c
42 #         dbus-unit.h
43 #         dbus.c
44 #         dbus.h
45 #         device.c
46 #         device.h
47 #         dynamic-user.c
48 #         dynamic-user.h
49 #         emergency-action.c
50 #         emergency-action.h
51 #         execute.c
52 #         execute.h
53 #         hostname-setup.c
54 #         hostname-setup.h
55 #         ima-setup.c
56 #         ima-setup.h
57 #         ip-address-access.c
58 #         ip-address-access.h
59 #         job.c
60 #         job.h
61 #         kill.c
62 #         kill.h
63 #         killall.c
64 #         killall.h
65 #         kmod-setup.c
66 #         kmod-setup.h
67 #         load-dropin.c
68 #         load-dropin.h
69 #         load-fragment.c
70 #         load-fragment.h
71 #         locale-setup.c
72 #         locale-setup.h
73 #         loopback-setup.c
74 #         loopback-setup.h
75 #         machine-id-setup.c
76 #         machine-id-setup.h
77 #         manager.c
78 #         manager.h
79 #         mount-setup.c
80 #         mount-setup.h
81 #         mount.c
82 #         mount.h
83 #         namespace.c
84 #         namespace.h
85 #         path.c
86 #         path.h
87 #         scope.c
88 #         scope.h
89 #         selinux-access.c
90 #         selinux-access.h
91 #         selinux-setup.c
92 #         selinux-setup.h
93 #         service.c
94 #         service.h
95 #         show-status.c
96 #         show-status.h
97 #         slice.c
98 #         slice.h
99 #         smack-setup.c
100 #         smack-setup.h
101 #         socket.c
102 #         socket.h
103 #         swap.c
104 #         swap.h
105 #         target.c
106 #         target.h
107 #         timer.c
108 #         timer.h
109 #         transaction.c
110 #         transaction.h
111 #         unit-printf.c
112 #         unit-printf.h
113 #         unit.c
114 #         unit.h
115 # '''.split()
116 #else
117 libcore_la_sources = files('''
118         cgroup.c
119         cgroup.h
120         mount-setup.c
121         mount-setup.h
122 '''.split())
123 #endif // 0
124
125 #if 0 /// The rest is not needed by elogind, we use the sources directly in login
126 # load_fragment_gperf_gperf = custom_target(
127 #         'load-fragment-gperf.gperf',
128 #         input : 'load-fragment-gperf.gperf.m4',
129 #         output: 'load-fragment-gperf.gperf',
130 #         command : [m4, '-P'] + m4_defines + ['@INPUT@'],
131 #         capture : true)
132
133 # load_fragment_gperf_c = custom_target(
134 #         'load-fragment-gperf.c',
135 #         input : load_fragment_gperf_gperf,
136 #         output : 'load-fragment-gperf.c',
137 #         command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
138
139 # awkscript = 'load-fragment-gperf-nulstr.awk'
140 # load_fragment_gperf_nulstr_c = custom_target(
141 #         'load-fragment-gperf-nulstr.c',
142 #         input : [awkscript, load_fragment_gperf_gperf],
143 #         output : 'load-fragment-gperf-nulstr.c',
144 #         command : [awk, '-f', '@INPUT0@', '@INPUT1@'],
145 #         capture : true)
146 #
147 # libcore = static_library(
148 #         'core',
149 #         libcore_la_sources,
150 #         load_fragment_gperf_c,
151 #         load_fragment_gperf_nulstr_c,
152 #         include_directories : includes,
153 #         link_with : [libshared_static],
154 #         dependencies : [threads,
155 #                         libseccomp,
156 #                         libpam,
157 #                         libaudit,
158 #                         libkmod,
159 #                         libapparmor,
160 #                         libmount])
161 #
162 # systemd_sources = files('main.c')
163
164 # systemd_shutdown_sources = files('''
165 #         shutdown.c
166 #         umount.c
167 #         umount.h
168 #         mount-setup.c
169 #         mount-setup.h
170 #         killall.c
171 #         killall.h
172 # '''.split())
173
174 # in_files = [['macros.systemd',   rpmmacrosdir],
175 #             ['triggers.systemd', ''],
176 #             ['systemd.pc',       pkgconfigdatadir]]
177
178 # foreach item : in_files
179 #         file = item[0]
180 #         dir = item[1]
181
182 #         # If 'no', disable generation completely.
183 #         # If '', generate, but do not install.
184 #         if dir != 'no'
185 #                 gen = configure_file(
186 #                         input : file + '.in',
187 #                         output : file,
188 #                         configuration : substs)
189 #                 if dir != ''
190 #                         install_data(gen,
191 #                                      install_dir : dir)
192 #                 endif
193 #         endif
194 # endforeach
195
196 # install_data('org.freedesktop.systemd1.conf',
197 #              install_dir : dbuspolicydir)
198 # install_data('org.freedesktop.systemd1.service',
199 #              install_dir : dbussystemservicedir)
200
201 # policy_in = configure_file(
202 #         input : 'org.freedesktop.systemd1.policy.in.in',
203 #         output : 'org.freedesktop.systemd1.policy.in',
204 #         configuration : substs)
205
206 # custom_target(
207 #         'org.freedesktop.systemd1.policy',
208 #         input : policy_in,
209 #         output : 'org.freedesktop.systemd1.policy',
210 #         command : intltool_command,
211 #         install : install_polkit,
212 #         install_dir : polkitpolicydir)
213 #endif // 0
214
215 # TODO: this might work with meson from git, see
216 # https://github.com/mesonbuild/meson/issues/1441#issuecomment-283585493
217 #
218 # i18n.merge_file(
219 #   'org.freedesktop.systemd1.policy',
220 #   po_dir : po_dir,
221 #   input : policy_in,
222 #   output : 'org.freedesktop.systemd1.policy',
223 #   install : install_polkit,
224 #   install_dir : polkitpolicydir)
225
226 #if 0 /// totally UNNEEDED in elogind
227 # install_data('system.conf',
228 #              'user.conf',
229 #              install_dir : pkgsysconfdir)
230
231 # meson.add_install_script('sh', '-c', mkdir_p.format(systemshutdowndir))
232 # meson.add_install_script('sh', '-c', mkdir_p.format(systemsleepdir))
233 # meson.add_install_script('sh', '-c', mkdir_p.format(systemgeneratordir))
234 # meson.add_install_script('sh', '-c', mkdir_p.format(usergeneratordir))
235
236 # meson.add_install_script('sh', '-c',
237 #                          mkdir_p.format(join_paths(pkgsysconfdir, 'system/multi-user.target.wants')))
238 # meson.add_install_script('sh', '-c',
239 #                          mkdir_p.format(join_paths(pkgsysconfdir, 'system/getty.target.wants')))
240 # meson.add_install_script('sh', '-c',
241 #                          mkdir_p.format(join_paths(pkgsysconfdir, 'user')))
242 # meson.add_install_script('sh', '-c',
243 #                          mkdir_p.format(join_paths(sysconfdir, 'xdg/systemd')))
244 #endif // 0