summaryrefslogtreecommitdiffstats
path: root/src
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
parent711529153c797b4169fd5bbba79b370a2f38a0e9 (diff)
swrastg: Build with scons
Diffstat (limited to 'src')
-rw-r--r--src/gallium/state_trackers/dri/SConscript1
-rw-r--r--src/gallium/state_trackers/dri/sw/SConscript29
-rw-r--r--src/gallium/targets/SConscript.dri17
-rw-r--r--src/gallium/targets/dri-swrast/SConscript32
-rw-r--r--src/gallium/winsys/SConscript4
-rw-r--r--src/gallium/winsys/sw/dri/SConscript23
6 files changed, 106 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/dri/SConscript b/src/gallium/state_trackers/dri/SConscript
index b4a276cf29d..aba60fb8c5b 100644
--- a/src/gallium/state_trackers/dri/SConscript
+++ b/src/gallium/state_trackers/dri/SConscript
@@ -1,5 +1,6 @@
Import('*')
SConscript([
+ 'sw/SConscript',
'drm/SConscript',
])
diff --git a/src/gallium/state_trackers/dri/sw/SConscript b/src/gallium/state_trackers/dri/sw/SConscript
new file mode 100644
index 00000000000..0614b8f521f
--- /dev/null
+++ b/src/gallium/state_trackers/dri/sw/SConscript
@@ -0,0 +1,29 @@
+#######################################################################
+# SConscript for dri state_tracker
+
+Import('*')
+
+if env['dri']:
+
+ env = env.Clone()
+
+ env.Append(CPPPATH = [
+ '#/src/mesa',
+ '#/src/gallium/state_trackers/dri/common',
+ '#/src/mesa/drivers/dri/common',
+ ])
+
+ env.Append(CPPDEFINES = [('__NOT_HAVE_DRM_H', '1')])
+
+ st_drisw = env.ConvenienceLibrary(
+ target = 'st_drisw',
+ source = [ 'dri_context.c',
+ 'dri_drawable.c',
+ 'dri_extensions.c',
+ 'dri_screen.c',
+ 'dri_st_api.c',
+ 'dri1_helper.c',
+ 'drisw.c',
+ ]
+ )
+ Export('st_drisw')
diff --git a/src/gallium/targets/SConscript.dri b/src/gallium/targets/SConscript.dri
index 62192405807..210af13720a 100644
--- a/src/gallium/targets/SConscript.dri
+++ b/src/gallium/targets/SConscript.dri
@@ -46,6 +46,18 @@ dri_common_dri_util = drienv.SharedObject(
source = '#src/mesa/drivers/dri/common/dri_util.c'
)
+dri_common_drisw_util = drienv.SharedObject(
+ target = 'drisw_util.o',
+ source = '#src/mesa/drivers/dri/common/drisw_util.c'
+)
+
+
+COMMON_DRI_SW_OBJECTS = [
+ dri_common_utils,
+ dri_common_xmlconfig,
+ dri_common_drisw_util,
+]
+
COMMON_DRI_DRM_OBJECTS = [
dri_common_utils,
dri_common_xmlconfig,
@@ -55,9 +67,14 @@ COMMON_DRI_DRM_OBJECTS = [
Export([
'drienv',
+ 'COMMON_DRI_SW_OBJECTS',
'COMMON_DRI_DRM_OBJECTS',
])
+SConscript([
+ 'dri-swrast/SConscript',
+])
+
if 'vmware' in env['winsys']:
SConscript([
'dri-vmwgfx/SConscript',
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 = '',
+)
diff --git a/src/gallium/winsys/SConscript b/src/gallium/winsys/SConscript
index 3e7052c0e6f..2013ee97c1c 100644
--- a/src/gallium/winsys/SConscript
+++ b/src/gallium/winsys/SConscript
@@ -11,6 +11,10 @@ if 'gdi' in env['winsys']:
])
if env['dri']:
+ SConscript([
+ 'sw/dri/SConscript',
+ ])
+
if 'vmware' in env['winsys']:
SConscript([
'svga/drm/SConscript',
diff --git a/src/gallium/winsys/sw/dri/SConscript b/src/gallium/winsys/sw/dri/SConscript
new file mode 100644
index 00000000000..b255d725f95
--- /dev/null
+++ b/src/gallium/winsys/sw/dri/SConscript
@@ -0,0 +1,23 @@
+#######################################################################
+# SConscript for xlib winsys
+
+
+Import('*')
+
+if env['platform'] == 'linux':
+
+ env = env.Clone()
+
+ env.Append(CPPPATH = [
+ '#/src/gallium/include',
+ '#/src/gallium/auxiliary',
+ '#/src/gallium/drivers',
+ ])
+
+ ws_dri = env.ConvenienceLibrary(
+ target = 'ws_dri',
+ source = [
+ 'dri_sw_winsys.c',
+ ]
+ )
+ Export('ws_dri')