Commit 1de3124c authored by Ghislain MARY's avatar Ghislain MARY

More generic cleaning for libvpx that also works on Windows.

parent 605f5df0
......@@ -115,10 +115,10 @@ class Target:
if os.path.isdir(self.abs_work_dir):
shutil.rmtree(self.abs_work_dir, ignore_errors=False, onerror=self.handle_remove_read_only)
# special hack for vpx: we have switched from inside sources build to outside, so we must clean the folder properly
vpx_dir = self.external_source_path + "/externals/libvpx/"
if os.path.isfile(vpx_dir + "/Makefile"):
vpx_dir = os.path.join(self.external_source_path, "externals", "libvpx")
if os.path.isfile(os.path.join(vpx_dir, "Makefile")):
info("Cleaning vpx source directory since we are now building it from outside directory...")
Popen("make distclean".split(" "), cwd=vpx_dir).wait()
Popen("git clean -xfd".split(" "), cwd=vpx_dir).wait()
def veryclean(self):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment