Added few more stubs so that control reaches to DestroyDevice().
[mesa.git] / src / gallium / targets / libgl-gdi / SConscript
1 #######################################################################
2 # SConscript for gdi winsys
3
4 Import('*')
5
6 env = env.Clone()
7
8 env.Append(CPPPATH = [
9 '#src',
10 '#src/gallium/frontends/wgl',
11 '#src/gallium/winsys/sw',
12 ])
13
14 env.Append(LIBS = [
15 'gdi32',
16 'user32',
17 'kernel32',
18 'ws2_32',
19 'advapi32',
20 ])
21
22 env.Prepend(LIBS = [
23 mesautil,
24 nir,
25 spirv
26 ])
27
28 sources = ['libgl_gdi.c']
29 drivers = []
30
31 if True:
32 drivers += [softpipe]
33
34 if env['llvm']:
35 env.Append(CPPDEFINES = 'GALLIUM_LLVMPIPE')
36 drivers += [llvmpipe]
37
38 if env['gcc'] and env['machine'] != 'x86_64':
39 # DEF parser in certain versions of MinGW is busted, as does not behave as
40 # MSVC. mingw-w64 works fine.
41 sources += ['#src/gallium/frontends/wgl/opengl32.mingw.def']
42 else:
43 sources += ['#src/gallium/frontends/wgl/opengl32.def']
44
45 env['no_import_lib'] = 1
46
47 opengl32 = env.SharedLibrary(
48 target ='opengl32',
49 source = sources,
50 LIBS = wgl + ws_gdi + glapi + compiler + mesa + drivers + gallium + glsl + nir + env['LIBS'],
51 )
52
53 env.Alias('opengl32', opengl32)
54 env.Alias('libgl-gdi', opengl32)