SConscript revision c4a43873c5f2e39def45eb9ca24f538adf3f9196
1import os
2
3Import('*')
4
5env = env.Clone()
6
7env.Append(CPPPATH = [
8    '#src/mapi',
9    '#src/mesa',
10    '.',
11])
12
13env.AppendUnique(CPPDEFINES = [
14    '_GDI32_', # prevent wgl* being declared __declspec(dllimport)
15    'BUILD_GL32', # declare gl* as __declspec(dllexport) in Mesa headers 
16    'WIN32_THREADS', # use Win32 thread API
17    'WIN32_LEAN_AND_MEAN', # http://msdn2.microsoft.com/en-us/library/6dwk3a1z.aspx
18])
19
20sources = [
21    'stw_context.c',
22    'stw_device.c',
23    'stw_ext_extensionsstring.c',
24    'stw_ext_gallium.c',
25    'stw_ext_pbuffer.c',
26    'stw_ext_pixelformat.c',
27    'stw_ext_swapinterval.c',
28    'stw_framebuffer.c',
29    'stw_getprocaddress.c',
30    'stw_pixelformat.c',
31    'stw_st.c',
32    'stw_tls.c',
33    'stw_wgl.c',
34]
35
36wgl = env.ConvenienceLibrary(
37    target ='wgl',
38    source = sources,
39)
40Export('wgl')
41