aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/bootstrap.py
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2018-09-03 13:34:24 +0530
committerManish Goregaokar <manishsmail@gmail.com>2018-09-11 19:34:38 +0530
commiteba68a1a4947b29bcc58fbc502cb70dcc0ac71c0 (patch)
tree12efbf2822d90075c282a8a575a36f2e205bc2a7 /python/servo/bootstrap.py
parent1913ac706cef91125fa8e50629548826c60a66d3 (diff)
downloadservo-eba68a1a4947b29bcc58fbc502cb70dcc0ac71c0.tar.gz
servo-eba68a1a4947b29bcc58fbc502cb70dcc0ac71c0.zip
Add mach bootstrap-gstreamer
Diffstat (limited to 'python/servo/bootstrap.py')
-rw-r--r--python/servo/bootstrap.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/python/servo/bootstrap.py b/python/servo/bootstrap.py
index 7bfa80bd8f4..d6d9dc1d1e6 100644
--- a/python/servo/bootstrap.py
+++ b/python/servo/bootstrap.py
@@ -18,8 +18,8 @@ from servo.util import extract, download_file, host_triple
def check_gstreamer_lib():
- subprocess.call(["pkg-config", "gstreamer-1.0 >= 1.12"],
- stdout=PIPE, stderr=PIPE) == 0
+ return subprocess.call(["pkg-config", "gstreamer-1.0 >= 1.12"],
+ stdout=PIPE, stderr=PIPE) == 0
def run_as_root(command):
if os.geteuid() != 0:
@@ -56,7 +56,12 @@ def install_salt_dependencies(context, force):
install_linux_deps(context, pkgs_apt, pkgs_dnf, force)
def gstreamer(context, force=False):
- pass
+ cur = os.curdir
+ gstdir = os.path.join(cur, "support", "linux", "gstreamer")
+ if not os.path.isdir(os.path.join(gstdir, "gstreamer", "lib")):
+ os.chdir(gstdir)
+ subprocess.call(["bash", "gstreamer.sh"])
+ os.chdir(cur)
def linux(context, force=False):
# Please keep these in sync with the packages in README.md