st/mesa: fix incorrect RowStride computation
[mesa.git] / src / gallium / winsys / gdi / SConscript
1 #######################################################################
2 # SConscript for gdi winsys
3
4 Import('*')
5
6 if env['platform'] == 'windows':
7
8 env = env.Clone()
9
10 env.Append(CPPPATH = [
11 '#src/gallium/state_trackers/wgl',
12 ])
13
14 env.Append(LIBS = [
15 'gdi32',
16 'user32',
17 'kernel32',
18 'ws2_32',
19 ])
20
21 sources = []
22 drivers = []
23
24 if 'softpipe' in env['drivers']:
25 sources = ['gdi_softpipe_winsys.c']
26 drivers = [softpipe]
27
28 if 'llvmpipe' in env['drivers']:
29 env.Tool('llvm')
30 if 'LLVM_VERSION' in env:
31 sources = ['gdi_llvmpipe_winsys.c']
32 drivers = [llvmpipe]
33
34 if not sources or not drivers:
35 print 'warning: softpipe or llvmpipe not selected, gdi winsys disabled'
36 Return()
37
38 if env['gcc']:
39 sources += ['#src/gallium/state_trackers/wgl/opengl32.mingw.def']
40 else:
41 sources += ['#src/gallium/state_trackers/wgl/opengl32.def']
42
43 drivers += [trace]
44
45 env['no_import_lib'] = 1
46
47 env.SharedLibrary(
48 target ='opengl32',
49 source = sources,
50 LIBS = wgl + glapi + mesa + drivers + gallium + glsl + env['LIBS'],
51 )