mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Allow building and cleaning for UWP without system GStreamer
This commit is contained in:
parent
7371c8689d
commit
becb694013
1 changed files with 4 additions and 2 deletions
|
@ -558,7 +558,9 @@ class CommandBase(object):
|
||||||
|
|
||||||
return self.get_executable(destination_folder)
|
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:
|
try:
|
||||||
if check_gstreamer_lib():
|
if check_gstreamer_lib():
|
||||||
return False
|
return False
|
||||||
|
@ -663,7 +665,7 @@ install them, let us know by filing a bug!")
|
||||||
# Always build harfbuzz from source
|
# Always build harfbuzz from source
|
||||||
env["HARFBUZZ_SYS_NO_PKG_CONFIG"] = "true"
|
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())
|
gstpath = gstreamer_root(target or host_triple(), env, self.get_top_dir())
|
||||||
extra_path += [path.join(gstpath, "bin")]
|
extra_path += [path.join(gstpath, "bin")]
|
||||||
libpath = path.join(gstpath, "lib")
|
libpath = path.join(gstpath, "lib")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue