mesa: merge gallium-0.2 into gallium-master-merge
[mesa.git] / src / gallium / state_trackers / wgl / SConscript
1 import os
2
3 Import('*')
4
5 if env['platform'] in ['windows']:
6
7 env = env.Clone()
8
9 env.Append(CPPPATH = [
10 '#src/mesa',
11 '.',
12 ])
13
14 env.Append(CPPDEFINES = [
15 '_GDI32_', # prevent wgl* being declared __declspec(dllimport)
16 'BUILD_GL32', # declare gl* as __declspec(dllexport) in Mesa headers
17 '__GL_EXPORTS',
18 '_GNU_H_WINDOWS32_DEFINES',
19 ])
20
21 sources = [
22 'stw.c',
23
24 'icd/stw_icd.c',
25
26 'wgl/stw_wgl.c',
27
28 'shared/stw_context.c',
29 'shared/stw_device.c',
30 'shared/stw_framebuffer.c',
31 'shared/stw_pixelformat.c',
32 'shared/stw_quirks.c',
33 'shared/stw_arbextensionsstring.c',
34 'shared/stw_getprocaddress.c',
35 'shared/stw_arbpixelformat.c',
36 ]
37
38 wgl = env.ConvenienceLibrary(
39 target ='wgl',
40 source = sources,
41 )
42
43 Export('wgl')