1848b8605Smrgimport os
2848b8605Smrg
3848b8605SmrgImport('*')
4848b8605Smrg
5848b8605Smrgenv = env.Clone()
6848b8605Smrg
7848b8605Smrgenv.Append(CPPPATH = [
8848b8605Smrg    '#src/mapi',
9848b8605Smrg    '#src/mesa',
10848b8605Smrg    '.',
11848b8605Smrg])
12848b8605Smrg
13848b8605Smrgenv.AppendUnique(CPPDEFINES = [
14848b8605Smrg    '_GDI32_', # prevent wgl* being declared __declspec(dllimport)
15b8e80941Smrg    'BUILD_GL32', # declare gl* as __declspec(dllexport) in Mesa headers
16848b8605Smrg    'WIN32_LEAN_AND_MEAN', # http://msdn2.microsoft.com/en-us/library/6dwk3a1z.aspx
17b8e80941Smrg    '_GLAPI_NO_EXPORTS', # prevent _glapi_* from being declared __declspec(dllimport)
18848b8605Smrg])
19848b8605Smrg
20848b8605Smrgwgl = env.ConvenienceLibrary(
21848b8605Smrg    target ='wgl',
22848b8605Smrg    source = env.ParseSourceList('Makefile.sources', 'C_SOURCES'),
23848b8605Smrg)
24848b8605SmrgExport('wgl')
25