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