bc3671a256bb4612fb92bb61edc5a2b138223270
[mesa.git] / src / gallium / targets / SConscript.dri
1 ###################################
2 # SConcscript file for dri targets
3
4 Import('*')
5
6 if not env['dri']:
7 Return()
8
9 drienv = env.Clone()
10
11 drienv.Replace(CPPPATH = [
12 '#src/mesa/drivers/dri/common',
13 '#include',
14 '#include/GL/internal',
15 '#src/mapi',
16 '#src/gallium/include',
17 '#src/gallium/auxiliary',
18 '#src/gallium/drivers',
19 '#src/gallium/winsys',
20 '#src/mesa',
21 '#src/mesa/main',
22 '#src/mesa/glapi',
23 '#src/mesa/math',
24 '#src/mesa/transform',
25 '#src/mesa/shader',
26 '#src/mesa/swrast',
27 '#src/mesa/swrast_setup',
28 '#src/egl/main',
29 '#src/egl/drivers/dri',
30 ])
31
32 drienv.ParseConfig('pkg-config --cflags --libs libdrm')
33
34 dri_common_utils = drienv.SharedObject(
35 target = 'utils.o',
36 source = '#src/mesa/drivers/dri/common/utils.c'
37 )
38
39 dri_common_xmlconfig = drienv.SharedObject(
40 target = 'xmlconfig.o',
41 source = '#src/mesa/drivers/dri/common/xmlconfig.c'
42 )
43
44 dri_common_vblank = drienv.SharedObject(
45 target = 'vblank.o',
46 source = '#src/mesa/drivers/dri/common/vblank.c'
47 )
48
49 dri_common_dri_util = drienv.SharedObject(
50 target = 'dri_util.o',
51 source = '#src/mesa/drivers/dri/common/dri_util.c'
52 )
53
54 dri_common_drisw_util = drienv.SharedObject(
55 target = 'drisw_util.o',
56 source = '#src/mesa/drivers/dri/common/drisw_util.c'
57 )
58
59
60 COMMON_DRI_SW_OBJECTS = [
61 dri_common_utils,
62 dri_common_xmlconfig,
63 dri_common_drisw_util,
64 ]
65
66 COMMON_DRI_DRM_OBJECTS = [
67 dri_common_utils,
68 dri_common_xmlconfig,
69 dri_common_vblank,
70 dri_common_dri_util,
71 ]
72
73 drienv.AppendUnique(LIBS = [
74 'expat',
75 'talloc',
76 ])
77
78 Export([
79 'drienv',
80 'COMMON_DRI_SW_OBJECTS',
81 'COMMON_DRI_DRM_OBJECTS',
82 ])