5 from sys import executable as python_cmd
11 env.Prepend(CPPPATH = [
13 xmlpool_options.dir.dir, # Dir to generated xmlpool/options.h
17 '#src/gallium/include',
18 '#src/gallium/auxiliary',
23 target = 'format_srgb.c',
24 script = 'format_srgb.py',
26 command = python_cmd + ' $SCRIPT > $TARGET'
29 # parse Makefile.sources
30 source_lists = env.ParseSourceList('Makefile.sources')
33 source_lists['MESA_UTIL_FILES'] +
34 source_lists['MESA_UTIL_GENERATED_FILES'] +
35 source_lists['XMLCONFIG_FILES']
38 mesautilenv = env.Clone()
40 mesautilenv.AppendUnique(LIBS = [
44 mesautil = mesautilenv.ConvenienceLibrary(
46 source = mesautil_sources,
49 env.Alias('mesautil', mesautil)
53 u_atomic_test = env.Program(
54 target = 'u_atomic_test',
55 source = ['u_atomic_test.c'],
57 env.UnitTest("u_atomic_test", u_atomic_test)
59 roundeven_test = env.Program(
60 target = 'roundeven_test',
61 source = ['roundeven_test.c'],
63 env.UnitTest("roundeven_test", roundeven_test)