OSDN Git Service

pipebuffer: Fix buffer overflow.
[android-x86/external-mesa.git] / src / gallium / winsys / gdi / SConscript
1 #######################################################################
2 # SConscript for gdi winsys
3
4 Import('*')
5
6 if env['platform'] == 'windows':
7
8         env = env.Clone()
9
10         env.Append(CPPPATH = [
11                 '#src/mesa/glapi',
12                 '#src/mesa',
13                 '#src/mesa/main',
14         ])
15
16         env.Append(CPPDEFINES = [
17                 '__GL_EXPORTS',
18                 'BUILD_GL32',
19                 '_GNU_H_WINDOWS32_DEFINES',
20         ])
21
22         sources = [
23                 'opengl32.def',
24                 'wgl.c',
25                 'wmesa.c',
26         ]
27                 
28         drivers = [
29                 softpipe,
30         ]
31
32         env.Append(LIBS = ['gdi32', 'user32'])
33
34         # TODO: write a wrapper function http://www.scons.org/wiki/WrapperFunctions
35         env.SharedLibrary(
36                 target ='opengl32',
37                 source = sources,
38                 LIBS = glapi + mesa + drivers + auxiliaries + env['LIBS'],
39         )