Import('*')
-SConscript([
- 'xmlpool',
-])
-
from sys import executable as python_cmd
env = env.Clone()
mesautil_sources = (
source_lists['MESA_UTIL_FILES'] +
- source_lists['MESA_UTIL_GENERATED_FILES'] +
- source_lists['XMLCONFIG_FILES']
+ source_lists['MESA_UTIL_GENERATED_FILES']
)
mesautilenv = env.Clone()
-mesautilenv.AppendUnique(LIBS = [
- 'expat',
-])
+if env['dri']:
+ mesautil_sources += source_lists['XMLCONFIG_FILES']
+
+ mesautilenv.AppendUnique(LIBS = [
+ 'expat',
+ ])
mesautil = mesautilenv.ConvenienceLibrary(
target = 'mesautil',
source = ['roundeven_test.c'],
)
env.UnitTest("roundeven_test", roundeven_test)
+
+env.Prepend(LIBS = [mesautil])
+mesa_sha1_test = env.Program(
+ target = 'mesa-sha1_test',
+ source = ['mesa-sha1_test.c'],
+)
+env.UnitTest("mesa-sha1_test", mesa_sha1_test)