summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/genie/src/actions/xcode/xcode_common.lua
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/genie/src/actions/xcode/xcode_common.lua')
-rw-r--r--3rdparty/genie/src/actions/xcode/xcode_common.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/3rdparty/genie/src/actions/xcode/xcode_common.lua b/3rdparty/genie/src/actions/xcode/xcode_common.lua
index 5eed2d99f04..5b69c9f1f17 100644
--- a/3rdparty/genie/src/actions/xcode/xcode_common.lua
+++ b/3rdparty/genie/src/actions/xcode/xcode_common.lua
@@ -786,6 +786,19 @@
StaticLib = '/usr/local/lib',
}
_p(4,'INSTALL_PATH = %s;', installpaths[cfg.kind])
+
+ local infoplist_file = nil
+
+ for _, v in ipairs(cfg.files) do
+ -- for any file named *info.plist, use it as the INFOPLIST_FILE
+ if (string.find (string.lower (v), 'info.plist') ~= nil) then
+ infoplist_file = string.format('$(SRCROOT)/%s', v)
+ end
+ end
+
+ if infoplist_file ~= nil then
+ _p(4,'INFOPLIST_FILE = "%s";', infoplist_file)
+ end
_p(4,'PRODUCT_NAME = "%s";', cfg.buildtarget.basename)
_p(3,'};')