Revert accidental commits from the xquartz tree
[mesa.git] / progs / SConscript
1 Import('*')
2
3 if env['platform'] == 'embedded':
4 Return()
5
6 SConscript([
7 'util/SConscript',
8 ])
9
10 Import('util')
11
12 progs_env = env.Clone()
13
14 if progs_env['platform'] == 'windows':
15 progs_env.Append(CPPDEFINES = ['NOMINMAX'])
16 progs_env.Prepend(LIBS = [
17 'winmm',
18 'kernel32',
19 'user32',
20 'gdi32',
21 ])
22
23 # OpenGL
24 if progs_env['platform'] == 'windows':
25 progs_env.Prepend(LIBS = ['glu32', 'opengl32'])
26 else:
27 progs_env.Prepend(LIBS = ['GLU', 'GL'])
28
29 # Glut
30 progs_env.Prepend(LIBPATH = [glut.dir])
31 progs_env.Prepend(LIBS = [glut.name])
32
33 # GLEW
34 progs_env.Prepend(LIBS = [glew])
35
36 progs_env.Prepend(CPPPATH = [
37 '#progs/util',
38 ])
39
40 progs_env.Prepend(LIBS = [
41 util,
42 ])
43
44 Export('progs_env')
45
46 SConscript([
47 'demos/SConscript',
48 'glsl/SConscript',
49 'redbook/SConscript',
50 'samples/SConscript',
51 'tests/SConscript',
52 'trivial/SConscript',
53 'vp/SConscript',
54 'vpglsl/SConscript',
55 'fp/SConscript',
56 'wgl/SConscript',
57 'perf/SConscript',
58 'gallium/unit/SConscript',
59 ])