meson: don't add libmpv and cplayer features to conf_data

Core code should not use these features as it would mean that a libmpv
build could change an mpv executable and vice-versa.
Also changing one of them should not force a full recompile of the other
one through a change to config.h.
This commit is contained in:
Thomas Weißschuh
2023-01-19 02:46:26 +00:00
committed by Dudemanguy
parent 491aaacca6
commit ede8d29408

View File

@@ -1606,9 +1606,6 @@ configuration = 'meson configure build ' + '-Dprefix=' + get_option('prefix') +
' -Dbuildtype=' + get_option('buildtype') + \
' -Doptimization=' + get_option('optimization')
features += {'cplayer': get_option('cplayer')}
features += {'libmpv-' + get_option('default_library'): get_option('libmpv')}
# Set config.h
conf_data = configuration_data()
@@ -1645,6 +1642,10 @@ conf_data.set_quoted('MPV_CONFDIR', join_paths(get_option('prefix'), get_option(
configure_file(output : 'config.h', configuration : conf_data)
message('List of enabled features: ' + feature_str)
# These are intentionally not added to conf_data.
features += {'cplayer': get_option('cplayer')}
features += {'libmpv-' + get_option('default_library'): get_option('libmpv')}
# build targets
if win32