add validation of valid_kinds and valid_languages

This commit is contained in:
Tom van Dijck 2015-05-20 17:23:24 -07:00
parent 90857e578d
commit 7ce257badc

View File

@ -117,6 +117,14 @@
function p.project.bake(self)
local sln = self.solution
if not premake.action.supports(premake.action.current(), self.language) then
printf(" Unsupported language '%s' used for '%s'.", self.language, self.name)
end
if not premake.action.supports(premake.action.current(), self.kind) then
printf(" Unsupported kind '%s' used for '%s'.", self.kind, self.name)
end
-- Add filtering terms to the context to make it as specific as I can.
-- Start with the same filtering that was applied at the solution level.