summaryrefslogtreecommitdiffstats
path: root/src/gallium/targets/SConscript.dri
blob: 621924058079d62856f590fe6a8e2afdd57c8069 (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
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
###################################
# SConcscript file for dri targets

Import('*')

drienv = env.Clone()

drienv.Replace(CPPPATH = [
	'#src/mesa/drivers/dri/common',
	'#include',
	'#include/GL/internal',
	'#src/gallium/include',
	'#src/gallium/auxiliary',
	'#src/gallium/drivers',
	'#src/mesa',
	'#src/mesa/main',
	'#src/mesa/glapi',
	'#src/mesa/math',
	'#src/mesa/transform',
	'#src/mesa/shader',
	'#src/mesa/swrast',
	'#src/mesa/swrast_setup',
	'#src/egl/main',
	'#src/egl/drivers/dri',
])

drienv.ParseConfig('pkg-config --cflags --libs libdrm')

dri_common_utils = drienv.SharedObject(
	target = 'utils.o',
	source = '#src/mesa/drivers/dri/common/utils.c'
)

dri_common_xmlconfig = drienv.SharedObject(
	target = 'xmlconfig.o',
	source = '#src/mesa/drivers/dri/common/xmlconfig.c'
)

dri_common_vblank = drienv.SharedObject(
	target = 'vblank.o',
	source = '#src/mesa/drivers/dri/common/vblank.c'
)

dri_common_dri_util = drienv.SharedObject(
	target = 'dri_util.o',
	source = '#src/mesa/drivers/dri/common/dri_util.c'
)

COMMON_DRI_DRM_OBJECTS = [
	dri_common_utils,
	dri_common_xmlconfig,
	dri_common_vblank,
	dri_common_dri_util,
]

Export([
	'drienv',
	'COMMON_DRI_DRM_OBJECTS',
])

if 'vmware' in env['winsys']:
	SConscript([
		'dri-vmwgfx/SConscript',
	])

if 'i915' in env['winsys']:
	SConscript([
		'dri-i915/SConscript',
	])

if 'i965' in env['winsys']:
	SConscript([
		'dri-i965/SConscript',
	])

if 'radeon' in env['winsys']:
	SConscript([
		'dri-radeong/SConscript',
	])