summaryrefslogtreecommitdiffstats
path: root/src/gallium/targets/dri-swrast/SConscript
diff options
context:
space:
mode:
authorJakob Bornecrantz <[email protected]>2010-03-26 14:45:36 +0100
committerJakob Bornecrantz <[email protected]>2010-03-26 14:48:36 +0100
commit7f91f2efb5b92a9ad8506c54643142f40f286d5c (patch)
treef7c6357b4a962b092147d1e8db4d87373d12636b /src/gallium/targets/dri-swrast/SConscript
parent711529153c797b4169fd5bbba79b370a2f38a0e9 (diff)
swrastg: Build with scons
Diffstat (limited to 'src/gallium/targets/dri-swrast/SConscript')
-rw-r--r--src/gallium/targets/dri-swrast/SConscript32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/gallium/targets/dri-swrast/SConscript b/src/gallium/targets/dri-swrast/SConscript
new file mode 100644
index 00000000000..e9f742c43ce
--- /dev/null
+++ b/src/gallium/targets/dri-swrast/SConscript
@@ -0,0 +1,32 @@
+Import('*')
+
+if not 'softpipe' in env['drivers']:
+ print 'warning: softpipe driver not built skipping swrastg_dri.so'
+ Return()
+
+env = drienv.Clone()
+
+env.Append(CPPPATH = [
+ '#/src/gallium/winsys/sw/dri',
+])
+
+env.Prepend(LIBS = [
+ st_drisw,
+ ws_dri,
+ softpipe,
+ trace,
+ mesa,
+ glsl,
+ gallium,
+ COMMON_DRI_SW_OBJECTS
+])
+
+swrastg_sources = [
+ 'swrast_drm_api.c'
+]
+
+env.LoadableModule(
+ target ='swrastg_dri.so',
+ source = swrastg_sources,
+ SHLIBPREFIX = '',
+)