SConscript revision c7bbc9ad126b2b120407146c5aa9894f4487752e
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 ] 34 35 wgl = env.ConvenienceLibrary( 36 target ='wgl', 37 source = sources, 38 ) 39 40 Export('wgl') 41