From 71c87e42e17a160dfc5c2a47c9cbaa297c34c484 Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Mon, 21 Jan 2013 17:47:51 +0000 Subject: scons: Fix dependencies of generated headers. It appears that scons implicit dependency scanners fail to chain dependencies of generated headers when these are outside the build tree. This patch ensures generated source files are _always_ put in the build tree. I'm not 100% this will fix all depency issues, but from my experiments it does seem to fix this. NOTE: For this to be effective it is necessary to clean the source tree from generated header/source files. Reviewed-by: Brian Paul --- src/mesa/drivers/x11/SConscript | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/mesa/drivers/x11') diff --git a/src/mesa/drivers/x11/SConscript b/src/mesa/drivers/x11/SConscript index 984e6cef4e8..b0173bee94c 100644 --- a/src/mesa/drivers/x11/SConscript +++ b/src/mesa/drivers/x11/SConscript @@ -6,6 +6,7 @@ env.Append(CPPPATH = [ '#/src/mapi', '#/src/mesa', '#/src/mesa/main', + Dir('../../../mapi'), # src/mapi build path for python-generated GL API files/headers ]) env.Append(CPPDEFINES = ['USE_XSHM']) @@ -30,9 +31,6 @@ sources = [ 'xm_tri.c', ] -# The sources depend on the python-generated GL API files/headers. -env.Depends(sources, glapi_headers) - # libGL.so.1.6 libgl_1_6 = env.SharedLibrary( target ='GL', -- cgit v1.2.3