win32/build.py: restore option "out_of_tree"

Got lost in the previous commit.
This commit is contained in:
Max Kellermann 2015-11-20 23:40:14 +01:00
parent 556f9ee39c
commit ec2a2522aa

View File

@ -92,9 +92,13 @@ class Project:
except FileNotFoundError:
return False
def unpack(self):
global src_path
return untar(self.download(), src_path, self.base)
def unpack(self, out_of_tree=True):
global src_path, build_path
if out_of_tree:
parent_path = src_path
else:
parent_path = build_path
return untar(self.download(), parent_path, self.base)
def make_build_path(self):
path = os.path.join(build_path, self.base)