Skip to content

config: Fix config variants override with first option (two passes)

See also:

https://gitlab.freedesktop.org/gstreamer/cerbero/-/issues/484

I've implemented the first option from this issue:

Logically, it should be in reverted order (the platform is the base
of the user config), but the information about the platform, distro,
arch, etc. is defined by the user config; this could be resolved
by parsing the user config twice: first to guess the info for
_load_platform_config(), and secondly to do a final job

So this implementation assumes that the platform config uses only default variants, and if the user config overrides those variants, it must do its adoptations for that variant.

There was a platform config - config/windows.config that depends on 'uwp' variants defined by user config config/cross-uwp-universal.cbc. All logic for uwp==True has been moved from the platform to the user config.

Merge request reports

Loading