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