diff options
author | Jakob Bornecrantz <[email protected]> | 2010-03-26 14:45:36 +0100 |
---|---|---|
committer | Jakob Bornecrantz <[email protected]> | 2010-03-26 14:48:36 +0100 |
commit | 7f91f2efb5b92a9ad8506c54643142f40f286d5c (patch) | |
tree | f7c6357b4a962b092147d1e8db4d87373d12636b /src/gallium/targets | |
parent | 711529153c797b4169fd5bbba79b370a2f38a0e9 (diff) |
swrastg: Build with scons
Diffstat (limited to 'src/gallium/targets')
-rw-r--r-- | src/gallium/targets/SConscript.dri | 17 | ||||
-rw-r--r-- | src/gallium/targets/dri-swrast/SConscript | 32 |
2 files changed, 49 insertions, 0 deletions
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 = '', +) |