summaryrefslogtreecommitdiff
path: root/include/X11
diff options
context:
space:
mode:
Diffstat (limited to 'include/X11')
-rw-r--r--include/X11/meson.build16
1 files changed, 7 insertions, 9 deletions
diff --git a/include/X11/meson.build b/include/X11/meson.build
index a4b022e..556e090 100644
--- a/include/X11/meson.build
+++ b/include/X11/meson.build
@@ -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',