SConscript revision 192f06adca5e79b4824d92dc41186592ed57f71e
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.AppendUnique(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 'WIN32_LEAN_AND_MEAN', # http://msdn2.microsoft.com/en-us/library/6dwk3a1z.aspx 19 ]) 20 21 sources = [ 22 'stw_context.c', 23 'stw_device.c', 24 'stw_ext_extensionsstring.c', 25 'stw_ext_gallium.c', 26 'stw_ext_pixelformat.c', 27 'stw_ext_swapinterval.c', 28 'stw_framebuffer.c', 29 'stw_getprocaddress.c', 30 'stw_pixelformat.c', 31 'stw_st.c', 32 'stw_tls.c', 33 'stw_wgl.c', 34 ] 35 36 wgl = env.ConvenienceLibrary( 37 target ='wgl', 38 source = sources, 39 ) 40 41 Export('wgl') 42