diff options
Diffstat (limited to 'src/gallium/winsys/sw/remote_xlib/SConscript')
-rw-r--r-- | src/gallium/winsys/sw/remote_xlib/SConscript | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/src/gallium/winsys/sw/remote_xlib/SConscript b/src/gallium/winsys/sw/remote_xlib/SConscript new file mode 100644 index 0000000000..32523dcd5c --- /dev/null +++ b/src/gallium/winsys/sw/remote_xlib/SConscript @@ -0,0 +1,45 @@ +####################################################################### +# SConscript for remote-xlib winsys + +Import('*') + +if env['platform'] == 'linux' \ + and 'mesa' in env['statetrackers'] \ + and 'remote' in env['drivers'] \ + and not env['dri']: + + env = env.Clone() + + env.Append(CPPPATH = [ + '.', + '#/src/mesa', + '#/src/mesa/main', + '../../drivers/remote', + '/usr/include/X11', + '/usr/include/X11/extensions' + ]) + + env.Append(CFLAGS = [ '-std=c99' ]) + + sources = [ + 'glxapi.c', + 'fakeglx.c', + 'xfonts.c', + 'xm_api.c', + 'tr_winsys.c', + 'ext.c' + ] + + drivers = [ + remote, + ] + + # TODO: write a wrapper function http://www.scons.org/wiki/WrapperFunctions + libgl = env.SharedLibrary( + target ='GL', + source = sources, + LIBS = glapi + mesa + drivers + auxiliaries + env['LIBS'], + ) + + env.InstallSharedLibrary(libgl, version=(1, 5)) +
\ No newline at end of file |