SConscript revision 0e471ac45771393ea74178eb98f41b904168cf64
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 env.Append(CPPDEFINES = [ 14 '_GDI32_', # prevent wgl* being declared __declspec(dllimport) 15 'BUILD_GL32', # declare gl* as __declspec(dllexport) in Mesa headers 16 '__GL_EXPORTS', 17 '_GNU_H_WINDOWS32_DEFINES', 18 ]) 19 20 sources = [ 21 'stw_device.c', 22 'stw_framebuffer.c', 23 'stw_icd.c', 24 'stw_pixelformat.c', 25 'stw_quirks.c', 26 'stw_wgl_arbextensionsstring.c', 27 'stw_wgl_arbmultisample.c', 28 'stw_wgl_arbpixelformat.c', 29 #'stw_wgl.c', 30 'stw_wgl_context.c', 31 'stw_wgl_getprocaddress.c', 32 'stw_wgl_pixelformat.c', 33 'stw_wgl_swapbuffers.c', 34 ] 35 36 wgl = env.ConvenienceLibrary( 37 target ='wgl', 38 source = sources, 39 ) 40 41 Export('wgl') 42