summaryrefslogtreecommitdiff
path: root/xlibs/include/X11/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'xlibs/include/X11/meson.build')
-rw-r--r--xlibs/include/X11/meson.build62
1 files changed, 62 insertions, 0 deletions
diff --git a/xlibs/include/X11/meson.build b/xlibs/include/X11/meson.build
new file mode 100644
index 000000000..556e090e4
--- /dev/null
+++ b/xlibs/include/X11/meson.build
@@ -0,0 +1,62 @@
+fd_set_maybe_headers = [ 'sys/param.h',
+ 'sys/types.h',
+ 'sys/time.h',
+ 'sys/select.h'
+]
+fd_set_headers = ''
+foreach h : fd_set_maybe_headers
+ if cc.has_header(h)
+ fd_set_headers += '#include <' + h + '>\n'
+ endif
+endforeach
+
+# generated headers. try not to make more of these, please.
+if cc.has_member('fd_set', 'fds_bits', prefix: fd_set_headers)
+ fds_bits = 'fds_bits'
+elif cc.has_member('fd_set', '__fds_bits', prefix: fd_set_headers)
+ fds_bits = '__fds_bits'
+else
+ error('Your fd_set is too weird.')
+endif
+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',
+ 'DECkeysym.h',
+ 'HPkeysym.h',
+ 'keysymdef.h',
+ 'keysym.h',
+ 'Sunkeysym.h',
+ 'Xalloca.h',
+ 'Xarch.h',
+ 'Xatom.h',
+ 'Xdefs.h',
+ 'XF86keysym.h',
+ 'Xfuncs.h',
+ 'Xfuncproto.h',
+ 'X.h',
+ 'Xmd.h',
+ 'Xosdefs.h',
+ 'Xos.h',
+ 'Xos_r.h',
+ 'Xproto.h',
+ 'Xprotostr.h',
+ 'Xthreads.h',
+ 'Xw32defs.h',
+ 'XWDFile.h',
+ 'Xwindows.h',
+ 'Xwinsock.h',
+ subdir : 'X11')
+
+subdir('dri')
+subdir('extensions')
+subdir('fonts')
+if get_option('legacy') == true
+ subdir('PM')
+endif