diff options
Diffstat (limited to 'lib/mesa/src/gallium/state_trackers/osmesa/SConscript')
-rw-r--r-- | lib/mesa/src/gallium/state_trackers/osmesa/SConscript | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/mesa/src/gallium/state_trackers/osmesa/SConscript b/lib/mesa/src/gallium/state_trackers/osmesa/SConscript index be67d0fe7..f5519f137 100644 --- a/lib/mesa/src/gallium/state_trackers/osmesa/SConscript +++ b/lib/mesa/src/gallium/state_trackers/osmesa/SConscript @@ -14,8 +14,10 @@ if env['platform'] == 'windows': env.AppendUnique(CPPDEFINES = [ 'BUILD_GL32', # declare gl* as __declspec(dllexport) in Mesa headers 'WIN32_LEAN_AND_MEAN', # http://msdn2.microsoft.com/en-us/library/6dwk3a1z.aspx - '_GLAPI_NO_EXPORTS', # prevent _glapi_* from being declared __declspec(dllimport) ]) + if not env['gles']: + # prevent _glapi_* from being declared __declspec(dllimport) + env.Append(CPPDEFINES = ['_GLAPI_NO_EXPORTS']) st_osmesa = env.ConvenienceLibrary( target ='st_osmesa', |