1b8e80941Smrgimport os 2b8e80941Smrg 3b8e80941SmrgImport('*') 4b8e80941Smrg 5b8e80941Smrgenv = env.Clone() 6b8e80941Smrg 7b8e80941Smrgenv.Append(CPPPATH = [ 8b8e80941Smrg '#src/mapi', 9b8e80941Smrg '#src/mesa', 10b8e80941Smrg '.', 11b8e80941Smrg]) 12b8e80941Smrg 13b8e80941Smrgif env['platform'] == 'windows': 14b8e80941Smrg env.AppendUnique(CPPDEFINES = [ 15b8e80941Smrg 'BUILD_GL32', # declare gl* as __declspec(dllexport) in Mesa headers 16b8e80941Smrg 'WIN32_LEAN_AND_MEAN', # http://msdn2.microsoft.com/en-us/library/6dwk3a1z.aspx 17b8e80941Smrg '_GLAPI_NO_EXPORTS', # prevent _glapi_* from being declared __declspec(dllimport) 18b8e80941Smrg ]) 19b8e80941Smrg 20b8e80941Smrgst_osmesa = env.ConvenienceLibrary( 21b8e80941Smrg target ='st_osmesa', 22b8e80941Smrg source = env.ParseSourceList('Makefile.sources', 'C_SOURCES'), 23b8e80941Smrg) 24b8e80941SmrgExport('st_osmesa') 25