summaryrefslogtreecommitdiff
path: root/src/gallium/winsys/drm/radeon/SConscript
blob: 2435211a327510b715002b3cc789d54170631ad2 (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
Import('*')

if 'mesa' in env['statetrackers']:

	env = drienv.Clone()

	DRIVER_SOURCES = [
		'radeon_buffer.c',
		'radeon_context.c',
		'radeon_screen.c',
		'radeon_winsys_softpipe.c',
	]

	sources = \
		COMMON_GALLIUM_SOURCES + \
		DRIVER_SOURCES

	drivers = [
		softpipe,
		r300
	]

	# TODO: write a wrapper function http://www.scons.org/wiki/WrapperFunctions
	env.SharedLibrary(
		target ='radeon_dri.so',
		source = sources,
		LIBS = drivers + mesa + auxiliaries + env['LIBS'],
	)