blob: 895eae2a21f91442e5f66075b16a82582e386995 (
plain)
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
|
subdir('util')
subdir('spirv')
subdir('wsi')
subdir('vulkan')
subdir('dxvk')
enable_dxgi = get_option('enable_dxgi')
enable_d3d9 = get_option('enable_d3d9')
enable_d3d10 = get_option('enable_d3d10')
enable_d3d11 = get_option('enable_d3d11')
enable_tests = get_option('enable_tests')
if enable_d3d10 and dxvk_native
warning('Ignoring D3D10... Not supported for DXVK native.')
enable_d3d10 = false
endif
if enable_dxgi
if not enable_d3d11
error('D3D11 is required for DXGI.')
endif
subdir('dxgi')
endif
if enable_d3d10 or enable_d3d11 or enable_tests
subdir('dxbc')
endif
if enable_d3d11
subdir('d3d11')
endif
if enable_d3d10
if not enable_d3d11
error('D3D11 is required for D3D10.')
endif
subdir('d3d10')
endif
if enable_d3d9
subdir('dxso')
subdir('d3d9')
endif
# Nothing selected
if not enable_d3d9 and not enable_d3d10 and not enable_d3d11 and not enable_tests
warning('Nothing selected to be built. Are you missing a frontend or tests?')
endif
|