Add new configuration kind "None" to support non-building Visual Studio configurations (i.e. header-only projects)
This commit is contained in:
parent
5b0cda32ef
commit
bbcafa0d6f
@ -173,7 +173,9 @@
|
||||
local architecture = vstudio.archFromConfig(prjcfg, true)
|
||||
|
||||
_p(2,'{%s}.%s.ActiveCfg = %s|%s', prj.uuid, slncfg[cfg], prjplatform, architecture)
|
||||
_p(2,'{%s}.%s.Build.0 = %s|%s', prj.uuid, slncfg[cfg], prjplatform, architecture)
|
||||
if prjcfg.kind ~= premake.NONE then
|
||||
_p(2,'{%s}.%s.Build.0 = %s|%s', prj.uuid, slncfg[cfg], prjplatform, architecture)
|
||||
end
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
@ -815,6 +815,7 @@
|
||||
allowed = {
|
||||
"ConsoleApp",
|
||||
"Makefile",
|
||||
"None",
|
||||
"SharedLib",
|
||||
"StaticLib",
|
||||
"WindowedApp",
|
||||
|
@ -31,6 +31,7 @@
|
||||
premake.LINUX = "linux"
|
||||
premake.MACOSX = "macosx"
|
||||
premake.MAKEFILE = "Makefile"
|
||||
premake.NONE = "None"
|
||||
premake.POSIX = "posix"
|
||||
premake.PS3 = "ps3"
|
||||
premake.SHAREDLIB = "SharedLib"
|
||||
|
@ -645,3 +645,24 @@
|
||||
EndGlobalSection
|
||||
]]
|
||||
end
|
||||
|
||||
|
||||
---
|
||||
-- Configurations with a kind of "None" should be excluded from the build.
|
||||
---
|
||||
|
||||
function suite.excludesFromBuild_onNone()
|
||||
project "MyProject"
|
||||
kind "None"
|
||||
prepare()
|
||||
test.capture [[
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Win32 = Debug|Win32
|
||||
Release|Win32 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{C9135098-6047-8142-B10E-D27E7F73FCB3}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{C9135098-6047-8142-B10E-D27E7F73FCB3}.Release|Win32.ActiveCfg = Release|Win32
|
||||
EndGlobalSection
|
||||
]]
|
||||
end
|
||||
|
Reference in New Issue
Block a user