aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/build_commands.py
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2019-08-20 22:42:12 -0400
committerGitHub <noreply@github.com>2019-08-20 22:42:12 -0400
commit2e0d1ad567dce6be99dbae33c3e0dd9993a8d4fb (patch)
tree71eaedb753e1ff512caa65eb37806b20b37e05c7 /python/servo/build_commands.py
parent6af82582ebaa8135a436cda463779d9a0fe6c5b6 (diff)
parent7d167461e860e90d83bdaceea83a719bb216690b (diff)
downloadservo-2e0d1ad567dce6be99dbae33c3e0dd9993a8d4fb.tar.gz
servo-2e0d1ad567dce6be99dbae33c3e0dd9993a8d4fb.zip
Auto merge of #24005 - ferjm:windows.pkgconfig, r=Manishearth
Simplify Windows build by not setting PKG_CONFIG_PATH - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #23177 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/24005) <!-- Reviewable:end -->
Diffstat (limited to 'python/servo/build_commands.py')
-rw-r--r--python/servo/build_commands.py19
1 files changed, 1 insertions, 18 deletions
diff --git a/python/servo/build_commands.py b/python/servo/build_commands.py
index dbd5e2d905c..4aa72a457fc 100644
--- a/python/servo/build_commands.py
+++ b/python/servo/build_commands.py
@@ -30,7 +30,7 @@ from mach.decorators import (
from mach.registrar import Registrar
from mach_bootstrap import _get_exec_path
-from servo.command_base import CommandBase, cd, call, check_call, BIN_SUFFIX, append_to_path_env
+from servo.command_base import CommandBase, cd, call, check_call, BIN_SUFFIX, append_to_path_env, gstreamer_root
from servo.util import host_triple
@@ -776,23 +776,6 @@ class MachCommands(CommandBase):
return True
-def gstreamer_root(target, env):
- arch = {
- "x86_64": "X86_64",
- "x86": "X86",
- "aarch64": "ARM64",
- }
- gst_x64 = arch[target.split('-')[0]]
- gst_default_path = path.join("C:\\gstreamer\\1.0", gst_x64)
- gst_env = "GSTREAMER_1_0_ROOT_" + gst_x64
- if env.get(gst_env) is not None:
- return env.get(gst_env)
- elif os.path.exists(path.join(gst_default_path, "bin", "ffi-7.dll")):
- return gst_default_path
- else:
- return None
-
-
def package_gstreamer_dlls(env, servo_exe_dir, target, uwp):
gst_root = gstreamer_root(target, env)
if not gst_root: