Navigation Menu

Skip to content

Commit

Permalink
Allow building and cleaning for UWP without system GStreamer
Browse files Browse the repository at this point in the history
  • Loading branch information
ferjm committed Oct 8, 2019
1 parent 7371c86 commit becb694
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python/servo/command_base.py
Expand Up @@ -558,7 +558,9 @@ def get_nightly_binary_path(self, nightly_date):

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
Expand Down Expand Up @@ -663,7 +665,7 @@ def build_env(self, hosts_file_path=None, target=None, is_build=False, test_unit
# 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")
Expand Down

0 comments on commit becb694

Please sign in to comment.