summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/python/SConscript
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/state_trackers/python/SConscript')
-rw-r--r--src/gallium/state_trackers/python/SConscript24
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'],
+ )