summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/python/SConscript
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2010-03-10 10:34:29 +0000
committerJosé Fonseca <[email protected]>2010-03-10 10:34:29 +0000
commit601bfb5951ae303b54b4dd8a50bf0558017bf549 (patch)
treebb19d2d312c0cd71b28b7a2f5ef4ef844e81525c /src/gallium/state_trackers/python/SConscript
parent5235c5aac7c3a2e4af41cb70864245cc254fb797 (diff)
python: Fix up state tracker for sw api.
Diffstat (limited to 'src/gallium/state_trackers/python/SConscript')
-rw-r--r--src/gallium/state_trackers/python/SConscript29
1 files changed, 12 insertions, 17 deletions
diff --git a/src/gallium/state_trackers/python/SConscript b/src/gallium/state_trackers/python/SConscript
index 527e065cd91..8010f122b73 100644
--- a/src/gallium/state_trackers/python/SConscript
+++ b/src/gallium/state_trackers/python/SConscript
@@ -33,31 +33,26 @@ if 'python' in env['statetrackers']:
'gallium.i',
'st_device.c',
'st_sample.c',
+ 'st_hardpipe_winsys.c',
+ 'st_softpipe_winsys.c',
]
- drivers = [
- trace
- ]
+ env.Prepend(LIBS = [
+ trace,
+ gallium
+ ])
if 'llvmpipe' in env['drivers']:
+ env.Append(CPPDEFINES = ['HAVE_LLVMPIPE'])
env.Tool('llvm')
- sources += ['st_llvmpipe_winsys.c']
- drivers += [llvmpipe]
- else:
- sources += ['st_softpipe_winsys.c']
- drivers += [softpipe]
-
- pyst = env.ConvenienceLibrary(
- target = 'pyst',
- source = sources,
- )
+ env.Prepend(LIBS = [llvmpipe])
+ if 'softpipe' in env['drivers']:
+ env.Append(CPPDEFINES = ['HAVE_SOFTPIPE'])
+ env.Prepend(LIBS = [softpipe])
env['no_import_lib'] = 1
env.SharedLibrary(
target = '_gallium',
- source = [
- 'st_hardpipe_winsys.c',
- ],
- LIBS = [pyst] + drivers + gallium + env['LIBS'],
+ source = sources,
)