9 from sys import executable as python_cmd
15 env.Prepend(CPPPATH = [
17 xmlpool_options.dir.dir, # Dir to generated xmlpool/options.h
21 '#src/gallium/include',
22 '#src/gallium/auxiliary',
27 target = 'format_srgb.c',
28 script = 'format_srgb.py',
30 command = python_cmd + ' $SCRIPT > $TARGET'
33 # parse Makefile.sources
34 source_lists = env.ParseSourceList('Makefile.sources')
37 source_lists['MESA_UTIL_FILES'] +
38 source_lists['MESA_UTIL_GENERATED_FILES'] +
39 source_lists['XMLCONFIG_FILES']
42 mesautilenv = env.Clone()
44 mesautilenv.AppendUnique(LIBS = [
48 mesautil = mesautilenv.ConvenienceLibrary(
50 source = mesautil_sources,
53 env.Alias('mesautil', mesautil)
57 u_atomic_test = env.Program(
58 target = 'u_atomic_test',
59 source = ['u_atomic_test.c'],
61 env.UnitTest("u_atomic_test", u_atomic_test)
63 roundeven_test = env.Program(
64 target = 'roundeven_test',
65 source = ['roundeven_test.c'],
67 env.UnitTest("roundeven_test", roundeven_test)