mirror of
https://github.com/servo/servo.git
synced 2025-07-18 21:03:45 +01:00
Support building UWP with native UWP rustc target.
This commit is contained in:
parent
723df4abcf
commit
5367da98f8
11 changed files with 949 additions and 919 deletions
|
@ -634,6 +634,7 @@ install them, let us know by filing a bug!")
|
|||
extra_path += [path.join(self.msvc_package_dir("llvm"), "bin")]
|
||||
extra_path += [path.join(self.msvc_package_dir("ninja"), "bin")]
|
||||
extra_path += [self.msvc_package_dir("nuget")]
|
||||
extra_path += [path.join(self.msvc_package_dir("xargo"))]
|
||||
|
||||
arch = (target or host_triple()).split('-')[0]
|
||||
vcpkg_arch = {
|
||||
|
@ -821,11 +822,6 @@ install them, let us know by filing a bug!")
|
|||
action='store_true',
|
||||
help='Build with frame pointer enabled, used by the background hang monitor.',
|
||||
),
|
||||
CommandArgument(
|
||||
'--uwp',
|
||||
default=None,
|
||||
action='store_true',
|
||||
help='Build for HoloLens (x64)'),
|
||||
CommandArgument('--with-raqote', default=None, action='store_true'),
|
||||
CommandArgument('--with-layout-2020', default=None, action='store_true'),
|
||||
CommandArgument('--without-wgl', default=None, action='store_true'),
|
||||
|
@ -912,7 +908,10 @@ install them, let us know by filing a bug!")
|
|||
assert "--features" not in cargo_args
|
||||
args += ["--features", " ".join(features)]
|
||||
|
||||
return self.call_rustup_run(["cargo", command] + args + cargo_args, env=env, verbose=verbose)
|
||||
if target and 'uwp' in target:
|
||||
return call(["xargo", command] + args + cargo_args, env=env, verbose=verbose)
|
||||
else:
|
||||
return self.call_rustup_run(["cargo", command] + args + cargo_args, env=env, verbose=verbose)
|
||||
|
||||
def android_support_dir(self):
|
||||
return path.join(self.context.topdir, "support", "android")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue