2014-08-11 21:02:36 +00:00
|
|
|
---
|
|
|
|
-- vs2010_rules_targets.lua
|
|
|
|
-- Generate a Visual Studio 201x custom rules targets file.
|
|
|
|
-- Copyright (c) 2014 Jason Perkins and the Premake project
|
2014-09-10 20:38:38 +00:00
|
|
|
---
|
2014-08-11 21:02:36 +00:00
|
|
|
|
2017-04-25 05:44:13 +00:00
|
|
|
local p = premake
|
|
|
|
p.vstudio.vs2010.rules.targets = {}
|
2014-08-14 21:45:44 +00:00
|
|
|
|
2017-04-25 05:44:13 +00:00
|
|
|
local m = p.vstudio.vs2010.rules.targets
|
2014-08-14 21:45:44 +00:00
|
|
|
m.elements = {}
|
2014-08-11 21:02:36 +00:00
|
|
|
|
|
|
|
|
2014-08-14 21:37:35 +00:00
|
|
|
---
|
|
|
|
-- Entry point; generate the root <Project> element.
|
|
|
|
---
|
|
|
|
|
2014-08-14 21:45:44 +00:00
|
|
|
m.elements.project = function(r)
|
2014-08-11 21:50:55 +00:00
|
|
|
return {
|
|
|
|
p.vstudio.projectElement,
|
2014-08-14 21:37:35 +00:00
|
|
|
m.availableItemGroup,
|
2016-08-02 17:19:56 +00:00
|
|
|
m.computedProperties,
|
2014-08-14 21:37:35 +00:00
|
|
|
m.computeInputsGroup,
|
|
|
|
m.usingTask,
|
|
|
|
m.ruleTarget,
|
2014-09-23 19:19:57 +00:00
|
|
|
m.computeOutputTarget,
|
2014-08-11 21:50:55 +00:00
|
|
|
}
|
|
|
|
end
|
|
|
|
|
2014-08-14 21:45:44 +00:00
|
|
|
function m.generate(r)
|
2015-03-26 00:02:39 +00:00
|
|
|
p.xmlUtf8()
|
2014-08-14 21:45:44 +00:00
|
|
|
p.callArray(m.elements.project, r)
|
2014-08-11 21:50:55 +00:00
|
|
|
p.pop()
|
|
|
|
p.out('</Project>')
|
2014-08-11 21:02:36 +00:00
|
|
|
end
|
2014-08-14 21:37:35 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
-- Generate the opening item group element.
|
|
|
|
---
|
|
|
|
|
|
|
|
m.elements.availableItemGroup = function(r)
|
|
|
|
return {
|
|
|
|
m.propertyPageSchema,
|
|
|
|
m.availableItemName,
|
|
|
|
}
|
|
|
|
end
|
|
|
|
|
|
|
|
function m.availableItemGroup(r)
|
|
|
|
p.push('<ItemGroup>')
|
|
|
|
p.callArray(m.elements.availableItemGroup, r)
|
|
|
|
p.pop('</ItemGroup>')
|
|
|
|
end
|
|
|
|
|
|
|
|
|
2016-08-02 17:19:56 +00:00
|
|
|
---
|
|
|
|
-- Generate the computed outputs property.
|
|
|
|
---
|
|
|
|
function m.computedProperties(r)
|
|
|
|
-- create shadow context.
|
|
|
|
local pathVars = p.rule.createPathVars(r, "%%(%s)")
|
|
|
|
local ctx = p.context.extent(r, { pathVars = pathVars })
|
|
|
|
|
|
|
|
-- now use the shadow context to detoken.
|
|
|
|
local buildoutputs = ctx.buildoutputs
|
|
|
|
|
|
|
|
-- write the output.
|
|
|
|
if buildoutputs and #buildoutputs > 0 then
|
|
|
|
local outputs = table.concat(buildoutputs, ";")
|
|
|
|
p.push('<ItemDefinitionGroup>')
|
|
|
|
p.push('<%s>', r.name)
|
|
|
|
p.x('<Outputs>%s</Outputs>', path.translate(outputs))
|
|
|
|
p.pop('</%s>', r.name)
|
|
|
|
p.pop('</ItemDefinitionGroup>')
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
2014-08-14 21:37:35 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
-- Generate the computed input targets group.
|
|
|
|
---
|
|
|
|
|
|
|
|
m.elements.computeInputsGroup = function(r)
|
|
|
|
return {
|
2016-06-10 00:51:11 +00:00
|
|
|
m.computeCompileInputsTargets,
|
2014-08-14 21:37:35 +00:00
|
|
|
m.computeLinkInputsTargets,
|
|
|
|
m.computeLibInputsTargets,
|
|
|
|
}
|
|
|
|
end
|
|
|
|
|
|
|
|
function m.computeInputsGroup(r)
|
|
|
|
p.push('<PropertyGroup>')
|
|
|
|
p.callArray(m.elements.computeInputsGroup, r)
|
|
|
|
p.pop('</PropertyGroup>')
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
-- Generate the rule's target element.
|
|
|
|
---
|
|
|
|
|
|
|
|
m.elements.ruleTargetAttributes = function(r)
|
|
|
|
return {
|
|
|
|
m.targetName,
|
|
|
|
m.beforeTargets,
|
|
|
|
m.afterTargets,
|
|
|
|
m.targetCondition,
|
|
|
|
m.targetOutputs,
|
|
|
|
m.targetInputs,
|
|
|
|
m.dependsOnTargets,
|
|
|
|
}
|
|
|
|
end
|
|
|
|
|
|
|
|
m.elements.ruleTarget = function(r)
|
|
|
|
return {
|
|
|
|
m.selectedFiles,
|
|
|
|
m.tlog,
|
|
|
|
m.message,
|
2014-09-10 20:38:38 +00:00
|
|
|
m.tlogWrite,
|
|
|
|
m.tlogRead,
|
2014-08-14 21:37:35 +00:00
|
|
|
m.rule,
|
|
|
|
}
|
|
|
|
end
|
|
|
|
|
|
|
|
function m.ruleTarget(r)
|
|
|
|
local attribs = p.capture(function()
|
|
|
|
p.push()
|
|
|
|
p.callArray(m.elements.ruleTargetAttributes, r)
|
|
|
|
p.pop()
|
|
|
|
end)
|
|
|
|
|
|
|
|
p.push('<Target')
|
|
|
|
p.outln(attribs .. '>')
|
|
|
|
p.callArray(m.elements.ruleTarget, r)
|
|
|
|
p.pop('</Target>')
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-09-10 20:38:38 +00:00
|
|
|
---
|
|
|
|
-- Write out the tlog entries. I've extended this with an input
|
|
|
|
-- dependencies fix as described here:
|
|
|
|
-- http://www.virtualdub.org/blog/pivot/entry.php?id=334
|
|
|
|
---
|
|
|
|
|
|
|
|
m.elements.tlog = function(r)
|
|
|
|
return {
|
|
|
|
m.tlogSource,
|
|
|
|
m.tlogInputs,
|
|
|
|
m.tlogProperties,
|
|
|
|
}
|
|
|
|
end
|
|
|
|
|
|
|
|
function m.tlog(r)
|
|
|
|
p.push('<ItemGroup>')
|
|
|
|
p.push('<%s_tlog', r.name)
|
|
|
|
p.w('Include="%%(%s.Outputs)"', r.name)
|
|
|
|
p.w('Condition="\'%%(%s.Outputs)\' != \'\' and \'%%(%s.ExcludedFromBuild)\' != \'true\'">', r.name, r.name)
|
|
|
|
p.callArray(m.elements.tlog, r)
|
|
|
|
p.pop('</%s_tlog>', r.name)
|
|
|
|
p.pop('</ItemGroup>')
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-08-14 21:37:35 +00:00
|
|
|
---
|
|
|
|
-- Write out the rule element.
|
|
|
|
---
|
|
|
|
|
|
|
|
m.elements.ruleAttributes = function(r)
|
|
|
|
return {
|
|
|
|
m.ruleCondition,
|
|
|
|
m.commandLineTemplate,
|
2014-09-04 18:22:49 +00:00
|
|
|
m.properties,
|
2014-09-19 19:26:56 +00:00
|
|
|
m.additionalOptions,
|
2014-09-10 20:38:38 +00:00
|
|
|
m.inputs,
|
|
|
|
m.standardOutputImportance,
|
2014-08-14 21:37:35 +00:00
|
|
|
}
|
|
|
|
end
|
|
|
|
|
|
|
|
function m.rule(r)
|
|
|
|
local attribs = p.capture(function()
|
|
|
|
p.push()
|
|
|
|
p.callArray(m.elements.ruleAttributes, r)
|
|
|
|
p.pop()
|
|
|
|
end)
|
|
|
|
|
|
|
|
p.w('<%s', r.name)
|
|
|
|
p.outln(attribs .. ' />')
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
-- Generate the rule's computed output element.
|
|
|
|
---
|
|
|
|
|
2014-09-23 19:19:57 +00:00
|
|
|
m.elements.computeOutputItems = function(r)
|
|
|
|
return {
|
|
|
|
m.outputs,
|
|
|
|
m.linkLib,
|
|
|
|
}
|
|
|
|
end
|
|
|
|
|
|
|
|
m.elements.computeOutputTarget = function(r)
|
2014-08-14 21:37:35 +00:00
|
|
|
return {
|
2014-09-10 20:38:38 +00:00
|
|
|
m.makeDir,
|
2014-08-14 21:37:35 +00:00
|
|
|
}
|
|
|
|
end
|
|
|
|
|
2014-09-23 19:19:57 +00:00
|
|
|
function m.computeOutputTarget(r)
|
2014-08-14 21:37:35 +00:00
|
|
|
p.push('<Target')
|
|
|
|
p.w('Name="Compute%sOutput"', r.name)
|
|
|
|
p.w('Condition="\'@(%s)\' != \'\'">', r.name)
|
2014-09-23 19:19:57 +00:00
|
|
|
p.push('<ItemGroup>')
|
|
|
|
p.callArray(m.elements.computeOutputItems, r)
|
|
|
|
p.pop('</ItemGroup>')
|
|
|
|
p.callArray(m.elements.computeOutputTarget, r)
|
2014-08-14 21:37:35 +00:00
|
|
|
p.pop('</Target>')
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
-- Implementations of individual elements.
|
|
|
|
---
|
|
|
|
|
2014-09-19 19:26:56 +00:00
|
|
|
function m.additionalOptions(r)
|
|
|
|
p.w('AdditionalOptions="%%(%s.AdditionalOptions)"', r.name)
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-08-14 21:37:35 +00:00
|
|
|
function m.commandLineTemplate(r)
|
|
|
|
p.w('CommandLineTemplate="%%(%s.CommandLineTemplate)"', r.name)
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function m.afterTargets(r)
|
|
|
|
p.w('AfterTargets="$(%sAfterTargets)"', r.name)
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function m.availableItemName(r)
|
|
|
|
p.push('<AvailableItemName Include="%s">', r.name)
|
|
|
|
p.w('<Targets>_%s</Targets>', r.name)
|
|
|
|
p.pop('</AvailableItemName>')
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function m.beforeTargets(r)
|
|
|
|
p.w('BeforeTargets="$(%sBeforeTargets)"', r.name)
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function m.computeLibInputsTargets(r)
|
|
|
|
p.push('<ComputeLibInputsTargets>')
|
|
|
|
p.w('$(ComputeLibInputsTargets);')
|
|
|
|
p.w('Compute%sOutput;', r.name)
|
|
|
|
p.pop('</ComputeLibInputsTargets>')
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function m.computeLinkInputsTargets(r)
|
|
|
|
p.push('<ComputeLinkInputsTargets>')
|
|
|
|
p.w('$(ComputeLinkInputsTargets);')
|
|
|
|
p.w('Compute%sOutput;', r.name)
|
|
|
|
p.pop('</ComputeLinkInputsTargets>')
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-06-10 00:51:11 +00:00
|
|
|
function m.computeCompileInputsTargets(r)
|
|
|
|
p.push('<ComputeCompileInputsTargets>')
|
|
|
|
p.w('$(ComputeCompileInputsTargets);')
|
|
|
|
p.w('Compute%sOutput;', r.name)
|
|
|
|
p.pop('</ComputeCompileInputsTargets>')
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-08-14 21:37:35 +00:00
|
|
|
function m.dependsOnTargets(r)
|
2014-09-10 20:38:38 +00:00
|
|
|
p.w('DependsOnTargets="$(%sDependsOn);Compute%sOutput"', r.name, r.name)
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-09-23 19:19:57 +00:00
|
|
|
function m.inputs(r)
|
|
|
|
p.w('Inputs="%%(%s.Identity)"', r.name)
|
2014-09-10 20:38:38 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-09-23 19:19:57 +00:00
|
|
|
function m.linkLib(r)
|
2016-08-02 17:19:56 +00:00
|
|
|
-- create shadow context.
|
|
|
|
local pathVars = p.rule.createPathVars(r, "%%(%s)")
|
|
|
|
local ctx = p.context.extent(r, { pathVars = pathVars })
|
|
|
|
|
|
|
|
-- now use the shadow context to detoken.
|
|
|
|
local buildoutputs = ctx.buildoutputs
|
|
|
|
|
2016-06-10 00:51:11 +00:00
|
|
|
local linkable, compileable
|
2016-08-02 17:19:56 +00:00
|
|
|
for i = 1, #buildoutputs do
|
|
|
|
if (path.islinkable(buildoutputs[i])) then
|
2014-09-23 19:19:57 +00:00
|
|
|
linkable = true
|
|
|
|
end
|
2016-08-02 17:19:56 +00:00
|
|
|
if (path.iscppfile(buildoutputs[i])) then
|
2016-06-10 00:51:11 +00:00
|
|
|
compileable = true
|
|
|
|
end
|
2014-09-23 19:19:57 +00:00
|
|
|
end
|
|
|
|
if linkable then
|
|
|
|
for i, el in pairs { 'Link', 'Lib', 'ImpLib' } do
|
|
|
|
p.push('<%s', el)
|
|
|
|
p.w('Include="%%(%sOutputs.Identity)"', r.name)
|
|
|
|
p.w('Condition="\'%%(Extension)\'==\'.obj\' or \'%%(Extension)\'==\'.res\' or \'%%(Extension)\'==\'.rsc\' or \'%%(Extension)\'==\'.lib\'" />')
|
|
|
|
p.pop()
|
|
|
|
end
|
|
|
|
end
|
2016-06-10 00:51:11 +00:00
|
|
|
if compileable then
|
|
|
|
p.push('<ClCompile', el)
|
|
|
|
p.w('Include="%%(%sOutputs.Identity)"', r.name)
|
|
|
|
p.w('Condition="\'%%(Extension)\'==\'.cc\' or \'%%(Extension)\'==\'.cpp\' or \'%%(Extension)\'==\'.cxx\' or \'%%(Extension)\'==\'.c\'" />')
|
|
|
|
p.pop()
|
|
|
|
end
|
2014-09-10 20:38:38 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function m.makeDir(r)
|
2014-09-23 19:19:57 +00:00
|
|
|
p.w('<MakeDir Directories="@(%sOutputs->\'%%(RootDir)%%(Directory)\')" />', r.name)
|
2014-08-14 21:37:35 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function m.message(r)
|
|
|
|
p.w('<Message')
|
|
|
|
p.w(' Importance="High"')
|
|
|
|
p.w(' Text="%%(%s.ExecutionDescription)" />', r.name)
|
2016-08-02 17:19:56 +00:00
|
|
|
end
|
2014-08-14 21:37:35 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2014-09-23 19:19:57 +00:00
|
|
|
function m.outputs(r)
|
|
|
|
p.w('<%sOutputs', r.name)
|
|
|
|
p.w(' Condition="\'@(%s)\' != \'\' and \'%%(%s.ExcludedFromBuild)\' != \'true\'"', r.name, r.name)
|
2016-06-10 00:51:11 +00:00
|
|
|
p.w(' Include="%%(%s.Outputs)" />', r.name)
|
2014-09-23 19:19:57 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-08-02 17:19:56 +00:00
|
|
|
function m.properties(r)
|
2015-05-05 18:46:00 +00:00
|
|
|
local defs = r.propertydefinition
|
2014-09-04 18:22:49 +00:00
|
|
|
for i = 1, #defs do
|
|
|
|
local name = defs[i].name
|
|
|
|
p.w('%s="%%(%s.%s)"', name, r.name, name)
|
|
|
|
end
|
2016-08-02 17:19:56 +00:00
|
|
|
end
|
2014-09-04 18:22:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2014-08-14 21:37:35 +00:00
|
|
|
function m.propertyPageSchema(r)
|
|
|
|
p.w('<PropertyPageSchema')
|
|
|
|
p.w(' Include="$(MSBuildThisFileDirectory)$(MSBuildThisFileName).xml" />')
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-09-04 18:22:49 +00:00
|
|
|
function m.ruleCondition(r)
|
|
|
|
p.w('Condition="\'@(%s)\' != \'\' and \'%%(%s.ExcludedFromBuild)\' != \'true\'"', r.name, r.name)
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-08-14 21:37:35 +00:00
|
|
|
function m.selectedFiles(r)
|
|
|
|
p.push('<ItemGroup Condition="\'@(SelectedFiles)\' != \'\'">')
|
|
|
|
p.w('<%s Remove="@(%s)" Condition="\'%%(Identity)\' != \'@(SelectedFiles)\'" />', r.name, r.name)
|
|
|
|
p.pop('</ItemGroup>')
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-09-10 20:38:38 +00:00
|
|
|
function m.standardOutputImportance(r)
|
|
|
|
p.w('StandardOutputImportance="High"')
|
|
|
|
p.w('StandardErrorImportance="High"')
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-08-14 21:37:35 +00:00
|
|
|
function m.targetCondition(r)
|
|
|
|
p.w('Condition="\'@(%s)\' != \'\'"', r.name)
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function m.targetInputs(r)
|
2014-09-04 18:22:49 +00:00
|
|
|
local extra = {}
|
2015-05-05 18:46:00 +00:00
|
|
|
local defs = r.propertydefinition
|
2014-09-04 18:22:49 +00:00
|
|
|
for i = 1, #defs do
|
|
|
|
local def = defs[i]
|
|
|
|
if def.dependency then
|
|
|
|
table.insert(extra, string.format("%%(%s.%s);", r.name, def.name))
|
|
|
|
end
|
|
|
|
end
|
|
|
|
extra = table.concat(extra)
|
|
|
|
p.w('Inputs="%%(%s.Identity);%%(%s.AdditionalDependencies);%s$(MSBuildProjectFile)"', r.name, r.name, extra)
|
2014-08-14 21:37:35 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function m.targetName(r)
|
|
|
|
p.w('Name="_%s"', r.name)
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function m.targetOutputs(r)
|
|
|
|
p.w('Outputs="%%(%s.Outputs)"', r.name)
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-09-10 20:38:38 +00:00
|
|
|
function m.tlogInputs(r)
|
|
|
|
p.w("<Inputs>@(%s, ';')</Inputs>", r.name)
|
2014-08-14 21:37:35 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-09-10 20:38:38 +00:00
|
|
|
function m.tlogProperties(r)
|
2015-05-05 18:46:00 +00:00
|
|
|
local defs = r.propertydefinition
|
2014-09-10 20:38:38 +00:00
|
|
|
for i = 1, #defs do
|
|
|
|
local def = defs[i]
|
|
|
|
if def.dependency then
|
|
|
|
p.w('<%s>%%(%s.%s)</%s>', def.name, r.name, def.name, def.name)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function m.tlogRead(r)
|
|
|
|
local extra = {}
|
2015-05-05 18:46:00 +00:00
|
|
|
local defs = r.propertydefinition
|
2014-09-10 20:38:38 +00:00
|
|
|
for i = 1, #defs do
|
|
|
|
local def = defs[i]
|
|
|
|
if def.dependency then
|
|
|
|
table.insert(extra, string.format("%%(%s_tlog.%s);", r.name, def.name))
|
|
|
|
end
|
|
|
|
end
|
|
|
|
extra = table.concat(extra)
|
|
|
|
|
|
|
|
p.w('<WriteLinesToFile')
|
|
|
|
p.w(' Condition="\'@(%s_tlog)\' != \'\' and \'%%(%s_tlog.ExcludedFromBuild)\' != \'true\'"', r.name, r.name)
|
|
|
|
p.w(' File="$(IntDir)$(ProjectName).read.1.tlog"')
|
|
|
|
p.w(' Lines="^%%(%s_tlog.Inputs);%s$(MSBuildProjectFullPath);%%(%s_tlog.Fullpath)" />', r.name, extra, r.name)
|
2014-08-14 21:37:35 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-09-10 20:38:38 +00:00
|
|
|
function m.tlogWrite(r)
|
2014-08-14 21:37:35 +00:00
|
|
|
p.w('<WriteLinesToFile')
|
|
|
|
p.w(' Condition="\'@(%s_tlog)\' != \'\' and \'%%(%s_tlog.ExcludedFromBuild)\' != \'true\'"', r.name, r.name)
|
|
|
|
p.w(' File="$(IntDir)$(ProjectName).write.1.tlog"')
|
2014-09-10 20:38:38 +00:00
|
|
|
p.w(' Lines="^%%(%s_tlog.Source);%%(%s_tlog.Fullpath)" />', r.name, r.name)
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function m.tlogSource(r)
|
|
|
|
p.w("<Source>@(%s, '|')</Source>", r.name)
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function m.usingTask(r)
|
|
|
|
p.push('<UsingTask')
|
|
|
|
p.w('TaskName="%s"', r.name)
|
|
|
|
p.w('TaskFactory="XamlTaskFactory"')
|
|
|
|
p.w('AssemblyName="Microsoft.Build.Tasks.v4.0">')
|
|
|
|
p.w('<Task>$(MSBuildThisFileDirectory)$(MSBuildThisFileName).xml</Task>')
|
|
|
|
p.pop('</UsingTask>')
|
2014-08-14 21:37:35 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|