SConscript revision 5e17c89eadd1a1a5555caa235cf7696e335d25f5
1#######################################################################
2# SConscript for xorg state_tracker
3
4Import('*')
5
6if 'xorg' in env['statetrackers']:
7
8    env = env.Clone()
9
10    env.Append(CPPPATH = [
11	'#/src/mesa',
12    ])
13
14    env.ParseConfig('pkg-config --cflags --libs xorg-server')
15
16    conf = env.Configure()
17
18    if conf.CheckHeader('X11/extensions/dpmsconst.h'):
19        env.Append(CPPDEFINES = [('HAVE_XEXTPROTO_71', '1')])
20
21    st_xorg = env.ConvenienceLibrary(
22	target = 'st_xorg',
23	source = [ 'xorg_composite.c',
24		'xorg_crtc.c',
25		'xorg_dri2.c',
26		'xorg_driver.c',
27		'xorg_exa.c',
28		'xorg_exa_tgsi.c',
29		'xorg_output.c',
30		'xorg_renderer.c',
31		'xorg_xv.c',
32		]
33    )
34    Export('st_xorg')
35