projects
/
mesa.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
5b03107cbb31a6050ff40d9bd18314324a39e6f0
[mesa.git]
/
src
/
egl
/
drivers
/
dri2
/
SConscript
1
Import('*')
2
3
env = env.Clone()
4
5
env.Append(CPPDEFINES = [
6
'DEFAULT_DRIVER_DIR=\\"\\"'
7
])
8
9
env.Append(CPPPATH = [
10
'#/include',
11
'#/src/egl/main',
12
'#/src/loader',
13
])
14
15
sources = [
16
'egl_dri2.c',
17
]
18
19
if env['x11']:
20
sources.append('platform_x11.c')
21
env.Append(CPPDEFINES = [
22
'HAVE_X11_PLATFORM',
23
])
24
#env.Append(CPPPATH = [
25
# 'XCB_DRI2_CFLAGS',
26
#])
27
28
if env['drm']:
29
env.PkgUseModules('DRM')
30
31
env.Prepend(LIBS = [
32
libloader,
33
])
34
35
egl_dri2 = env.ConvenienceLibrary(
36
target = 'egl_dri2',
37
source = sources,
38
)
39
40
Export('egl_dri2')