scons: Fix dependencies of generated headers.
[mesa.git] / src / mapi / glapi / gen / SConscript
1 Import('*')
2
3 from sys import executable as python_cmd
4
5
6 # Generate the GL API headers that are used by various parts of the
7 # Mesa and GLX tree. Other .c and .h files are generated elsewhere
8 # if they're only used in one place.
9
10 env.CodeGenerate(
11 target = '../../../mesa/main/dispatch.h',
12 script = 'gl_table.py',
13 source = 'gl_and_es_API.xml',
14 command = python_cmd + ' $SCRIPT -m remap_table -f $SOURCE > $TARGET',
15 )
16
17 env.CodeGenerate(
18 target = '../../../mapi/glapi/glapitable.h',
19 script = 'gl_table.py',
20 source = 'gl_and_es_API.xml',
21 command = python_cmd + ' $SCRIPT -f $SOURCE > $TARGET'
22 )
23
24 env.CodeGenerate(
25 target = '../../../mapi/glapi/glapitemp.h',
26 script = 'gl_apitemp.py',
27 source = 'gl_and_es_API.xml',
28 command = python_cmd + ' $SCRIPT -f $SOURCE > $TARGET'
29 )
30
31 env.CodeGenerate(
32 target = '../../../mapi/glapi/glprocs.h',
33 script = 'gl_procs.py',
34 source = 'gl_and_es_API.xml',
35 command = python_cmd + ' $SCRIPT -f $SOURCE > $TARGET'
36 )
37
38 env.CodeGenerate(
39 target = '../../../mesa/main/remap_helper.h',
40 script = 'remap_helper.py',
41 source = 'gl_and_es_API.xml',
42 command = python_cmd + ' $SCRIPT -f $SOURCE > $TARGET'
43 )