diff options
author | starkos <none@none> | 2009-11-17 23:30:56 +0300 |
---|---|---|
committer | starkos <none@none> | 2009-11-17 23:30:56 +0300 |
commit | a39d79963cc8558a1986e978e543ff42649cdcd8 (patch) | |
tree | 746820464d27fef7a2948453358003e24022434d /src/base/project.lua | |
parent | 6ffd3e388004d05979016fde9f402bcc3afa5b66 (diff) |
Implemented location(), targetdir(), objdir()
Diffstat (limited to 'src/base/project.lua')
-rw-r--r-- | src/base/project.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/base/project.lua b/src/base/project.lua index cb888e9..8c4992e 100644 --- a/src/base/project.lua +++ b/src/base/project.lua @@ -442,7 +442,7 @@ local dir = cfg[field.."dir"] or cfg.targetdir or path.getrelative(cfg.location, cfg.basedir) local prefix = "" local suffix = "" - local bundlepath + local bundlepath, bundlename if namestyle == "windows" then if kind == "ConsoleApp" or kind == "WindowedApp" then @@ -454,7 +454,8 @@ end elseif namestyle == "posix" then if kind == "WindowedApp" and system == "macosx" then - bundlepath = path.join(dir, name .. ".app") + bundlename = name .. ".app" + bundlepath = path.join(dir, bundlename) dir = path.join(bundlepath, "Contents/MacOS") elseif kind == "SharedLib" then prefix = "lib" @@ -481,6 +482,7 @@ result.name = prefix .. name .. suffix result.directory = dir result.fullpath = path.join(result.directory, result.name) + result.bundlename = bundlename or result.name result.bundlepath = bundlepath or result.fullpath if pathstyle == "windows" then |