1srcs = [
2    'Args.c',
3    'Color.c',
4    'Cursor.c',
5    'Display.c',
6    'Events.c',
7    'Font.c',
8    'GC.c',
9    'GCOps.c',
10    'Handlers.c',
11    'Init.c',
12    'Keyboard.c',
13    'Pixmap.c',
14    'Pointer.c',
15    'Screen.c',
16    'Visual.c',
17    'Window.c',
18    '../../mi/miinitext.c',
19    '../../mi/miinitext.h',
20]
21
22executable(
23    'Xnest',
24    srcs,
25    include_directories: inc,
26    dependencies: [
27        common_dep,
28        xnest_dep,
29    ],
30    link_with: [
31        libxserver_main,
32        libxserver,
33        libxserver_xi_stubs,
34        libxserver_xkb_stubs,
35    ],
36    c_args: '-DHAVE_XNEST_CONFIG_H',
37    install: true,
38)
39
40install_man(configure_file(
41    input: 'man/Xnest.man',
42    output: 'Xnest.1',
43    configuration: manpage_config,
44))
45