summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2008-11-18 19:13:32 +0900
committerJosé Fonseca <[email protected]>2008-11-18 19:13:32 +0900
commit6cf59e1293c5777ba5675e6315cbfad3211f9260 (patch)
tree26a64dee5da58421c6e4e70456d379d1c0519e74 /src/gallium/winsys
parente45773b3de1bbd7db717336a1b5c964b6cdb718e (diff)
scons: Support MinGW32 cross compiler.
To build an alternative opengl32.dll with Gallium's software-rasterizer from a debian-based distribution run: sudo apt-get install mingw32 scons platform=windows toolchain=crossmingw machine=x86 winsys=gdi dri=no
Diffstat (limited to 'src/gallium/winsys')
-rw-r--r--src/gallium/winsys/gdi/SConscript6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/winsys/gdi/SConscript b/src/gallium/winsys/gdi/SConscript
index 170fdf51270..dce81ec1ca2 100644
--- a/src/gallium/winsys/gdi/SConscript
+++ b/src/gallium/winsys/gdi/SConscript
@@ -13,6 +13,12 @@ if env['platform'] == 'windows':
'#src/mesa/main',
])
+ env.Append(CPPDEFINES = [
+ '__GL_EXPORTS',
+ 'BUILD_GL32',
+ '_GNU_H_WINDOWS32_DEFINES',
+ ])
+
sources = [
'opengl32.def',
'wgl.c',