use premake.warn instead of printf, and fix the visual studio action warnings.

This commit is contained in:
Tom van Dijck 2015-07-14 09:31:06 -07:00
parent 53e4145765
commit 9a4e49efcc
5 changed files with 6 additions and 6 deletions

View File

@ -112,7 +112,7 @@
-- The capabilities of this action
valid_kinds = { "ConsoleApp", "WindowedApp", "StaticLib", "SharedLib", "Makefile", "None" },
valid_kinds = { "ConsoleApp", "WindowedApp", "StaticLib", "SharedLib", "Makefile", "None", "Utility" },
valid_languages = { "C", "C++", "C#" },
valid_tools = {
cc = { "msc" },

View File

@ -28,7 +28,7 @@
-- The capabilities of this action
valid_kinds = { "ConsoleApp", "WindowedApp", "StaticLib", "SharedLib", "Makefile", "None" },
valid_kinds = { "ConsoleApp", "WindowedApp", "StaticLib", "SharedLib", "Makefile", "None", "Utility" },
valid_languages = { "C", "C++", "C#" },
valid_tools = {
cc = { "msc" },

View File

@ -30,7 +30,7 @@
-- The capabilities of this action
valid_kinds = { "ConsoleApp", "WindowedApp", "StaticLib", "SharedLib", "Makefile", "None" },
valid_kinds = { "ConsoleApp", "WindowedApp", "StaticLib", "SharedLib", "Makefile", "None", "Utility" },
valid_languages = { "C", "C++", "C#" },
valid_tools = {
cc = { "msc" },

View File

@ -30,7 +30,7 @@
-- The capabilities of this action
valid_kinds = { "ConsoleApp", "WindowedApp", "StaticLib", "SharedLib", "Makefile", "None" },
valid_kinds = { "ConsoleApp", "WindowedApp", "StaticLib", "SharedLib", "Makefile", "None", "Utility" },
valid_languages = { "C", "C++", "C#" },
valid_tools = {
cc = { "msc" },

View File

@ -120,13 +120,13 @@
-- check if the language for this project is supported by the action.
if not p.action.supports(self.language) then
printf(" Unsupported language '%s' used for '%s'.", self.language, self.name)
p.warn(" Unsupported language '%s' used for '%s'.", self.language, self.name)
end
-- check if the kind for this project is supported by the action.
if not p.action.supports(self.kind) then
printf(" Unsupported kind '%s' used for '%s'.", self.kind, self.name)
p.warn(" 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.