diff options
author | Paul Rouget <me@paulrouget.com> | 2019-09-17 07:33:12 +0200 |
---|---|---|
committer | Paul Rouget <me@paulrouget.com> | 2019-09-17 07:47:01 +0200 |
commit | 94eeea36645a8279ef0aa7a7344244f6b60baf19 (patch) | |
tree | 197c80b5894bef55ee9b4370c9bc5f0da43b511f /python | |
parent | c90c32238c76f4b437598d6c162d6c03ccb01e62 (diff) | |
download | servo-94eeea36645a8279ef0aa7a7344244f6b60baf19.tar.gz servo-94eeea36645a8279ef0aa7a7344244f6b60baf19.zip |
"mach clean" cleans uwp artifacts
Diffstat (limited to 'python')
-rw-r--r-- | python/servo/build_commands.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/python/servo/build_commands.py b/python/servo/build_commands.py index e07a7666e0e..bbd4eca73da 100644 --- a/python/servo/build_commands.py +++ b/python/servo/build_commands.py @@ -741,6 +741,26 @@ class MachCommands(CommandBase): print('Removing virtualenv directory: %s' % virtualenv_path) shutil.rmtree(virtualenv_path) + uwp_artifacts = [ + "support/hololens/x64/", + "support/hololens/ARM/", + "support/hololens/ARM64/", + "support/hololens/ServoApp/x64/", + "support/hololens/ServoApp/ARM/", + "support/hololens/ServoApp/ARM64/", + "support/hololens/ServoApp/Generated Files/", + "support/hololens/ServoApp/BundleArtifacts/", + "support/hololens/ServoApp/support/", + "support/hololens/ServoApp/Debug/", + "support/hololens/ServoApp/Release/", + "support/hololens/packages/", + ] + + for uwp_artifact in uwp_artifacts: + dir_path = path.join(self.get_top_dir(), uwp_artifact) + if path.exists(dir_path): + shutil.rmtree(dir_path) + opts = ["--manifest-path", manifest_path or path.join(self.context.topdir, "Cargo.toml")] if verbose: opts += ["-v"] |