summaryrefslogtreecommitdiffstats
path: root/progs/SConscript
blob: 4cd35fec646a304f90737ff3df3837feefd90c59 (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
Import('*')

if env['platform'] == 'embedded':
    Return()

SConscript([
    'util/SConscript',
])

Import('util')

progs_env = env.Clone()

if progs_env['platform'] == 'windows':
    progs_env.Append(CPPDEFINES = ['NOMINMAX'])
    progs_env.Prepend(LIBS = [
        'winmm',
        'kernel32',
        'user32',
        'gdi32',
    ])

# OpenGL
if progs_env['platform'] == 'windows':
    progs_env.Prepend(LIBS = ['glu32', 'opengl32'])
else:
    progs_env.Tool('x11')
    progs_env.Prepend(LIBS = ['GLU', 'GL'])

# Glut
progs_env.Prepend(LIBPATH = [glut.dir])
progs_env.Prepend(LIBS = [glut.name])

# GLEW
progs_env.Prepend(LIBS = [glew])

progs_env.Prepend(CPPPATH = [
    '#progs/util',
])

progs_env.Prepend(LIBS = [
    util,
])

Export('progs_env')

SConscript([
    'demos/SConscript',
    'glsl/SConscript',
    'redbook/SConscript',
    'samples/SConscript',
    'tests/SConscript',
    'trivial/SConscript',
    'vp/SConscript',
    'vpglsl/SConscript',
    'fp/SConscript',
    'wgl/SConscript',
    'perf/SConscript',
    'gallium/unit/SConscript',
#   'gallium/raw/SConscript',
])