From ed0de1632e858992a13aa3f5ba984a7aa5d16b76 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Sat, 4 Apr 2015 15:36:44 +0200 Subject: Moved plist generate to lua (nw) --- scripts/src/main.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'scripts/src/main.lua') 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 -- cgit v1.2.3-70-g09d2