meson.build revision 5395ea76
1fd_set_maybe_headers = [ 'sys/param.h',
2                         'sys/types.h',
3                         'sys/time.h',
4                         'sys/select.h'
5]
6fd_set_headers = ''
7foreach h : fd_set_maybe_headers
8    if cc.has_header(h)
9        fd_set_headers += '#include <' + h + '>\n'
10    endif
11endforeach
12
13# generated headers. try not to make more of these, please.
14if cc.has_member('fd_set', 'fds_bits', prefix: fd_set_headers)
15    fds_bits = 'fds_bits'
16elif cc.has_member('fd_set', '__fds_bits', prefix: fd_set_headers)
17    fds_bits = '__fds_bits'
18else
19    error('Your fd_set is too weird.')
20endif
21xpoll_config = configuration_data()
22xpoll_config.set('USE_FDS_BITS', fds_bits)
23configure_file(input : 'Xpoll.h.in',
24               output : 'Xpoll.h',
25               install : true,
26               install_dir : get_option('includedir') + '/X11',
27               configuration: xpoll_config)
28
29install_headers(
30    'ap_keysym.h',
31    'DECkeysym.h',
32    'HPkeysym.h',
33    'keysymdef.h',
34    'keysym.h',
35    'Sunkeysym.h',
36    'Xalloca.h',
37    'Xarch.h',
38    'Xatom.h',
39    'Xdefs.h',
40    'XF86keysym.h',
41    'Xfuncs.h',
42    'Xfuncproto.h',
43    'X.h',
44    'Xmd.h',
45    'Xosdefs.h',
46    'Xos.h',
47    'Xos_r.h',
48    'Xproto.h',
49    'Xprotostr.h',
50    'Xthreads.h',
51    'Xw32defs.h',
52    'XWDFile.h',
53    'Xwindows.h',
54    'Xwinsock.h',
55    subdir : 'X11')
56
57subdir('dri')
58subdir('extensions')
59subdir('fonts')
60if get_option('legacy') == true
61    subdir('PM')
62endif
63