Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add `.servobuild` configuration for the choice of media stack #27183

Merged
merged 1 commit into from Jul 6, 2020
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

@@ -304,6 +304,7 @@ def resolverelative(category, key):
self.config["build"].setdefault("debug-assertions", False)
self.config["build"].setdefault("debug-mozjs", False)
self.config["build"].setdefault("layout-2020", False)
self.config["build"].setdefault("media-stack", "auto")
self.config["build"].setdefault("ccache", "")
self.config["build"].setdefault("rustflags", "")
self.config["build"].setdefault("incremental", None)
@@ -856,11 +857,13 @@ def pick_target_triple(self, target, android, magicleap):

# A guess about which platforms should use the gstreamer media stack
def pick_media_stack(self, media_stack, target):
if not(media_stack):
if (
not(target)
or ("armv7" in target and "android" in target)
or ("x86_64" in target)
if not media_stack:
if self.config["build"]["media-stack"] != "auto":
media_stack = self.config["build"]["media-stack"]
elif (
not target
or ("armv7" in target and "android" in target)
or "x86_64" in target
):
media_stack = "gstreamer"
else:
@@ -46,6 +46,9 @@ dom-backtrace = false
# Default to the “2020” implementation of CSS layout instead of the “2013” one.
layout-2020 = false

# Pick a media stack based on the target. Other values are "gstreamer" and "dummy"
media-stack = "auto"

# Set to the path to your ccache binary to enable caching of compiler outputs
#ccache = "/usr/local/bin/ccache"

ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.