1###################################
2# SConcscript file for dri targets
3
4Import('*')
5
6drienv = env.Clone()
7
8drienv.Replace(CPPPATH = [
9    '#src/mesa/drivers/dri/common',
10    xmlpool_options.dir.dir, # Dir to generated xmlpool/options.h
11    '#include',
12    '#include/GL/internal',
13    '#src',
14    '#src/mapi',
15    '#src/gallium/include',
16    '#src/gallium/auxiliary',
17    '#src/gallium/drivers',
18    '#src/gallium/winsys',
19    '#src/mesa',
20    '#src/mesa/main',
21    '#src/mesa/glapi',
22    '#src/mesa/math',
23    '#src/mesa/transform',
24    '#src/mesa/shader',
25    '#src/mesa/swrast',
26    '#src/mesa/swrast_setup',
27    '#src/egl/main',
28    '#src/egl/drivers/dri',
29])
30
31drienv.AppendUnique(LIBS = [
32    'expat',
33])
34
35sources = drienv.ParseSourceList('Makefile.sources', ['DRI_COMMON_FILES', 'XMLCONFIG_FILES' ])
36
37dri_common = drienv.ConvenienceLibrary(
38	target = 'dri_common',
39	source = sources,
40)
41
42#
43# megadrivers_stub
44#
45env = env.Clone()
46
47env.Append(CPPPATH = [
48    '#/include',
49    '#/src/',
50    '#/src/mapi',
51    '#/src/mesa',
52])
53
54env.Append(CPPDEFINES = [
55    'HAVE_DLADDR',
56])
57
58sources = env.ParseSourceList('Makefile.sources', 'megadriver_stub_FILES')
59
60megadrivers_stub = env.ConvenienceLibrary(
61	target = 'megadrivers_stub',
62	source = sources,
63)
64
65env.Alias('megadrivers_stub', megadrivers_stub)
66
67Export([
68    'drienv',
69    'dri_common',
70    'megadrivers_stub',
71])
72