diff options
author | José Fonseca <[email protected]> | 2008-11-18 19:13:32 +0900 |
---|---|---|
committer | José Fonseca <[email protected]> | 2008-11-18 19:13:32 +0900 |
commit | 6cf59e1293c5777ba5675e6315cbfad3211f9260 (patch) | |
tree | 26a64dee5da58421c6e4e70456d379d1c0519e74 /src/gallium/winsys/gdi | |
parent | e45773b3de1bbd7db717336a1b5c964b6cdb718e (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')
-rw-r--r-- | src/gallium/winsys/gdi/SConscript | 6 |
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', |