1#######################################################################
2# SConscript for dri state_tracker
3
4Import('*')
5
6env = env.Clone()
7
8env.PkgUseModules(['DRM'])
9
10env.Append(CPPPATH = [
11    '#/src',
12    '#/src/mapi',
13    '#/src/mesa',
14    '#/src/mesa/drivers/dri/common',
15    xmlpool_options.dir.dir, # Dir to generated xmlpool/options.h
16])
17
18sources = env.ParseSourceList('Makefile.sources', 'common_SOURCES')
19
20# XXX: if HAVE_DRISW
21sources.append(env.ParseSourceList('Makefile.sources', 'drisw_SOURCES'))
22
23# XXX: if HAVE_DRI2
24sources.append(env.ParseSourceList('Makefile.sources', 'dri2_SOURCES'))
25
26st_dri = env.ConvenienceLibrary(
27    target = 'st_dri',
28    source = sources
29)
30Export('st_dri')
31