fix targetdir default.
This commit is contained in:
parent
8f8fb3646c
commit
c3d9ca6c89
@ -31,7 +31,14 @@
|
|||||||
function config.buildtargetinfo(cfg, kind, field)
|
function config.buildtargetinfo(cfg, kind, field)
|
||||||
local basedir = cfg.project.location
|
local basedir = cfg.project.location
|
||||||
|
|
||||||
local directory = cfg[field.."dir"] or cfg.targetdir or basedir
|
local targetdir
|
||||||
|
if cfg.platform then
|
||||||
|
targetdir = path.join(basedir, 'bin', cfg.platform, cfg.buildcfg)
|
||||||
|
else
|
||||||
|
targetdir = path.join(basedir, 'bin', cfg.buildcfg)
|
||||||
|
end
|
||||||
|
|
||||||
|
local directory = cfg[field.."dir"] or cfg.targetdir or targetdir
|
||||||
local basename = cfg[field.."name"] or cfg.targetname or cfg.project.name
|
local basename = cfg[field.."name"] or cfg.targetname or cfg.project.name
|
||||||
|
|
||||||
local prefix = cfg[field.."prefix"] or cfg.targetprefix or ""
|
local prefix = cfg[field.."prefix"] or cfg.targetprefix or ""
|
||||||
|
Loading…
Reference in New Issue
Block a user