File: meson.build

package info (click to toggle)
intel-gpu-tools 2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 63,368 kB
  • sloc: xml: 781,458; ansic: 360,567; python: 8,336; yacc: 2,781; perl: 1,196; sh: 1,177; lex: 487; asm: 227; lisp: 35; makefile: 30
file content (80 lines) | stat: -rw-r--r-- 2,007 bytes parent folder | download
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80

amdgpu_progs = []
amdgpu_deps = test_deps
if libdrm_amdgpu.found()
	amdgpu_progs += [ 'amd_abm',
			  'amd_assr',
			  'amd_basic',
			  'amd_basic_ex',
			  'amd_basic_multi_gpu',
			  'amd_bo',
			  'amd_bypass',
			  'amd_color',
			  'amd_cp_dma_misc',
			  'amd_cs_nop',
			  'amd_deadlock',
			  'amd_dp_dsc',
			  'amd_freesync_video_mode',
			  'amd_fuzzing',
			  'amd_hotplug',
			  'amd_gang_cs' ,
			  'amd_ilr',
			  'amd_info',
			  'amd_jpeg_dec',
			  'amd_jpeg_queue',
			  'amd_link_settings',
			  'amd_max_bpc',
			  'amd_mem_leak',
			  'amd_mode_switch',
			  'amd_module_load',
			  'amd_multidisplay_modeset',
			  'amd_pci_unplug',
			  'amd_plane',
			  'amd_prime',
			  'amd_psr',
			  'amd_ras',
			  'amd_replay',
			  'amd_security',
			  'amd_uvd_dec',
			  'amd_uvd_enc',
			  'amd_vce_enc',
			  'amd_vcn',
			  'amd_vcn_queue',
			  'amd_vm',
			  'amd_vrr_range',
			  'amd_mall',
			  'amd_odm',
			  'amd_subvp',
			  'amd_vpe',
			]
	if libdrm_amdgpu.version().version_compare('> 2.4.97')
		amdgpu_progs +=[ 'amd_syncobj', ]
	else
		warning('libdrm <= 2.4.97 found, amd_syncobj test not applicable')
	endif
	if libdrm_amdgpu.version().version_compare('> 2.4.99')
		amdgpu_progs +=[ 'amd_dispatch',]
	else
		warning('libdrm <= 2.4.99 found, amdgpu_cs_query_reset_state2 not applicable')
	endif
	if libdrm_amdgpu.version().version_compare('> 2.4.109')
		amdgpu_progs +=[ 'amd_pstate', ]
	else
		warning('libdrm <= 2.4.109 found, amd_pstate test not applicable')
	endif
	if libdrm_amdgpu.version().version_compare('> 2.4.104')
		amdgpu_progs +=[ 'amd_queue_reset',]
	else
		warning('libdrm <= 2.4.104 found, amd_queue_reset test not applicable')
	endif
	amdgpu_deps += libdrm_amdgpu
endif

foreach prog : amdgpu_progs
	test_executables += executable(prog, prog + '.c',
				       dependencies : amdgpu_deps,
				       install_dir : amdgpudir,
				       install_rpath : amdgpudir_rpathdir,
				       install : true)
	test_list += join_paths('amdgpu', prog)
endforeach