summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/genie/src/base/project.lua
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/genie/src/base/project.lua')
-rw-r--r--3rdparty/genie/src/base/project.lua30
1 files changed, 29 insertions, 1 deletions
diff --git a/3rdparty/genie/src/base/project.lua b/3rdparty/genie/src/base/project.lua
index 1fc7375e93e..1c817c4168c 100644
--- a/3rdparty/genie/src/base/project.lua
+++ b/3rdparty/genie/src/base/project.lua
@@ -506,7 +506,7 @@
ext = ".lib"
end
elseif namestyle == "posix" then
- if kind == "WindowedApp" and system == "macosx" then
+ if kind == "WindowedApp" and system == "macosx" and not cfg.options.SkipBundling then
bundlename = name .. ".app"
bundlepath = path.join(dir, bundlename)
dir = path.join(bundlepath, "Contents/MacOS")
@@ -535,6 +535,34 @@
elseif kind == "SharedLib" then
ext = ".prx"
end
+ elseif namestyle == "TegraAndroid" then
+ -- the .so->.apk happens later for Application types
+ if kind == "ConsoleApp" or kind == "WindowedApp" or kind == "SharedLib" then
+ prefix = "lib"
+ ext = ".so"
+ elseif kind == "StaticLib" then
+ prefix = "lib"
+ ext = ".a"
+ end
+ elseif namestyle == "NX" then
+ -- NOTE: it would be cleaner to just output $(TargetExt) for all cases, but
+ -- there is logic elsewhere that assumes a '.' to be present in target name
+ -- such that it can reverse engineer the extension set here.
+ if kind == "ConsoleApp" or kind == "WindowedApp" then
+ ext = ".nspd_root"
+ elseif kind == "StaticLib" then
+ ext = ".a"
+ elseif kind == "SharedLib" then
+ ext = ".nro"
+ end
+ elseif namestyle == "Emscripten" then
+ if kind == "ConsoleApp" or kind == "WindowedApp" then
+ ext = ".html"
+ elseif kind == "StaticLib" then
+ ext = ".bc"
+ elseif kind == "SharedLib" then
+ ext = ".js"
+ end
end
prefix = cfg[field.."prefix"] or cfg.targetprefix or prefix