X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/01456a3fa364f562f51305597afa73999238a8f4..4dd8339b2a1a269284096e6bbaa9b6646774650e:/build/tools/builder.py diff --git a/build/tools/builder.py b/build/tools/builder.py index 1097162652..484e274f57 100755 --- a/build/tools/builder.py +++ b/build/tools/builder.py @@ -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