glsl2: Add and use new variable mode ir_var_temporary
[mesa/nouveau-pmpeg.git] / src / gallium / targets / SConscript.dri
blob74b53e5023f8fe364e847119d7adc713ffbd61c3
1 ###################################
2 # SConcscript file for dri targets
4 Import('*')
6 drienv = env.Clone()
8 drienv.Replace(CPPPATH = [
9         '#src/mesa/drivers/dri/common',
10         '#include',
11         '#include/GL/internal',
12         '#src/mapi',
13         '#src/gallium/include',
14         '#src/gallium/auxiliary',
15         '#src/gallium/drivers',
16         '#src/mesa',
17         '#src/mesa/main',
18         '#src/mesa/glapi',
19         '#src/mesa/math',
20         '#src/mesa/transform',
21         '#src/mesa/shader',
22         '#src/mesa/swrast',
23         '#src/mesa/swrast_setup',
24         '#src/egl/main',
25         '#src/egl/drivers/dri',
28 drienv.ParseConfig('pkg-config --cflags --libs libdrm')
30 dri_common_utils = drienv.SharedObject(
31         target = 'utils.o',
32         source = '#src/mesa/drivers/dri/common/utils.c'
35 dri_common_xmlconfig = drienv.SharedObject(
36         target = 'xmlconfig.o',
37         source = '#src/mesa/drivers/dri/common/xmlconfig.c'
40 dri_common_vblank = drienv.SharedObject(
41         target = 'vblank.o',
42         source = '#src/mesa/drivers/dri/common/vblank.c'
45 dri_common_dri_util = drienv.SharedObject(
46         target = 'dri_util.o',
47         source = '#src/mesa/drivers/dri/common/dri_util.c'
50 dri_common_drisw_util = drienv.SharedObject(
51         target = 'drisw_util.o',
52         source = '#src/mesa/drivers/dri/common/drisw_util.c'
56 COMMON_DRI_SW_OBJECTS = [
57         dri_common_utils,
58         dri_common_xmlconfig,
59         dri_common_drisw_util,
62 COMMON_DRI_DRM_OBJECTS = [
63         dri_common_utils,
64         dri_common_xmlconfig,
65         dri_common_vblank,
66         dri_common_dri_util,
69 drienv.AppendUnique(LIBS = [
70     'expat',
73 Export([
74         'drienv',
75         'COMMON_DRI_SW_OBJECTS',
76         'COMMON_DRI_DRM_OBJECTS',
79 SConscript([
80         'dri-swrast/SConscript',
83 if 'vmware' in env['winsys']:
84         SConscript([
85                 'dri-vmwgfx/SConscript',
86         ])
88 if 'i915' in env['winsys']:
89         SConscript([
90                 'dri-i915/SConscript',
91         ])
93 if 'i965' in env['winsys']:
94         SConscript([
95                 'dri-i965/SConscript',
96         ])
98 if 'radeon' in env['winsys']:
99         SConscript([
100                 'dri-radeong/SConscript',
101         ])
103 if 'r600' in env['winsys']:
104         SConscript([
105                 'dri-r600/SConscript',
106         ])