Extract media_stack pick into CommandBase

This commit is contained in:
Tuncer Ayaz 2019-11-20 13:24:21 +00:00
parent 6d8f35c590
commit 81c439a899
4 changed files with 16 additions and 36 deletions

View file

@ -272,18 +272,7 @@ class PostBuildCommands(CommandBase):
target, android = self.pick_target_triple(target, android, magicleap)
# A guess about which platforms should use the gstreamer media stack
if not(media_stack):
if (
not(target) or
("armv7" in target and "android" in target) or
("x86_64" in target)
):
media_stack = "gstreamer"
else:
media_stack = "dummy"
features += ["media-" + media_stack]
features += self.pick_media_stack(media_stack, target)
returncode = self.run_cargo_build_like_command("doc", params, features=features, **kwargs)
if returncode: