summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/python/SConscript
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2010-01-11 14:00:31 +0000
committerJosé Fonseca <[email protected]>2010-01-11 14:01:07 +0000
commit015a5a126b9d4a0f0fbfc0e522bb63fa5381985e (patch)
tree575001c15b5d6f9f8a0998e459e5f54afb273079 /src/gallium/state_trackers/python/SConscript
parentf2f16720274bc0c2d2f2858c9ebc24abc97e3f41 (diff)
python: Integrate with llvmpipe if possible.
Temporary. We should soon have the ability to integrate with any driver via glx extensions.
Diffstat (limited to 'src/gallium/state_trackers/python/SConscript')
-rw-r--r--src/gallium/state_trackers/python/SConscript27
1 files changed, 20 insertions, 7 deletions
diff --git a/src/gallium/state_trackers/python/SConscript b/src/gallium/state_trackers/python/SConscript
index d4fdd43688f..8498a90812e 100644
--- a/src/gallium/state_trackers/python/SConscript
+++ b/src/gallium/state_trackers/python/SConscript
@@ -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'],
)