VS now links against lib.a instead of .lib for PS3 builds

This commit is contained in:
starkos 2009-05-08 20:40:56 +00:00
parent 95d67737fa
commit 6c73ced855
3 changed files with 31 additions and 3 deletions

View File

@ -270,7 +270,7 @@
local prj = premake.findproject(link)
if prj and kind ~= "system" then
local prjcfg = premake.getconfig(prj, cfgname)
local prjcfg = premake.getconfig(prj, cfgname, cfg.platform)
if kind == "dependencies" or canlink(cfg, prjcfg) then
if (part == "directory") then
item = path.rebase(prjcfg.linktarget.directory, prjcfg.location, cfg.location)

File diff suppressed because one or more lines are too long

View File

@ -383,3 +383,31 @@
/>
]]
end
function T.vs200x_vcproj.LinkerBlock_OnPS3SharedLink()
platforms { "PS3" }
links { "MyLibrary" }
project "MyLibrary"
language "C++"
kind "SharedLib"
prepare()
premake.vs200x_vcproj_VCLinkerTool_GCC(premake.getconfig(prj, "Debug", "PS3"))
test.capture [[
<Tool
Name="VCLinkerTool"
AdditionalOptions="-s"
AdditionalDependencies="libMyLibrary.a"
OutputFile="$(OutDir)\MyProject.elf"
LinkIncremental="0"
AdditionalLibraryDirectories=""
GenerateManifest="false"
ProgramDatabaseFile=""
RandomizedBaseAddress="1"
DataExecutionPrevention="0"
/>
]]
end