diff options
author | José Fonseca <[email protected]> | 2008-07-13 23:36:59 +0900 |
---|---|---|
committer | José Fonseca <[email protected]> | 2008-07-13 23:37:40 +0900 |
commit | 6410e94b966148dde81b5121e53a250d7b530d91 (patch) | |
tree | f31e0c0f9a75419546a8bf7d28ab309da3eeb02c /src/gallium/state_trackers/python/SConscript | |
parent | 36dd89c8a7f2a911e8f7f18d1edcaf982a75a438 (diff) |
python: New state tracker which exposes the pipe driver to python scripts.
Still under development. Just barely works.
Diffstat (limited to 'src/gallium/state_trackers/python/SConscript')
-rw-r--r-- | src/gallium/state_trackers/python/SConscript | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/python/SConscript b/src/gallium/state_trackers/python/SConscript new file mode 100644 index 00000000000..57a3fb20759 --- /dev/null +++ b/src/gallium/state_trackers/python/SConscript @@ -0,0 +1,24 @@ +Import('*') + +if 'python' in env['statetrackers']: + + env = env.Clone() + + env.Append(CPPPATH = '.') + + env.Tool('swig') + env.Append(SWIGPATH = ['#src/gallium/include', '#src/gallium/include/pipe']) + env.Append(SWIGFLAGS = ['-python', '-keyword']) + + env.ParseConfig('python-config --cflags --ldflags --libs') + + env.SharedLibrary( + target = '_gallium', + source = [ + 'gallium.i', + 'st_device.c', + 'st_softpipe_winsys.c', + ], + SHLIBPREFIX = '', + LIBS = softpipe + auxiliaries + env['LIBS'], + ) |