37eb650c87fdfca37c72c204fa77bed42b5a133e
[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 'icd/stw_icd.c',
23 'shared/stw_context.c',
24 'shared/stw_device.c',
25 'shared/stw_framebuffer.c',
26 'shared/stw_pixelformat.c',
27 'shared/stw_quirks.c',
28 'wgl/stw_wgl_arbextensionsstring.c',
29 'wgl/stw_wgl_arbmultisample.c',
30 'wgl/stw_wgl_arbpixelformat.c',
31 'wgl/stw_wgl.c',
32 'wgl/stw_wgl_getprocaddress.c',
33 'wgl/stw_wgl_pixelformat.c',
34 'wgl/stw_wgl_swapbuffers.c',
35 ]
36
37 wgl = env.ConvenienceLibrary(
38 target ='wgl',
39 source = sources,
40 )
41
42 Export('wgl')