PS3 target fix
This commit is contained in:
parent
e70595de03
commit
297a996d47
@ -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)
|
||||
|
@ -59,13 +59,13 @@
|
||||
cfgsuffix = "ps3",
|
||||
iscrosscompiler = true,
|
||||
nosharedlibs = true,
|
||||
targetstyle = "ps3",
|
||||
namestyle = "PS3",
|
||||
},
|
||||
Xbox360 =
|
||||
{
|
||||
cfgsuffix = "xbox360",
|
||||
iscrosscompiler = true,
|
||||
targetstyle = "windows",
|
||||
namestyle = "windows",
|
||||
},
|
||||
}
|
||||
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user