SConscript revision 4489f9efee58f2cba374298f2d43c96e5cd2ff41
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 '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_quirks.c', 30 'shared/stw_arbextensionsstring.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') 42