]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/journal-remote/meson.build
meson: build systemd using meson
[thirdparty/systemd.git] / src / journal-remote / meson.build
1 # -*- mode: meson -*-
2
3 systemd_journal_upload_sources = files('''
4 journal-upload.h
5 journal-upload.c
6 journal-upload-journal.c
7 '''.split())
8
9 systemd_journal_remote_sources = files('''
10 journal-remote-parse.h
11 journal-remote-parse.c
12 journal-remote-write.h
13 journal-remote-write.c
14 journal-remote.h
15 journal-remote.c
16 microhttpd-util.h
17 microhttpd-util.c
18 '''.split())
19
20 systemd_journal_gatewayd_sources = files('''
21 journal-gatewayd.c
22 microhttpd-util.h
23 microhttpd-util.c
24 '''.split())
25
26 if conf.get('ENABLE_REMOTE', 0) == 1 and conf.get('HAVE_LIBCURL', 0) == 1
27 journal_upload_conf = configure_file(
28 input : 'journal-upload.conf.in',
29 output : 'journal-upload.conf',
30 configuration : substs)
31 install_data(journal_upload_conf,
32 install_dir : pkgsysconfdir)
33 endif
34
35 if conf.get('ENABLE_REMOTE', 0) == 1 and conf.get('HAVE_MICROHTTPD', 0) == 1
36 journal_remote_conf = configure_file(
37 input : 'journal-remote.conf.in',
38 output : 'journal-remote.conf',
39 configuration : substs)
40 install_data(journal_remote_conf,
41 install_dir : pkgsysconfdir)
42 endif
43
44 install_data('browse.html',
45 install_dir : pkgdatadir + '/gatewayd')