st/dri: unwrap/remove __NOT_HAVE_DRM_H magic
[mesa.git] / src / gallium / state_trackers / dri / SConscript
1 #######################################################################
2 # SConscript for dri state_tracker
3
4 Import('*')
5
6 env = env.Clone()
7
8 env.PkgUseModules(['DRM'])
9
10 env.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
18 env.Append(CPPDEFINES = [
19 ('GALLIUM_STATIC_TARGETS', '1'),
20 'GALLIUM_SOFTPIPE',
21 ])
22
23 sources = env.ParseSourceList('Makefile.sources', 'common_SOURCES')
24
25 # XXX: if HAVE_DRISW
26 sources.append(env.ParseSourceList('Makefile.sources', 'drisw_SOURCES'))
27
28 # XXX: if HAVE_DRI2
29 sources.append(env.ParseSourceList('Makefile.sources', 'dri2_SOURCES'))
30
31 st_dri = env.ConvenienceLibrary(
32 target = 'st_dri',
33 source = sources
34 )
35 Export('st_dri')