diff options
author | Martin Robinson <mrobinson@igalia.com> | 2023-07-05 08:46:07 +0200 |
---|---|---|
committer | Martin Robinson <mrobinson@igalia.com> | 2023-07-05 09:12:09 +0200 |
commit | c58d74fe62ce1b82f2d5a193f4f02bb20a7c402e (patch) | |
tree | edd0e707d8ab0909621160921dcc04bf64b5869c /python/servo/command_base.py | |
parent | 041d95e0f4ef08dddab22e0276204240682cdf79 (diff) | |
download | servo-c58d74fe62ce1b82f2d5a193f4f02bb20a7c402e.tar.gz servo-c58d74fe62ce1b82f2d5a193f4f02bb20a7c402e.zip |
Remove UWP / Hololens support
Diffstat (limited to 'python/servo/command_base.py')
-rw-r--r-- | python/servo/command_base.py | 33 |
1 files changed, 1 insertions, 32 deletions
diff --git a/python/servo/command_base.py b/python/servo/command_base.py index 58f8197d6a2..508afb35593 100644 --- a/python/servo/command_base.py +++ b/python/servo/command_base.py @@ -205,7 +205,6 @@ class CommandBase(object): self.context = context self.features = [] self.cross_compile_target = None - self.is_uwp_build = False self.is_android_build = False def get_env_bool(var, default): @@ -510,11 +509,6 @@ class CommandBase(object): extra_path += [path.join(self.msvc_package_dir("llvm"), "bin")] env.setdefault("CC", "clang-cl.exe") env.setdefault("CXX", "clang-cl.exe") - if self.is_uwp_build: - env.setdefault("TARGET_CFLAGS", "") - env.setdefault("TARGET_CXXFLAGS", "") - env["TARGET_CFLAGS"] += " -DWINAPI_FAMILY=WINAPI_FAMILY_APP" - env["TARGET_CXXFLAGS"] += " -DWINAPI_FAMILY=WINAPI_FAMILY_APP" arch = effective_target.split('-')[0] vcpkg_arch = { @@ -523,8 +517,6 @@ class CommandBase(object): "aarch64": "arm64-windows", } target_arch = vcpkg_arch[arch] - if self.is_uwp_build: - target_arch += "-uwp" openssl_base_dir = path.join(self.msvc_package_dir("openssl"), target_arch) # Link openssl @@ -674,11 +666,6 @@ class CommandBase(object): help='Build for Android. If --target is not specified, this ' 'will choose a default target architecture.', ), - CommandArgument( - '--uwp', - group="Cross Compilation", - action='store_true', - help='Build for HoloLens (x64)'), CommandArgument('--win-arm64', action='store_true', help="Use arm64 Windows target"), CommandArgumentGroup('Feature Selection'), CommandArgument( @@ -725,9 +712,7 @@ class CommandBase(object): ] def configuration_decorator(self, *args, **kwargs): - self.configure_cross_compilation( - kwargs['target'], kwargs['android'], - kwargs['uwp'], kwargs['win_arm64']) + self.configure_cross_compilation(kwargs['target'], kwargs['android'], kwargs['win_arm64']) self.features = kwargs.get("features", None) or [] self.configure_media_stack(kwargs['media_stack']) @@ -743,15 +728,8 @@ class CommandBase(object): self, cross_compile_target: Optional[str], android: Optional[str], - uwp: Optional[str], win_arm64: Optional[str]): # Force the UWP-enabled target if the convenience UWP flags are passed. - if uwp and not cross_compile_target: - if win_arm64: - cross_compile_target = 'aarch64-uwp-windows-msvc' - else: - cross_compile_target = 'x86_64-uwp-windows-msvc' - if android is None: android = self.config["build"]["android"] if android: @@ -765,7 +743,6 @@ class CommandBase(object): self.setup_configuration_for_android_target(cross_compile_target) self.cross_compile_target = cross_compile_target - self.is_uwp_build = uwp or (cross_compile_target and "uwp" in cross_compile_target) self.is_android_build = (cross_compile_target and "android" in cross_compile_target) if self.cross_compile_target: @@ -783,7 +760,6 @@ class CommandBase(object): not self.cross_compile_target or ("armv7" in self.cross_compile_target and self.is_android_build) or "x86_64" in self.cross_compile_target - or "uwp" in self.cross_compile_target ): media_stack = "gstreamer" else: @@ -825,10 +801,6 @@ class CommandBase(object): features.append("native-bluetooth") - if self.is_uwp_build: - features.append("no-wgl") - features.append("uwp") - if with_layout_2020 or (self.config["build"]["layout-2020"] and not with_layout_2013): features.append("layout-2020") elif "layout-2020" not in features: @@ -847,8 +819,6 @@ class CommandBase(object): if with_debug_assertions or self.config["build"]["debug-assertions"]: env['RUSTFLAGS'] = env.get('RUSTFLAGS', "") + " -C debug_assertions" - if self.is_uwp_build: - cargo_args += ["-Z", "build-std"] return self.call_rustup_run(["cargo", command] + args + cargo_args, env=env, verbose=verbose) def android_support_dir(self): @@ -934,7 +904,6 @@ class CommandBase(object): check_call(["rustup", "component", "add", "--toolchain", toolchain, component]) needs_toolchain_install = self.cross_compile_target \ - and not self.is_uwp_build \ and self.cross_compile_target.encode("utf-8") not in check_output( ["rustup", "target", "list", "--installed", "--toolchain", toolchain] ) |