summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys/gdi/SConscript
blob: 72b5df8ca2470cafd2c5ccf1749f3e78b65d09a3 (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
#######################################################################
# SConscript for gdi winsys

Import('*')

if env['platform'] == 'windows':

	env = env.Clone()

	env.Append(CPPPATH = [
		'#src/gallium/state_trackers/wgl',
	])

	env.Append(LIBS = [
		'gdi32',
		'user32',
		'kernel32',
	])

	sources = [
		'gdi_softpipe_winsys.c',
	]
	
	if env['toolchain'] == 'crossmingw':
		sources += ['#src/gallium/state_trackers/wgl/opengl32.mingw.def']
	else:
		sources += ['#src/gallium/state_trackers/wgl/opengl32.def']
		
	drivers = [
		softpipe,
	]

	env.SharedLibrary(
		target ='opengl32',
		source = sources,
		LIBS = wgl + glapi + mesa + drivers + auxiliaries + env['LIBS'],
	)