meson: convert gtest to an internal dependency
[mesa.git] / src / util / SConscript
index 582592c203f28b2aaade9445e2bbb4f61c3d061a..0c3c98a5f4c10ad81f58a356d8bf0d7b95124a8d 100644 (file)
@@ -2,10 +2,6 @@ import common
 
 Import('*')
 
-SConscript([
-   'xmlpool',
-])
-
 from sys import executable as python_cmd
 
 env = env.Clone()
@@ -35,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',