summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/src/main.lua
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/src/main.lua')
-rw-r--r--scripts/src/main.lua9
1 files changed, 8 insertions, 1 deletions
diff --git a/scripts/src/main.lua b/scripts/src/main.lua
index b4a247dc88b..f4c4e4a01c7 100644
--- a/scripts/src/main.lua
+++ b/scripts/src/main.lua
@@ -81,8 +81,15 @@ function mainProject(_target, _subtarget)
if _OPTIONS["targetos"]=="macosx" then
linkoptions {
- "-sectcreate __TEXT __info_plist " .. GEN_DIR .. "/resource/" .. _OPTIONS["target"] .. "-Info.plist"
+ "-sectcreate __TEXT __info_plist " .. GEN_DIR .. "/resource/" .. _target .. "-Info.plist"
}
+ custombuildtask {
+ { MAME_DIR .. "src/version.c" , GEN_DIR .. "/resource/" .. _target .. "-Info.plist", { MAME_DIR .. "src/build/verinfo.py" }, {"@echo Emitting " .. _target .. "-Info.plist" .. "...", "python $(1) -p -b " .. _target .. " $(<) > $(@)" }},
+ }
+ dependency {
+ { "$(TARGET)" , GEN_DIR .. "/resource/" .. _target .. "-Info.plist", true },
+ }
+
end
if _OPTIONS["targetos"]=="windows" then