1###################################
2# SConcscript file for dri targets
3
4Import('*')
5
6if not env['dri']:
7    Return()
8
9drienv = env.Clone()
10
11drienv.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
32drienv.PkgUseModules('DRM')
33
34dri_common_utils = drienv.SharedObject(
35    target = 'utils.o',
36    source = '#src/mesa/drivers/dri/common/utils.c'
37)
38
39dri_common_xmlconfig = drienv.SharedObject(
40    target = 'xmlconfig.o',
41    source = '#src/mesa/drivers/dri/common/xmlconfig.c'
42)
43
44dri_common_dri_util = drienv.SharedObject(
45    target = 'dri_util.o',
46    source = '#src/mesa/drivers/dri/common/dri_util.c'
47)
48
49dri_common_drisw_util = drienv.SharedObject(
50    target = 'drisw_util.o',
51    source = '#src/mesa/drivers/dri/common/drisw_util.c'
52)
53
54
55COMMON_DRI_SW_OBJECTS = [
56    dri_common_utils,
57    dri_common_xmlconfig,
58    dri_common_drisw_util,
59]
60
61COMMON_DRI_DRM_OBJECTS = [
62    dri_common_utils,
63    dri_common_xmlconfig,
64    dri_common_dri_util,
65]
66
67drienv.AppendUnique(LIBS = [
68    'expat',
69])
70
71Export([
72    'drienv',
73    'COMMON_DRI_SW_OBJECTS',
74    'COMMON_DRI_DRM_OBJECTS',
75])
76