scons: Fix the libg-xlib Sconscript.
This commit is contained in:
@@ -28,35 +28,40 @@ env.Append(CPPPATH = [
|
|||||||
|
|
||||||
env.Append(CPPDEFINES = ['USE_XSHM'])
|
env.Append(CPPDEFINES = ['USE_XSHM'])
|
||||||
|
|
||||||
|
env.Prepend(LIBS = [
|
||||||
|
st_xlib,
|
||||||
|
ws_xlib,
|
||||||
|
trace,
|
||||||
|
identity,
|
||||||
|
glapi,
|
||||||
|
mesa,
|
||||||
|
glsl,
|
||||||
|
gallium,
|
||||||
|
])
|
||||||
|
|
||||||
sources = [
|
sources = [
|
||||||
'xlib.c',
|
'xlib.c',
|
||||||
]
|
]
|
||||||
|
|
||||||
drivers = [trace]
|
|
||||||
|
|
||||||
if 'softpipe' in env['drivers']:
|
if 'softpipe' in env['drivers']:
|
||||||
env.Append(CPPDEFINES = 'GALLIUM_SOFTPIPE')
|
env.Append(CPPDEFINES = 'GALLIUM_SOFTPIPE')
|
||||||
sources += ['xlib_softpipe.c', 'xlib_sw_winsys.c']
|
env.Prepend(LIBS = [softpipe])
|
||||||
drivers += [softpipe]
|
|
||||||
|
|
||||||
if 'llvmpipe' in env['drivers']:
|
if 'llvmpipe' in env['drivers']:
|
||||||
env.Tool('llvm')
|
env.Tool('llvm')
|
||||||
if 'LLVM_VERSION' in env:
|
if 'LLVM_VERSION' in env:
|
||||||
env.Append(CPPDEFINES = 'GALLIUM_LLVMPIPE')
|
env.Append(CPPDEFINES = 'GALLIUM_LLVMPIPE')
|
||||||
env.Tool('udis86')
|
env.Tool('udis86')
|
||||||
sources += ['xlib_llvmpipe.c', 'xlib_sw_winsys.c']
|
env.Prepend(LIBS = [llvmpipe])
|
||||||
drivers += [llvmpipe]
|
|
||||||
|
|
||||||
if 'cell' in env['drivers']:
|
if 'cell' in env['drivers']:
|
||||||
env.Append(CPPDEFINES = 'GALLIUM_CELL')
|
env.Append(CPPDEFINES = 'GALLIUM_CELL')
|
||||||
sources += ['xlib_cell.c']
|
env.Prepend(LIBS = [cell])
|
||||||
drivers += [cell]
|
|
||||||
|
|
||||||
# TODO: write a wrapper function http://www.scons.org/wiki/WrapperFunctions
|
# TODO: write a wrapper function http://www.scons.org/wiki/WrapperFunctions
|
||||||
libgl = env.SharedLibrary(
|
libgl = env.SharedLibrary(
|
||||||
target ='GL',
|
target ='GL',
|
||||||
source = sources,
|
source = sources,
|
||||||
LIBS = st_xlib + glapi + mesa + glsl + drivers + gallium + env['LIBS'],
|
|
||||||
)
|
)
|
||||||
|
|
||||||
if not env['dri']:
|
if not env['dri']:
|
||||||
|
Reference in New Issue
Block a user