meson.build revision ed6184df
1srcs_xorg_int10 = [
2    'vbe.c',
3    'vbeModes.c',
4    'helper_exec.c',
5    'helper_mem.c',
6    'xf86int10.c',
7    'xf86int10module.c',
8]
9
10int10_c_args = [xorg_c_args]
11int10_link = []
12
13if host_machine.cpu() == 'i386' or host_machine.cpu() == 'x86_64'
14    int10_c_args += '-D_PC'
15endif
16
17if int10 == 'stub'
18    srcs_xorg_int10 += 'stub.c'
19    int10_c_args += '-D_VM86_LINUX'
20endif
21
22if int10 == 'x86emu'
23    srcs_xorg_int10 += [
24        'generic.c',
25        'xf86x86emu.c',
26        'x86emu.c',
27    ]
28    int10_c_args += '-D_X86EMU'
29    int10_c_args += '-DNO_SYS_HEADERS'
30
31    # Silence some useless warnings from x86emu
32    if cc.has_argument('-Wno-format-nonliteral')
33        int10_c_args += '-Wno-format-nonliteral'
34    endif
35
36    int10_link += xorg_x86emu
37endif
38
39if int10 == 'vm86'
40    srcs_xorg_int10 += [
41        'vm86/linux_vm86.c',
42        'linux.c',
43    ]
44    int10_c_args += '-D_VM86_LINUX'
45endif
46
47xorg_int10 = shared_module('int10',
48    srcs_xorg_int10,
49    include_directories: [
50        inc,
51        xorg_inc,
52        include_directories('../x86emu')
53    ],
54    dependencies: common_dep,
55    link_with: int10_link,
56    c_args: int10_c_args,
57
58    install: true,
59    install_dir: module_dir,
60)
61
62install_data('xf86int10.h', install_dir: xorgsdkdir)
63install_data('vbe.h', install_dir: xorgsdkdir)
64install_data('vbeModes.h', install_dir: xorgsdkdir)
65