SConscript revision b4ac0adb75bddc1c17c57eb19c7e6dde52e4b7e7
1import os 2 3Import('*') 4 5if env['platform'] in ['windows']: 6 7 env = env.Clone() 8 9 env.Append(CPPPATH = [ 10 '#src/mapi', 11 '#src/mesa', 12 '.', 13 ]) 14 15 env.AppendUnique(CPPDEFINES = [ 16 '_GDI32_', # prevent wgl* being declared __declspec(dllimport) 17 'BUILD_GL32', # declare gl* as __declspec(dllexport) in Mesa headers 18 'WIN32_THREADS', # use Win32 thread API 19 'WIN32_LEAN_AND_MEAN', # http://msdn2.microsoft.com/en-us/library/6dwk3a1z.aspx 20 ]) 21 22 sources = [ 23 'stw_context.c', 24 'stw_device.c', 25 'stw_ext_extensionsstring.c', 26 'stw_ext_gallium.c', 27 'stw_ext_pixelformat.c', 28 'stw_ext_swapinterval.c', 29 'stw_framebuffer.c', 30 'stw_getprocaddress.c', 31 'stw_pixelformat.c', 32 'stw_st.c', 33 'stw_tls.c', 34 'stw_wgl.c', 35 ] 36 37 wgl = env.ConvenienceLibrary( 38 target ='wgl', 39 source = sources, 40 ) 41 42 Export('wgl') 43