meson.build: use built-in variable substitution handling instead of sed

Generated outputs are identical

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2021-02-25 10:04:58 +10:00
parent 242578ac6e
commit a657dd0b45
2 changed files with 7 additions and 10 deletions

View file

@ -18,15 +18,13 @@ elif cc.has_member('fd_set', '__fds_bits', prefix: fd_set_headers)
else
error('Your fd_set is too weird.')
endif
custom_target('Xpoll.h',
capture : true,
install : true,
install_dir : get_option('includedir') + '/X11',
input : 'Xpoll.h.in',
output : 'Xpoll.h',
command : [ sed,
's/@USE_FDS_BITS@/' + fds_bits + '/g',
'@INPUT@'])
xpoll_config = configuration_data()
xpoll_config.set('USE_FDS_BITS', fds_bits)
configure_file(input : 'Xpoll.h.in',
output : 'Xpoll.h',
install : true,
install_dir : get_option('includedir') + '/X11',
configuration: xpoll_config)
install_headers(
'ap_keysym.h',

View file

@ -20,7 +20,6 @@
project('xorgproto', 'c', license : 'MIT', version : '2021.3')
cc = meson.get_compiler('c')
sed = find_program('sed')
pcs = [
'applewmproto',