SConscript revision f724036f0045bd28f323af3666c43b3ef03b6886
1import os
2
3Import('*')
4
5if 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        'stw_context.c',
22        'stw_device.c',
23        'stw_ext_extensionsstring.c',
24        'stw_ext_gallium.c',
25        'stw_ext_pixelformat.c',
26        'stw_ext_swapinterval.c',
27        'stw_framebuffer.c',
28        'stw_getprocaddress.c',
29        'stw_icd.c',
30        'stw_pixelformat.c',
31        'stw_tls.c',
32        'stw_wgl.c',
33    ]
34
35    wgl = env.ConvenienceLibrary(
36        target ='wgl',
37        source = sources,
38    )
39    
40    Export('wgl')
41