From: Michal Krol Date: Thu, 17 Sep 2009 10:44:24 +0000 (+0200) Subject: Merge commit 'origin/master' into glsl-pp-rework-2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2a661c383fee65bc4413541e706925fa3e9b9cf5;p=mesa.git Merge commit 'origin/master' into glsl-pp-rework-2 Conflicts: src/gallium/winsys/gdi/SConscript --- 2a661c383fee65bc4413541e706925fa3e9b9cf5 diff --cc src/gallium/winsys/gdi/SConscript index 243146fca7f,f5e6d36d89c..9fbe9e800c3 --- a/src/gallium/winsys/gdi/SConscript +++ b/src/gallium/winsys/gdi/SConscript @@@ -5,35 -5,39 +5,39 @@@ Import('*' if env['platform'] == 'windows': - env = env.Clone() + env = env.Clone() - env.Append(CPPPATH = [ - '#src/gallium/state_trackers/wgl', - ]) + env.Append(CPPPATH = [ + '#src/gallium/state_trackers/wgl', + ]) - env.Append(LIBS = [ - 'gdi32', - 'user32', - 'kernel32', - 'ws2_32', - ]) + env.Append(LIBS = [ + 'gdi32', + 'user32', + 'kernel32', + 'ws2_32', + ]) - sources = [ - 'gdi_softpipe_winsys.c', - ] - - if env['gcc']: - sources += ['#src/gallium/state_trackers/wgl/opengl32.mingw.def'] - else: - sources += ['#src/gallium/state_trackers/wgl/opengl32.def'] - - drivers = [ - trace, - softpipe, - ] + if 'llvmpipe' in env['drivers']: + sources = ['gdi_llvmpipe_winsys.c'] + drivers = [llvmpipe] + env.Tool('llvm') + elif 'softpipe' in env['drivers']: + sources = ['gdi_softpipe_winsys.c'] + drivers = [softpipe] + else: + print 'warning: softpipe or llvmpipe not selected, gdi winsys disabled' + Return() + + if env['gcc']: + sources += ['#src/gallium/state_trackers/wgl/opengl32.mingw.def'] + else: + sources += ['#src/gallium/state_trackers/wgl/opengl32.def'] + + drivers += [trace] - env.SharedLibrary( - target ='opengl32', - source = sources, - LIBS = wgl + glapi + mesa + drivers + auxiliaries + glsl + env['LIBS'], - ) + env.SharedLibrary( + target ='opengl32', + source = sources, - LIBS = wgl + glapi + mesa + drivers + auxiliaries + env['LIBS'], ++ LIBS = wgl + glapi + mesa + drivers + auxiliaries + glsl + env['LIBS'], + )