trunk/scripts/src/main.lua
| r245461 | r245462 | |
| 66 | 66 | "ocore_" .. _OPTIONS["osd"], |
| 67 | 67 | } |
| 68 | 68 | |
| 69 | | local override_resources = false; |
| 70 | | |
| 71 | 69 | maintargetosdoptions(_target) |
| 72 | 70 | |
| 73 | 71 | includedirs { |
| r245461 | r245462 | |
| 82 | 80 | GEN_DIR .. "resource", |
| 83 | 81 | } |
| 84 | 82 | |
| 85 | | if _OPTIONS["targetos"]=="macosx" and (not override_resources) then |
| 83 | if _OPTIONS["targetos"]=="macosx" then |
| 86 | 84 | linkoptions { |
| 87 | 85 | "-sectcreate __TEXT __info_plist " .. GEN_DIR .. "/resource/" .. _target .. "-Info.plist" |
| 88 | 86 | } |
| r245461 | r245462 | |
| 95 | 93 | |
| 96 | 94 | end |
| 97 | 95 | |
| 98 | | if _OPTIONS["targetos"]=="windows" and (not override_resources) then |
| 99 | | local rcfile = MAME_DIR .. "src/" .. _target .. "/osd/".._OPTIONS["osd"].."/" .. _target ..".rc" |
| 100 | | if not os.isfile(rcfile) then |
| 101 | | rcfile = MAME_DIR .. "src/" .. _target .. "/osd/windows/" .. _target ..".rc" |
| 102 | | end |
| 103 | | |
| 104 | | if os.isfile(rcfile) then |
| 105 | | files { |
| 106 | | rcfile, |
| 107 | | } |
| 108 | | dependency { |
| 109 | | { "$(OBJDIR)/".._target ..".res" , GEN_DIR .. "/resource/" .. _target .. "vers.rc", true }, |
| 110 | | } |
| 111 | | else |
| 112 | | files { |
| 113 | | MAME_DIR .. "src/osd/windows/mame.rc", |
| 114 | | } |
| 115 | | dependency { |
| 116 | | { "$(OBJDIR)/mame.res" , GEN_DIR .. "/resource/" .. _target .. "vers.rc", true }, |
| 117 | | } |
| 118 | | end |
| 119 | | end |
| 120 | | |
| 121 | 96 | files { |
| 122 | 97 | MAME_DIR .. "src/".._target .."/" .. _target ..".c", |
| 123 | 98 | MAME_DIR .. "src/version.c", |
trunk/scripts/src/osd/windows.lua
| r245461 | r245462 | |
| 32 | 32 | "comctl32", |
| 33 | 33 | "comdlg32", |
| 34 | 34 | } |
| 35 | |
| 36 | local rcfile = MAME_DIR .. "src/" .. _target .. "/osd/windows/" .. _target ..".rc" |
| 37 | |
| 38 | if os.isfile(rcfile) then |
| 39 | files { |
| 40 | rcfile, |
| 41 | } |
| 42 | dependency { |
| 43 | { "$(OBJDIR)/".._target ..".res" , GEN_DIR .. "/resource/" .. _target .. "vers.rc", true }, |
| 44 | } |
| 45 | else |
| 46 | files { |
| 47 | MAME_DIR .. "src/osd/windows/mame.rc", |
| 48 | } |
| 49 | dependency { |
| 50 | { "$(OBJDIR)/mame.res" , GEN_DIR .. "/resource/" .. _target .. "vers.rc", true }, |
| 51 | } |
| 52 | end |
| 35 | 53 | end |
| 36 | 54 | |
| 37 | 55 | |