1 ###################################
2 # SConcscript file for dri targets
8 drienv.Replace(CPPPATH = [
9 '#src/mesa/drivers/dri/common',
11 '#include/GL/internal',
13 '#src/gallium/include',
14 '#src/gallium/auxiliary',
15 '#src/gallium/drivers',
20 '#src/mesa/transform',
23 '#src/mesa/swrast_setup',
25 '#src/egl/drivers/dri',
28 drienv.ParseConfig('pkg-config --cflags --libs libdrm')
30 dri_common_utils = drienv.SharedObject(
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(
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 = [
59 dri_common_drisw_util,
62 COMMON_DRI_DRM_OBJECTS = [
69 drienv.AppendUnique(LIBS = [
75 'COMMON_DRI_SW_OBJECTS',
76 'COMMON_DRI_DRM_OBJECTS',
80 'dri-swrast/SConscript',
83 if 'vmware' in env['winsys']:
85 'dri-vmwgfx/SConscript',
88 if 'i915' in env['winsys']:
90 'dri-i915/SConscript',
93 if 'i965' in env['winsys']:
95 'dri-i965/SConscript',
98 if 'radeon' in env['winsys']:
100 'dri-radeong/SConscript',
103 if 'r600' in env['winsys']:
105 'dri-r600/SConscript',