checked lib section for a static lib

This commit is contained in:
LiamDevine 2010-06-16 19:20:41 +01:00
parent 50e1665c34
commit 223b5429f0
3 changed files with 14 additions and 7 deletions

View File

@ -295,7 +295,7 @@ premake.vstudio.vcxproj = { }
function item_def_lib(cfg)
if cfg.kind == 'StaticLib' then
_p(1,'<Lib>')
_p(2,'<OutputFile>$(OutDir)%s.lib</OutputFile>',"some_name")
_p(2,'<OutputFile>$(OutDir)%s</OutputFile>',cfg.buildtarget.name)
_p(1,'</Lib>')
end
end

View File

@ -26,4 +26,15 @@
kind "StaticLib"
local buffer = get_buffer()
test.string_does_not_contain(buffer,'<Link>*.*</Link>')
end
function vs10_project_kinds.staticLib_containsLibSection()
kind "StaticLib"
local buffer = get_buffer()
test.string_contains(buffer,'<ItemDefinitionGroup*.*<Lib>*.*</Lib>*.*</ItemDefinitionGroup>')
end
function vs10_project_kinds.staticLib_libSection_containsProjectNameDotLib()
kind "StaticLib"
local buffer = get_buffer()
test.string_contains(buffer,'<Lib>*.*<OutputFile>*.*MyProject.lib*.*</OutputFile>*.*</Lib>')
end

View File

@ -16,16 +16,12 @@ fix ProgramDataBaseFileName tag currently at line 285 see note which states
this can not be converted when using the upgrade tool
added for now but it will removed or altered when I find out
what is the correct thing to do.
check why <MinimalRebuild>true</MinimalRebuild> is missing in a debug static lib build
support C
support Managed C++
support C#
find out why a unit test is failing
fails at the following test_os line 16
function suite.findlib_FindSystemLib()
local libname = iif(os.is("windows"), "user32", "m")
test.istrue(os.findlib(libname))
end
No64BitChecks is removed after being deprciated in previous releases