SConscript revision 848b8605
1import common
2
3Import('*')
4
5from sys import executable as python_cmd
6
7env = env.Clone()
8
9env.Prepend(CPPPATH = [
10    '#include',
11    '#src/util',
12])
13
14env.CodeGenerate(
15    target = 'format_srgb.c',
16    script = 'format_srgb.py',
17    source = [],
18    command = python_cmd + ' $SCRIPT > $TARGET'
19)
20
21# parse Makefile.sources
22source_lists = env.ParseSourceList('Makefile.sources')
23
24mesautil_sources = (
25    source_lists['MESA_UTIL_FILES'] +
26    source_lists['MESA_UTIL_GENERATED_FILES']
27)
28
29mesautil = env.ConvenienceLibrary(
30    target = 'mesautil',
31    source = mesautil_sources,
32)
33
34env.Alias('mesautil', mesautil)
35Export('mesautil')
36