diff options
| author | maxim nikonov <maxim.nikonov@hqo.co> | 2026-02-06 13:18:21 +0500 |
|---|---|---|
| committer | maxim nikonov <maxim.nikonov@hqo.co> | 2026-02-06 13:18:21 +0500 |
| commit | 260dc2c8828c70b0e147ea394f38e9ee6dc69ee3 (patch) | |
| tree | ba6e424280a50b70b0a1819368674904556fa459 /xlibs/include/X11/meson.build | |
| parent | 51cf34eb8fdef936328c565276615880997e28bb (diff) | |
wip
Diffstat (limited to 'xlibs/include/X11/meson.build')
| -rw-r--r-- | xlibs/include/X11/meson.build | 62 |
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 |
