summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/SConscript
blob: d32bd0866961ca3607b3aafef7dfb2aeca05854c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
Import('*')

drienv = env.Clone()

drienv.Replace(CPPPATH = [
	'#src/mesa/drivers/dri/common',
	'#include',
	'#include/GL/internal',
	'#src/mesa',
	'#src/mesa/main',
	'#src/mesa/glapi',
	'#src/mesa/math',
	'#src/mesa/transform',
	'#src/mesa/shader',
	'#src/mesa/swrast',
	'#src/mesa/swrast_setup',
	'#src/egl/main',
	'#src/egl/drivers/dri',
])

drienv.ParseConfig('pkg-config --cflags --libs libdrm')

COMMON_GALLIUM_SOURCES = [
	'../common/utils.c',
	'../common/vblank.c',
	'../common/dri_util.c',
	'../common/xmlconfig.c',
]

COMMON_BM_SOURCES = [
	'../common/dri_bufmgr.c',
	'../common/dri_drmpool.c',
]

Export([
	'drienv',
	'COMMON_GALLIUM_SOURCES',
	'COMMON_BM_SOURCES',
])

# TODO: Installation
#install: $(LIBNAME)
#	$(INSTALL) -d $(DRI_DRIVER_INSTALL_DIR)
#	$(INSTALL) -m 755 $(LIBNAME) $(DRI_DRIVER_INSTALL_DIR)

SConscript([
	'intel_winsys/SConscript',
])