PS3 target fix

This commit is contained in:
starkos 2009-06-02 19:44:46 +00:00
parent e70595de03
commit 297a996d47
3 changed files with 4 additions and 6 deletions

View File

@ -393,7 +393,7 @@
for _, cfg in pairs(prj.__configs) do
-- determine which conventions the target should follow for this config
local pathstyle = premake.actions[_ACTION].pathstyle or "posix"
local namestyle = premake.gettool(cfg).namestyle or "posix"
local namestyle = premake.platforms[cfg.platform].namestyle or premake.gettool(cfg).namestyle or "posix"
-- build the targets
cfg.buildtarget = premake.gettarget(cfg, "build", pathstyle, namestyle, cfg.system)

View File

@ -59,13 +59,13 @@
cfgsuffix = "ps3",
iscrosscompiler = true,
nosharedlibs = true,
targetstyle = "ps3",
namestyle = "PS3",
},
Xbox360 =
{
cfgsuffix = "xbox360",
iscrosscompiler = true,
targetstyle = "windows",
namestyle = "windows",
},
}

View File

@ -366,9 +366,7 @@
-- Fix things up based on the current system
local kind = cfg.kind
if system == "PS3" then
namestyle = "PS3"
elseif premake.iscppproject(cfg) then
if premake.iscppproject(cfg) then
-- On Windows, shared libraries link against a static import library
if (namestyle == "windows" or system == "windows") and kind == "SharedLib" and direction == "link" then
kind = "StaticLib"