diff options
author | Keith Whitwell <[email protected]> | 2010-03-09 17:57:13 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2010-03-09 17:58:40 +0000 |
commit | 0df858a8d541e342dfe569091b665c2a6dff7ef0 (patch) | |
tree | c787a03601efbfa824ff8086c7f19a567f95b7d2 /src/gallium/targets/libgl-gdi/SConscript | |
parent | 25b9aafbd2f2d0737c23b4c59778c4e41f046d39 (diff) |
gallium: create target for gdi libgl
Diffstat (limited to 'src/gallium/targets/libgl-gdi/SConscript')
-rw-r--r-- | src/gallium/targets/libgl-gdi/SConscript | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/src/gallium/targets/libgl-gdi/SConscript b/src/gallium/targets/libgl-gdi/SConscript new file mode 100644 index 00000000000..57704440ce7 --- /dev/null +++ b/src/gallium/targets/libgl-gdi/SConscript @@ -0,0 +1,51 @@ +####################################################################### +# SConscript for gdi winsys + +Import('*') + +if env['platform'] == 'windows': + + env = env.Clone() + + env.Append(CPPPATH = [ + '#src/gallium/state_trackers/wgl', + ]) + + env.Append(LIBS = [ + 'gdi32', + 'user32', + 'kernel32', + 'ws2_32', + ]) + + sources = [] + drivers = [] + + if 'softpipe' in env['drivers']: + sources = ['gdi_softpipe_winsys.c'] + drivers = [softpipe] + + if 'llvmpipe' in env['drivers']: + env.Tool('llvm') + if 'LLVM_VERSION' in env: + sources = ['gdi_llvmpipe_winsys.c'] + drivers = [llvmpipe] + + if not sources or not drivers: + print 'warning: softpipe or llvmpipe not selected, gdi winsys disabled' + Return() + + if env['gcc']: + sources += ['#src/gallium/state_trackers/wgl/opengl32.mingw.def'] + else: + sources += ['#src/gallium/state_trackers/wgl/opengl32.def'] + + drivers += [trace] + + env['no_import_lib'] = 1 + + env.SharedLibrary( + target ='opengl32', + source = sources, + LIBS = wgl + ws_gdi + glapi + mesa + drivers + gallium + glsl + env['LIBS'], + ) |