aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/command_base.py
diff options
context:
space:
mode:
authorFernando Jimenez Moreno <ferjmoreno@gmail.com>2019-10-08 10:27:10 +0200
committerFernando Jimenez Moreno <ferjmoreno@gmail.com>2019-10-08 10:27:10 +0200
commitbecb694013c72134271caac5082ee22b6c31c127 (patch)
tree13f267d5bf6dda6879ddb81077c7ab5bcf3181e6 /python/servo/command_base.py
parent7371c8689d83edb11aa62dcdf3f7c93bde6e930a (diff)
downloadservo-becb694013c72134271caac5082ee22b6c31c127.tar.gz
servo-becb694013c72134271caac5082ee22b6c31c127.zip
Allow building and cleaning for UWP without system GStreamer
Diffstat (limited to 'python/servo/command_base.py')
-rw-r--r--python/servo/command_base.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/python/servo/command_base.py b/python/servo/command_base.py
index b20a8403427..90623613489 100644
--- a/python/servo/command_base.py
+++ b/python/servo/command_base.py
@@ -558,7 +558,9 @@ class CommandBase(object):
return self.get_executable(destination_folder)
- def needs_gstreamer_env(self, target, env):
+ def needs_gstreamer_env(self, target, env, uwp=False):
+ if uwp:
+ return False
try:
if check_gstreamer_lib():
return False
@@ -663,7 +665,7 @@ install them, let us know by filing a bug!")
# Always build harfbuzz from source
env["HARFBUZZ_SYS_NO_PKG_CONFIG"] = "true"
- if self.needs_gstreamer_env(target or host_triple(), env):
+ if is_build and self.needs_gstreamer_env(target or host_triple(), env, uwp):
gstpath = gstreamer_root(target or host_triple(), env, self.get_top_dir())
extra_path += [path.join(gstpath, "bin")]
libpath = path.join(gstpath, "lib")