diff options
author | Keith Whitwell <[email protected]> | 2009-01-27 11:28:29 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2009-01-27 11:28:29 +0000 |
commit | 0e471ac45771393ea74178eb98f41b904168cf64 (patch) | |
tree | 516818a8cf98e3e71e5611bf71bdd9473c169ed3 /src/gallium/state_trackers/wgl/SConscript | |
parent | 4d710dd3cf3187e94e5765b46e4dd6899a7a41d6 (diff) |
wgl: relocate wgl code to state_trackers/wgl
Similar to the GLX state trackers for DRI and xlib.
Diffstat (limited to 'src/gallium/state_trackers/wgl/SConscript')
-rw-r--r-- | src/gallium/state_trackers/wgl/SConscript | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/wgl/SConscript b/src/gallium/state_trackers/wgl/SConscript new file mode 100644 index 00000000000..bb579930f52 --- /dev/null +++ b/src/gallium/state_trackers/wgl/SConscript @@ -0,0 +1,41 @@ +import os + +Import('*') + +if env['platform'] in ['windows']: + + env = env.Clone() + + env.Append(CPPPATH = [ + '#src/mesa', + ]) + + env.Append(CPPDEFINES = [ + '_GDI32_', # prevent wgl* being declared __declspec(dllimport) + 'BUILD_GL32', # declare gl* as __declspec(dllexport) in Mesa headers + '__GL_EXPORTS', + '_GNU_H_WINDOWS32_DEFINES', + ]) + + sources = [ + 'stw_device.c', + 'stw_framebuffer.c', + 'stw_icd.c', + 'stw_pixelformat.c', + 'stw_quirks.c', + 'stw_wgl_arbextensionsstring.c', + 'stw_wgl_arbmultisample.c', + 'stw_wgl_arbpixelformat.c', + #'stw_wgl.c', + 'stw_wgl_context.c', + 'stw_wgl_getprocaddress.c', + 'stw_wgl_pixelformat.c', + 'stw_wgl_swapbuffers.c', + ] + + wgl = env.ConvenienceLibrary( + target ='wgl', + source = sources, + ) + + Export('wgl') |