aboutsummaryrefslogtreecommitdiffstats
path: root/src/egl/drivers/dri2/SConscript
blob: 5b03107cbb31a6050ff40d9bd18314324a39e6f0 (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
Import('*')

env = env.Clone()

env.Append(CPPDEFINES = [
	'DEFAULT_DRIVER_DIR=\\"\\"'
])

env.Append(CPPPATH = [
	'#/include',
	'#/src/egl/main',
	'#/src/loader',
])

sources = [
	'egl_dri2.c',
]

if env['x11']:
	sources.append('platform_x11.c')
	env.Append(CPPDEFINES = [
		'HAVE_X11_PLATFORM',
	])
	#env.Append(CPPPATH = [
	#	'XCB_DRI2_CFLAGS',
	#])

if env['drm']:
	env.PkgUseModules('DRM')

env.Prepend(LIBS = [
	libloader,
])

egl_dri2 = env.ConvenienceLibrary(
	target = 'egl_dri2',
	source = sources,
)

Export('egl_dri2')