From 7e9f5eab4e18e0b661fc9b65a0f409d10e041b24 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Fri, 5 Nov 2010 18:18:09 +0000 Subject: scons: Move dependancy checks to the main gallium scons file --- src/gallium/state_trackers/dri/drm/SConscript | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) (limited to 'src/gallium/state_trackers/dri/drm') diff --git a/src/gallium/state_trackers/dri/drm/SConscript b/src/gallium/state_trackers/dri/drm/SConscript index 7e3a264d1c1..90082ffb6ae 100644 --- a/src/gallium/state_trackers/dri/drm/SConscript +++ b/src/gallium/state_trackers/dri/drm/SConscript @@ -3,20 +3,18 @@ Import('*') -if env['dri']: +env = env.Clone() - env = env.Clone() +env.ParseConfig('pkg-config --cflags --libs libdrm') - env.ParseConfig('pkg-config --cflags --libs libdrm') +env.Append(CPPPATH = [ + '#/src/mapi', + '#/src/mesa', + '#/src/gallium/state_trackers/dri/common', + '#/src/mesa/drivers/dri/common', +]) - env.Append(CPPPATH = [ - '#/src/mapi', - '#/src/mesa', - '#/src/gallium/state_trackers/dri/common', - '#/src/mesa/drivers/dri/common', - ]) - - st_dri = env.ConvenienceLibrary( +st_dri = env.ConvenienceLibrary( target = 'st_dri', source = [ 'dri_context.c', 'dri_drawable.c', @@ -24,4 +22,5 @@ if env['dri']: 'dri2.c', ] ) - Export('st_dri') + +Export('st_dri') -- cgit v1.2.3