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
27 if env['platform'] == 'windows':
28 env.AppendUnique(CPPDEFINES = [
29 '_GDI32_', # prevent wgl* being declared __declspec(dllimport)
30 'BUILD_GL32', # declare gl* as __declspec(dllexport) in Mesa headers
33 # prevent _glapi_* from being declared __declspec(dllimport)
34 env.Append(CPPDEFINES = ['_GLAPI_NO_EXPORTS'])
36 sources += ['osmesa.def']
38 osmesa = env.SharedLibrary(
43 env.Alias('osmesa', osmesa)