Tizen 2.0 Release
[profile/ivi/osmesa.git] / src / gallium / state_trackers / xorg / SConscript
1 #######################################################################
2 # SConscript for xorg state_tracker
3
4 Import('*')
5
6 env = env.Clone()
7
8 env.Append(CPPPATH = [
9     '#/src/mesa',
10 ])
11
12 env.ParseConfig('pkg-config --cflags --libs libdrm xorg-server')
13
14 if env['kms']:
15     env.Append(CPPDEFINES = ['HAVE_LIBKMS'])
16
17 conf = env.Configure()
18
19 if conf.CheckHeader('X11/extensions/dpmsconst.h'):
20     env.Append(CPPDEFINES = [('HAVE_XEXTPROTO_71', '1')])
21
22 conf.Finish()
23
24 sources = [
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
36 st_xorg = env.ConvenienceLibrary(
37     target = 'st_xorg',
38     source = sources,
39 )
40 Export('st_xorg')