aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/xorg/SConscript
blob: 88990d589a92c17c39660b45d3f54390cbecee81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#######################################################################
# SConscript for xorg state_tracker

Import('*')

env = env.Clone()

env.Append(CPPPATH = [
    '#/src/mesa',
])

env.PkgUseModules(['DRM', 'XORG'])

if env['HAVE_KMS']:
    env.Append(CPPDEFINES = ['HAVE_LIBKMS'])
    env.PkgUseModules(['KMS'])

conf = env.Configure()

if conf.CheckHeader('X11/extensions/dpmsconst.h'):
    env.Append(CPPDEFINES = [('HAVE_XEXTPROTO_71', '1')])

conf.Finish()

st_xorg = env.ConvenienceLibrary(
    target = 'st_xorg',
    source = env.ParseSourceList('Makefile.sources', 'C_SOURCES')
)
Export('st_xorg')