5 env.Prepend(CPPPATH = [
9 Dir('../../../mapi'), # src/mapi build path for python-generated GL API files/headers
10 Dir('../../../mapi/glapi'), # src/mapi/glapi build path
11 Dir('../../../mapi/glapi/gen'), # src/mapi/glapi build path
28 if env['platform'] == 'windows':
29 env.AppendUnique(CPPDEFINES = [
30 '_GDI32_', # prevent wgl* being declared __declspec(dllimport)
31 'BUILD_GL32', # declare gl* as __declspec(dllexport) in Mesa headers
32 '_GLAPI_NO_EXPORTS', # prevent _glapi_* from being declared __declspec(dllimport)
35 sources += ['osmesa.def']
37 osmesa = env.SharedLibrary(
42 env.Alias('osmesa', osmesa)