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

Import('*')

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

	env = env.Clone()

	env.Append(CPPPATH = [
		'#src/mesa/glapi',
		'#src/mesa',
		'#src/mesa/main',
	])

	env.Append(CPPDEFINES = [
		'__GL_EXPORTS',
		'BUILD_GL32',
		'_GNU_H_WINDOWS32_DEFINES',
	])

	sources = [
		'opengl32.def',
		'wgl.c',
		'wmesa.c',
	]
		
	drivers = [
		softpipe,
	]

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

	# TODO: write a wrapper function http://www.scons.org/wiki/WrapperFunctions
	env.SharedLibrary(
		target ='opengl32',
		source = sources,
		LIBS = glapi + mesa + drivers + auxiliaries + env['LIBS'],
	)