1 # SPDX-License-Identifier: LGPL-2.1+
3 #if 0 /// No systemd-journal in elogind ...
4 # _systemd_headers = '''
16 _systemd_headers = '''
28 # https://github.com/mesonbuild/meson/issues/1633
29 systemd_headers = files(_systemd_headers)
51 #if 0 /// elogind needs them somewhere else
54 subdir : 'elogind/systemd')
56 meson.add_install_script(meson_symlink_headers,
63 ############################################################
67 ['c', '-std=iso9899:1990'],
68 ['c', '-std=iso9899:2011']]
70 if cc.has_argument('-std=iso9899:2017')
71 opts += [['c', '-std=iso9899:2017']]
74 cxx = find_program('c++', required : false)
77 ['c++', '-std=c++98'],
78 ['c++', '-std=c++11']]
79 if cc.has_argument('-std=c++14')
80 opts += [['c++', '-std=c++14']]
82 if cc.has_argument('-std=c++17')
83 opts += [['c++', '-std=c++17']]
87 foreach header : _systemd_headers
89 name = ''.join([header, ':'] + opt)
92 args : cc.cmd_array() + ['-c', '-x'] + opt +
93 ['-Werror', '-include',
94 join_paths(meson.current_source_dir(), header)])