trunk/scripts/src/main.lua
| r245460 | r245461 | |
| 65 | 65 | links{ |
| 66 | 66 | "ocore_" .. _OPTIONS["osd"], |
| 67 | 67 | } |
| 68 | |
| 69 | local override_resources = false; |
| 70 | |
| 68 | 71 | maintargetosdoptions(_target) |
| 69 | 72 | |
| 70 | 73 | includedirs { |
| r245460 | r245461 | |
| 79 | 82 | GEN_DIR .. "resource", |
| 80 | 83 | } |
| 81 | 84 | |
| 82 | | if _OPTIONS["targetos"]=="macosx" then |
| 85 | if _OPTIONS["targetos"]=="macosx" and (not override_resources) then |
| 83 | 86 | linkoptions { |
| 84 | 87 | "-sectcreate __TEXT __info_plist " .. GEN_DIR .. "/resource/" .. _target .. "-Info.plist" |
| 85 | 88 | } |
| r245460 | r245461 | |
| 92 | 95 | |
| 93 | 96 | end |
| 94 | 97 | |
| 95 | | if _OPTIONS["targetos"]=="windows" then |
| 98 | if _OPTIONS["targetos"]=="windows" and (not override_resources) then |
| 96 | 99 | local rcfile = MAME_DIR .. "src/" .. _target .. "/osd/".._OPTIONS["osd"].."/" .. _target ..".rc" |
| 97 | 100 | if not os.isfile(rcfile) then |
| 98 | 101 | rcfile = MAME_DIR .. "src/" .. _target .. "/osd/windows/" .. _target ..".rc" |