Skip to content
Snippets Groups Projects
Commit 9601815b authored by Andreas Fänger's avatar Andreas Fänger Committed by Emil Velikov
Browse files

scons: build osmesa swrast and gallium


This patch makes it possible to build classic osmesa/swrast on windows
again. It was removed in commit 69db4222.
Although there is a gallium version of osmesa now, the swrast version
still has more features lacking in llvmpipe, e.g. anisotropic filtering.

Tested-by: default avatarBrian Paul <brianp@vmware.com>
Reviewed-by: default avatarBrian Paul <brianp@vmware.com>
[Emil Velikov: remove trailing whitespace]
Signed-off-by: default avatarEmil Velikov <emil.velikov@collabora.com>
parent 3689ef32
No related branches found
No related tags found
No related merge requests found
Import('*')
SConscript('osmesa/SConscript')
if env['x11']:
SConscript('x11/SConscript')
......
Import('*')
env = env.Clone()
env.Prepend(CPPPATH = [
'#src',
'#src/mapi',
'#src/mesa',
Dir('../../../mapi'), # src/mapi build path for python-generated GL API files/headers
])
env.Prepend(LIBS = [
mesautil,
glapi,
compiler,
mesa,
glsl,
])
sources = [
'osmesa.c',
]
if env['platform'] == 'windows':
env.AppendUnique(CPPDEFINES = [
'_GDI32_', # prevent wgl* being declared __declspec(dllimport)
'BUILD_GL32', # declare gl* as __declspec(dllexport) in Mesa headers
])
if not env['gles']:
# prevent _glapi_* from being declared __declspec(dllimport)
env.Append(CPPDEFINES = ['_GLAPI_NO_EXPORTS'])
sources += ['osmesa.def']
osmesa = env.SharedLibrary(
target ='osmesa',
source = sources,
)
env.Alias('osmesa', osmesa)
;DESCRIPTION 'Mesa OSMesa lib for Win32'
VERSION 4.1
EXPORTS
OSMesaColorClamp
OSMesaCreateContext
OSMesaCreateContextExt
OSMesaDestroyContext
OSMesaMakeCurrent
OSMesaGetCurrentContext
OSMesaPixelStore
OSMesaGetIntegerv
OSMesaGetDepthBuffer
OSMesaGetColorBuffer
OSMesaGetProcAddress
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment