summaryrefslogtreecommitdiff
path: root/progs/perf/SConscript
blob: a5ec9a7c2a064446c987490f937d521a1296cac0 (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
Import('env')

if not env['GLUT']:
    Return()

env = env.Clone()

env.Prepend(LIBS = ['$GLUT_LIB'])

progs = [
      'copytex',
      'drawoverhead',
      'fbobind',
      'fill',
      'genmipmap',
      'readpixels',
      'swapbuffers',
      'teximage',
      'vbo',
      'vertexrate',
]

for prog in progs:
    env.Program(
        target = prog,
        source = [
            prog + '.c',
            'common.c',
            'glmain.c',
            ]
        )