use premake.warn instead of printf, and fix the visual studio action warnings.
This commit is contained in:
parent
53e4145765
commit
9a4e49efcc
@ -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" },
|
||||
|
@ -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" },
|
||||
|
@ -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" },
|
||||
|
@ -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" },
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user