1 ###################################
2 # SConcscript file for dri targets
8 drienv.Replace(CPPPATH = [
9 '#src/mesa/drivers/dri/common',
10 xmlpool_options.dir.dir, # Dir to generated xmlpool/options.h
12 '#include/GL/internal',
14 '#src/gallium/include',
15 '#src/gallium/auxiliary',
16 '#src/gallium/drivers',
17 '#src/gallium/winsys',
22 '#src/mesa/transform',
25 '#src/mesa/swrast_setup',
27 '#src/egl/drivers/dri',
30 driswenv = drienv.Clone()
31 driswenv.Append(CPPDEFINES = [
35 drienv.PkgUseModules('DRM')
37 dri_common_utils = drienv.SharedObject(
39 source = '#src/mesa/drivers/dri/common/utils.c'
42 dri_common_xmlconfig = drienv.SharedObject(
43 target = 'xmlconfig.o',
44 source = '#src/mesa/drivers/dri/common/xmlconfig.c'
47 dri_common_dri_util = drienv.SharedObject(
48 target = 'dri_util.o',
49 source = '#src/mesa/drivers/dri/common/dri_util.c'
52 dri_common_drisw_util = driswenv.SharedObject(
53 target = 'drisw_util.o',
54 source = '#src/mesa/drivers/dri/common/dri_util.c'
58 COMMON_DRI_SW_OBJECTS = [
61 dri_common_drisw_util,
64 COMMON_DRI_DRM_OBJECTS = [
70 drienv.AppendUnique(LIBS = [
74 driswenv.AppendUnique(LIBS = [
81 'COMMON_DRI_SW_OBJECTS',
82 'COMMON_DRI_DRM_OBJECTS',