1 # SPDX-License-Identifier: LGPL-2.1+
3 # Copyright 2017 Zbigniew Jędrzejewski-Szmek
5 # elogind is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU Lesser General Public License as published by
7 # the Free Software Foundation; either version 2.1 of the License, or
8 # (at your option) any later version.
10 # elogind is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 # Lesser General Public License for more details.
15 # You should have received a copy of the GNU Lesser General Public License
16 # along with elogind; If not, see <http://www.gnu.org/licenses/>.
18 #if 0 /// No systemd-journal in elogind ...
19 # _systemd_headers = '''
31 _systemd_headers = '''
43 # https://github.com/mesonbuild/meson/issues/1633
44 systemd_headers = files(_systemd_headers)
66 #if 0 /// elogind needs them somewhere else
69 subdir : 'elogind/systemd')
71 meson.add_install_script(meson_symlink_headers,
78 ############################################################
82 ['c', '-std=iso9899:1990']]
84 cxx = find_program('c++', required : false)
89 foreach header : _systemd_headers
91 name = ''.join([header, ':'] + opt)
94 args : cc.cmd_array() + ['-c', '-x'] + opt +
95 ['-Werror', '-include',
96 join_paths(meson.current_source_dir(), header)])