Merge branch 'master' of git+ssh://agd5f@git.freedesktop.org/git/mesa/mesa into r6xx...
[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 'WIN32_THREADS', # use Win32 thread API
18 ])
19
20 sources = [
21 'icd/stw_icd.c',
22
23 'wgl/stw_wgl.c',
24
25 'shared/stw_context.c',
26 'shared/stw_device.c',
27 'shared/stw_framebuffer.c',
28 'shared/stw_pixelformat.c',
29 'shared/stw_extensionsstring.c',
30 'shared/stw_extswapinterval.c',
31 'shared/stw_getprocaddress.c',
32 'shared/stw_arbpixelformat.c',
33 'shared/stw_tls.c',
34 ]
35
36 wgl = env.ConvenienceLibrary(
37 target ='wgl',
38 source = sources,
39 )
40
41 Export('wgl')