Attempt to fix AppVeyor build, round 2
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 31 Jul 2017 15:17:44 +0000 (17:17 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 31 Jul 2017 15:19:13 +0000 (17:19 +0200)
src/util/SConscript

index 00bd89c013839385981561e160880756e1a62b20..0c3c98a5f4c10ad81f58a356d8bf0d7b95124a8d 100644 (file)
@@ -31,15 +31,17 @@ source_lists = env.ParseSourceList('Makefile.sources')
 
 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',