summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys/dri/intel/SConscript
blob: a7cc10450e3351ee3cb3d7805c6efbf2e2d45dfb (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
Import('*')

env = drienv.Clone()

env.Append(CPPPATH = [
	'../intel',
	'server'
])

#MINIGLX_SOURCES = server/intel_dri.c

pipe_drivers = [
	softpipe,
	i915simple
]

DRIVER_SOURCES = [
	'intel_winsys_pipe.c',
	'intel_winsys_softpipe.c',
	'intel_winsys_i915.c',
	'intel_batchbuffer.c',
	'intel_swapbuffers.c',
	'intel_context.c',
	'intel_lock.c',
	'intel_screen.c',
	'intel_batchpool.c',
]

sources = \
	COMMON_GALLIUM_SOURCES + \
	COMMON_BM_SOURCES + \
	DRIVER_SOURCES

# DRIVER_DEFINES = -I../intel $(shell pkg-config libdrm --atleast-version=2.3.1 \
#				&& echo "-DDRM_VBLANK_FLIP=DRM_VBLANK_FLIP")

env.SharedLibrary(
	target ='i915tex_dri.so',
	source = sources,
	LIBS = pipe_drivers + env['LIBS'],
)