Use new --targets API instead of --target-files for meson >= 0.50.0
Created by: mensinda
Meson 0.50.0 will introduce breaking changes to the introspection API. This includes the deprecation/removal of the --target-files
option (see https://github.com/mesonbuild/meson/pull/4731). There are also other introspection changes which are documented here (relevant release snippets).
With this PR mcw will make use of the new --targets
API and fallback to the old --target-files
for older meson versions.