Replace "wrk" with "wks"
This commit is contained in:
parent
a82466c6f4
commit
91220c7d71
@ -28,9 +28,9 @@
|
||||
dotnet = { "mono", "msnet", "pnet" }
|
||||
},
|
||||
|
||||
onWorkspace = function(wrk)
|
||||
onWorkspace = function(wks)
|
||||
premake.escaper(make.esc)
|
||||
premake.generate(wrk, make.getmakefilename(wrk, false), make.generate_solution)
|
||||
premake.generate(wks, make.getmakefilename(wks, false), make.generate_solution)
|
||||
end,
|
||||
|
||||
onProject = function(prj)
|
||||
@ -43,8 +43,8 @@
|
||||
end
|
||||
end,
|
||||
|
||||
onCleanWorkspace = function(wrk)
|
||||
premake.clean.file(wrk, make.getmakefilename(wrk, false))
|
||||
onCleanWorkspace = function(wks)
|
||||
premake.clean.file(wks, make.getmakefilename(wks, false))
|
||||
end,
|
||||
|
||||
onCleanProject = function(prj)
|
||||
|
@ -121,8 +121,8 @@
|
||||
|
||||
-- Solution and project generation logic
|
||||
|
||||
onWorkspace = function(wrk)
|
||||
vstudio.vs2005.generateSolution(wrk)
|
||||
onWorkspace = function(wks)
|
||||
vstudio.vs2005.generateSolution(wks)
|
||||
end,
|
||||
onProject = function(prj)
|
||||
vstudio.vs2010.generateProject(prj)
|
||||
@ -131,8 +131,8 @@
|
||||
vstudio.vs2010.generateRule(rule)
|
||||
end,
|
||||
|
||||
onCleanWorkspace = function(wrk)
|
||||
vstudio.cleanSolution(wrk)
|
||||
onCleanWorkspace = function(wks)
|
||||
vstudio.cleanSolution(wks)
|
||||
end,
|
||||
onCleanProject = function(prj)
|
||||
vstudio.cleanProject(prj)
|
||||
|
@ -37,8 +37,8 @@
|
||||
|
||||
-- Solution and project generation logic
|
||||
|
||||
onWorkspace = function(wrk)
|
||||
vstudio.vs2005.generateSolution(wrk)
|
||||
onWorkspace = function(wks)
|
||||
vstudio.vs2005.generateSolution(wks)
|
||||
end,
|
||||
onProject = function(prj)
|
||||
vstudio.vs2010.generateProject(prj)
|
||||
@ -47,8 +47,8 @@
|
||||
vstudio.vs2010.generateRule(rule)
|
||||
end,
|
||||
|
||||
onCleanWorkspace = function(wrk)
|
||||
vstudio.cleanSolution(wrk)
|
||||
onCleanWorkspace = function(wks)
|
||||
vstudio.cleanSolution(wks)
|
||||
end,
|
||||
onCleanProject = function(prj)
|
||||
vstudio.cleanProject(prj)
|
||||
|
@ -39,8 +39,8 @@
|
||||
|
||||
-- Solution and project generation logic
|
||||
|
||||
onWorkspace = function(wrk)
|
||||
vstudio.vs2005.generateSolution(wrk)
|
||||
onWorkspace = function(wks)
|
||||
vstudio.vs2005.generateSolution(wks)
|
||||
end,
|
||||
onProject = function(prj)
|
||||
vstudio.vs2010.generateProject(prj)
|
||||
@ -49,8 +49,8 @@
|
||||
vstudio.vs2010.generateRule(rule)
|
||||
end,
|
||||
|
||||
onCleanWorkspace = function(wrk)
|
||||
vstudio.cleanSolution(wrk)
|
||||
onCleanWorkspace = function(wks)
|
||||
vstudio.cleanSolution(wks)
|
||||
end,
|
||||
onCleanProject = function(prj)
|
||||
vstudio.cleanProject(prj)
|
||||
|
@ -39,8 +39,8 @@
|
||||
|
||||
-- Solution and project generation logic
|
||||
|
||||
onWorkspace = function(wrk)
|
||||
vstudio.vs2005.generateSolution(wrk)
|
||||
onWorkspace = function(wks)
|
||||
vstudio.vs2005.generateSolution(wks)
|
||||
end,
|
||||
onProject = function(prj)
|
||||
vstudio.vs2010.generateProject(prj)
|
||||
@ -49,8 +49,8 @@
|
||||
vstudio.vs2010.generateRule(rule)
|
||||
end,
|
||||
|
||||
onCleanWorkspace = function(wrk)
|
||||
vstudio.cleanSolution(wrk)
|
||||
onCleanWorkspace = function(wks)
|
||||
vstudio.cleanSolution(wks)
|
||||
end,
|
||||
onCleanProject = function(prj)
|
||||
vstudio.cleanProject(prj)
|
||||
|
@ -25,8 +25,8 @@
|
||||
---
|
||||
|
||||
function workspace.new(name)
|
||||
local wrk = p.container.new(workspace, name)
|
||||
return wrk
|
||||
local wks = p.container.new(workspace, name)
|
||||
return wks
|
||||
end
|
||||
|
||||
|
||||
|
@ -247,14 +247,14 @@
|
||||
--
|
||||
|
||||
function test.createWorkspace()
|
||||
local wrk = workspace("MySolution")
|
||||
local wks = workspace("MySolution")
|
||||
configurations { "Debug", "Release" }
|
||||
|
||||
local prj = project("MyProject")
|
||||
language("C++")
|
||||
kind("ConsoleApp")
|
||||
|
||||
return wrk, prj
|
||||
return wks, prj
|
||||
end
|
||||
|
||||
p.alias(test, "createWorkspace", "createsolution")
|
||||
|
Loading…
Reference in New Issue
Block a user