diff options
author | 2015-04-04 15:36:44 +0200 | |
---|---|---|
committer | 2015-04-04 15:36:44 +0200 | |
commit | ed0de1632e858992a13aa3f5ba984a7aa5d16b76 (patch) | |
tree | f62e606cbcb0c44fd544af0d5b03dac640250d70 /scripts/src/main.lua | |
parent | 4788c3222db2446366cbc65221487efe592df3a4 (diff) |
Moved plist generate to lua (nw)
Diffstat (limited to 'scripts/src/main.lua')
-rw-r--r-- | scripts/src/main.lua | 9 |
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 |