• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#######################################################################
2# SConscript for xorg state_tracker
3
4Import('*')
5
6env = env.Clone()
7
8env.Append(CPPPATH = [
9    '#/src/mesa',
10])
11
12env.PkgUseModules(['DRM', 'XORG'])
13
14if env['HAVE_KMS']:
15    env.Append(CPPDEFINES = ['HAVE_LIBKMS'])
16    env.PkgUseModules(['KMS'])
17
18conf = env.Configure()
19
20if conf.CheckHeader('X11/extensions/dpmsconst.h'):
21    env.Append(CPPDEFINES = [('HAVE_XEXTPROTO_71', '1')])
22
23conf.Finish()
24
25sources = [
26    'xorg_composite.c',
27    'xorg_crtc.c',
28    'xorg_dri2.c',
29    'xorg_driver.c',
30    'xorg_exa.c',
31    'xorg_exa_tgsi.c',
32    'xorg_output.c',
33    'xorg_renderer.c',
34    'xorg_xv.c',
35    'xorg_xvmc.c',
36]
37
38st_xorg = env.ConvenienceLibrary(
39    target = 'st_xorg',
40    source = sources,
41)
42Export('st_xorg')
43