Commit d22bd142 authored by Michel Dänzer's avatar Michel Dänzer
Browse files

Add support for building the Xorg state tracker with scons.

scons ... statetrackers=xorg
parent 418cdc66
...@@ -44,7 +44,7 @@ else: ...@@ -44,7 +44,7 @@ else:
opts = Variables('config.py') opts = Variables('config.py')
common.AddOptions(opts) common.AddOptions(opts)
opts.Add(ListVariable('statetrackers', 'state trackers to build', default_statetrackers, opts.Add(ListVariable('statetrackers', 'state trackers to build', default_statetrackers,
['mesa', 'python'])) ['mesa', 'python', 'xorg']))
opts.Add(ListVariable('drivers', 'pipe drivers to build', default_drivers, opts.Add(ListVariable('drivers', 'pipe drivers to build', default_drivers,
['softpipe', 'failover', 'i915simple', 'i965simple', 'cell', 'trace', 'r300', 'identity'])) ['softpipe', 'failover', 'i915simple', 'i965simple', 'cell', 'trace', 'r300', 'identity']))
opts.Add(ListVariable('winsys', 'winsys drivers to build', default_winsys, opts.Add(ListVariable('winsys', 'winsys drivers to build', default_winsys,
......
...@@ -31,6 +31,7 @@ for driver in env['drivers']: ...@@ -31,6 +31,7 @@ for driver in env['drivers']:
SConscript('state_trackers/python/SConscript') SConscript('state_trackers/python/SConscript')
SConscript('state_trackers/glx/xlib/SConscript') SConscript('state_trackers/glx/xlib/SConscript')
SConscript('state_trackers/dri/SConscript') SConscript('state_trackers/dri/SConscript')
SConscript('state_trackers/xorg/SConscript')
if platform == 'windows': if platform == 'windows':
SConscript('state_trackers/wgl/SConscript') SConscript('state_trackers/wgl/SConscript')
#######################################################################
# SConscript for xorg state_tracker
Import('*')
if 'xorg' in env['statetrackers']:
env = env.Clone()
env.Append(CPPPATH = [
'#/src/mesa',
])
env.ParseConfig('pkg-config --cflags --libs xorg-server')
st_xorg = env.ConvenienceLibrary(
target = 'st_xorg',
source = [ 'xorg_composite.c',
'xorg_crtc.c',
'xorg_dri2.c',
'xorg_driver.c',
'xorg_exa.c',
'xorg_output.c',
]
)
Export('st_xorg')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment