This repository has been archived on 2022-12-23. You can view files and clone it, but cannot push or open issues or pull requests.
fuck-premake-old2/src/actions/vstudio/vs2010_rules_props.lua

28 lines
477 B
Lua
Raw Normal View History

---
-- vs2010_rules_props.lua
-- Generate a Visual Studio 201x custom rules properties file.
-- Copyright (c) 2014 Jason Perkins and the Premake project
--
premake.vstudio.rules = {}
local m = premake.vstudio.rules
local p = premake
m.elements = {}
m.elements.ruleProps = function(rule)
return {
p.xmlUtf8,
p.vstudio.projectElement,
}
end
function m.generateRuleProps(rule)
p.callArray(m.elements.ruleProps, rule)
p.pop()
p.out('</Project>')
end