diff options
author | Emil Velikov <[email protected]> | 2014-06-16 13:50:01 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2014-07-02 10:52:53 +0100 |
commit | 37b7a76266a2a620dd760624c451f83de2147fe4 (patch) | |
tree | 2a2dc251fe3e6b9377a6f71f8c0eee16f04b4013 /src/gallium/targets/dri/SConscript | |
parent | 100e654b2577ec69100f5d1695f4401d74109cf0 (diff) |
targets/dri-vmwgfx: Convert to static/shared pipe-drivers
Convert the final hardware driver to a single dri provider which
includes all the pipe-drivers.
Update the scons build and drop the unused vmw_powf.c.
Cc: José Fonseca <[email protected]>
Cc: Brian Paul <[email protected]>
Cc: Jakob Bornecrantz <[email protected]>
Signed-off-by: Emil Velikov <[email protected]>
Tested-by: Rob Clark <[email protected]>
Tested-by: Thomas Helland <thomashelland90 at gmail.com>
Acked-by: Tom Stellard <[email protected]>
Diffstat (limited to 'src/gallium/targets/dri/SConscript')
-rw-r--r-- | src/gallium/targets/dri/SConscript | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/gallium/targets/dri/SConscript b/src/gallium/targets/dri/SConscript new file mode 100644 index 00000000000..9908b519fdb --- /dev/null +++ b/src/gallium/targets/dri/SConscript @@ -0,0 +1,41 @@ +Import('*') + +env = drienv.Clone() + +if env['suncc']: + print 'warning: not building dri-vmwgfx' + Return() + +env.Append(CPPPATH = [ + '#/src/loader', +]) + +if env['build'] == 'release': + env.Append(CPPDEFINES = ['GALLIUM_RBUG']) + env.Prepend(LIBS = [rbug]) +else: + env.Append(CPPDEFINES = ['GALLIUM_TRACE', 'GALLIUM_RBUG', 'GALLIUM_GALAHAD', 'GALLIUM_SOFTPIPE']) + env.Prepend(LIBS = [trace, rbug, galahad, softpipe, ws_wrapper]) + +env.Append(CPPDEFINES = [ + 'GALLIUM_VMWGFX', +]) + +env.Prepend(LIBS = [ + st_dri, + svgadrm, + svga, + libloader, + mesa, + glsl, + gallium, + COMMON_DRI_DRM_OBJECTS +]) + +module = env.LoadableModule( + target = 'vmwgfx_dri.so', + source = 'target.c', + SHLIBPREFIX = '', +) + +env.Alias('dri-vmwgfx', module) |