python: Integrate with llvmpipe if possible.

Temporary. We should soon have the ability to integrate with any driver
via glx extensions.
This commit is contained in:
José Fonseca
2010-01-11 14:00:31 +00:00
parent f2f1672027
commit 015a5a126b
2 changed files with 168 additions and 7 deletions
+20 -7
View File
@@ -28,14 +28,27 @@ if 'python' in env['statetrackers']:
'X11',
])
sources = [
'gallium.i',
'st_device.c',
'st_sample.c',
]
drivers = [
trace
]
if 'llvmpipe' in env['drivers']:
env.Tool('llvm')
sources += ['st_llvmpipe_winsys.c']
drivers += [llvmpipe]
else:
sources += ['st_softpipe_winsys.c']
drivers += [softpipe]
pyst = env.ConvenienceLibrary(
target = 'pyst',
source = [
'gallium.i',
'st_device.c',
'st_sample.c',
'st_softpipe_winsys.c',
],
source = sources,
)
env['no_import_lib'] = 1
@@ -45,5 +58,5 @@ if 'python' in env['statetrackers']:
source = [
'st_hardpipe_winsys.c',
],
LIBS = [pyst, softpipe, trace] + gallium + env['LIBS'],
LIBS = [pyst] + drivers + gallium + env['LIBS'],
)