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']
37 mesautilenv = env.Clone()
40 mesautil_sources += source_lists['XMLCONFIG_FILES']
42 mesautilenv.AppendUnique(LIBS = [
46 mesautil = mesautilenv.ConvenienceLibrary(
48 source = mesautil_sources,
51 env.Alias('mesautil', mesautil)
55 u_atomic_test = env.Program(
56 target = 'u_atomic_test',
57 source = ['u_atomic_test.c'],
59 env.UnitTest("u_atomic_test", u_atomic_test)
61 roundeven_test = env.Program(
62 target = 'roundeven_test',
63 source = ['roundeven_test.c'],
65 env.UnitTest("roundeven_test", roundeven_test)