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