Merge commit 'origin/master' into glsl-pp-rework-2
authorMichal Krol <michal@vmware.com>
Thu, 17 Sep 2009 10:44:24 +0000 (12:44 +0200)
committerMichal Krol <michal@vmware.com>
Thu, 17 Sep 2009 10:44:24 +0000 (12:44 +0200)
Conflicts:
src/gallium/winsys/gdi/SConscript

1  2 
src/gallium/winsys/gdi/SConscript

index 243146fca7f77474747da9976444597b7854a977,f5e6d36d89c2ae8082c444ce03aac9d0a9806191..9fbe9e800c3b39498912f1b8b408a1d2ca30a16a
@@@ -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'],
+     )