aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/command_base.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/servo/command_base.py')
-rw-r--r--python/servo/command_base.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/python/servo/command_base.py b/python/servo/command_base.py
index ee12594ee83..b20a8403427 100644
--- a/python/servo/command_base.py
+++ b/python/servo/command_base.py
@@ -614,7 +614,7 @@ install them, let us know by filing a bug!")
'vcdir': vcinstalldir,
}
- def build_env(self, hosts_file_path=None, target=None, is_build=False, test_unit=False):
+ def build_env(self, hosts_file_path=None, target=None, is_build=False, test_unit=False, uwp=False):
"""Return an extended environment dictionary."""
env = os.environ.copy()
if sys.platform == "win32" and type(env['PATH']) == unicode:
@@ -639,7 +639,10 @@ install them, let us know by filing a bug!")
"i686": "x86-windows",
"aarch64": "arm64-windows",
}
- openssl_base_dir = path.join(self.msvc_package_dir("openssl"), vcpkg_arch[arch])
+ target_arch = vcpkg_arch[arch]
+ if uwp:
+ target_arch += "-uwp"
+ openssl_base_dir = path.join(self.msvc_package_dir("openssl"), target_arch)
# Link openssl
env["OPENSSL_INCLUDE_DIR"] = path.join(openssl_base_dir, "include")