util: Gate installing drirc on use_xmlconfig

Pointless otherwise. This should shrink the on-disk size of the Android and
Windows builds slightly, but I have not tested this.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Suggested-by: Emma Anholt <emma@anholt.net>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Reviewed-by: Eric Engestrom <eric@igalia.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19626>
This commit is contained in:
Alyssa Rosenzweig 2022-11-09 15:50:03 -05:00 committed by Marge Bot
parent 662bb5977b
commit 6cd392cbe2
1 changed files with 5 additions and 2 deletions

View File

@ -172,8 +172,6 @@ files_mesa_util = files(
files_drirc = files('00-mesa-defaults.conf')
install_data(files_drirc, install_dir : join_paths(get_option('datadir'), 'drirc.d'))
if with_tests
prog_xmllint = find_program('xmllint', required : false, native : true)
if prog_xmllint.found()
@ -295,6 +293,11 @@ if opt_xmlconfig.enabled() and not supports_xmlconfig
endif
use_xmlconfig = supports_xmlconfig and not opt_xmlconfig.disabled()
# Only install the drirc file if we build with support for parsing drirc files
if use_xmlconfig
install_data(files_drirc, install_dir : join_paths(get_option('datadir'), 'drirc.d'))
endif
xmlconfig_deps = []
if use_xmlconfig
xmlconfig_deps += dep_expat