Build fixes for using Cairo on MSW.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67816 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2011-05-31 19:16:55 +00:00
parent 769c3372a2
commit 9f2b6b31b7
5 changed files with 46 additions and 30 deletions

View File

@@ -89,17 +89,21 @@ class Builder:
return self.name
def clean(self, dir=None, projectFile=None):
def clean(self, dir=None, projectFile=None, options=None):
"""
dir = the directory containing the project file
projectFile = Some formats need to explicitly specify the project file's name
"""
args = [self.getProgramPath(), "clean"]
if dir:
args.append(dir)
if self.isAvailable():
result = runInDir(args)
if options:
optionList = list(options)
else:
optionList = []
optionList.insert(0, self.getProgramPath())
optionList.append("clean")
result = runInDir(optionList, dir)
return result
return False