Made the clean functions overridable.

This commit is contained in:
Manu Evans 2015-04-10 10:53:04 +10:00
parent f07b28b1c0
commit 13bf58372a
4 changed files with 39 additions and 14 deletions

View File

@ -127,12 +127,19 @@
onProject = function(prj)
vstudio.vs2010.generateProject(prj)
end,
onRule = function(rule)
vstudio.vs2010.generateRule(rule)
end,
onRule = vstudio.vs2010.generateRule,
onCleanSolution = vstudio.cleanSolution,
onCleanProject = vstudio.cleanProject,
onCleanTarget = vstudio.cleanTarget,
onCleanSolution = function(sln)
vstudio.cleanSolution(sln)
end,
onCleanProject = function(prj)
vstudio.cleanProject(prj)
end,
onCleanTarget = function(prj)
vstudio.cleanTarget(prj)
end,
pathVars = vstudio.pathVars,

View File

@ -44,9 +44,15 @@
vstudio.vs2010.generateProject(prj)
end,
onCleanSolution = vstudio.cleanSolution,
onCleanProject = vstudio.cleanProject,
onCleanTarget = vstudio.cleanTarget,
onCleanSolution = function(sln)
vstudio.cleanSolution(sln)
end,
onCleanProject = function(prj)
vstudio.cleanProject(prj)
end,
onCleanTarget = function(prj)
vstudio.cleanTarget(prj)
end,
pathVars = vstudio.pathVars,

View File

@ -46,9 +46,15 @@
vstudio.vs2010.generateProject(prj)
end,
onCleanSolution = vstudio.cleanSolution,
onCleanProject = vstudio.cleanProject,
onCleanTarget = vstudio.cleanTarget,
onCleanSolution = function(sln)
vstudio.cleanSolution(sln)
end,
onCleanProject = function(prj)
vstudio.cleanProject(prj)
end,
onCleanTarget = function(prj)
vstudio.cleanTarget(prj)
end,
pathVars = vstudio.pathVars,

View File

@ -46,9 +46,15 @@
vstudio.vs2010.generateProject(prj)
end,
onCleanSolution = vstudio.cleanSolution,
onCleanProject = vstudio.cleanProject,
onCleanTarget = vstudio.cleanTarget,
onCleanSolution = function(sln)
vstudio.cleanSolution(sln)
end,
onCleanProject = function(prj)
vstudio.cleanProject(prj)
end,
onCleanTarget = function(prj)
vstudio.cleanTarget(prj)
end,
pathVars = vstudio.pathVars,