summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys/gdi/SConscript
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2008-11-18 19:13:32 +0900
committerJosé Fonseca <[email protected]>2008-11-20 23:01:43 +0900
commit15b92b09e0f066a9d38c445b80b33193a8d9ea14 (patch)
treeb01a9d619faddd6722adb2f79b243cbe901141a3 /src/gallium/winsys/gdi/SConscript
parent59ae12b5b14a2bf18c4b566abcdf3211aa5eb4d6 (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/gdi/SConscript')
-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',