trunk/scripts/src/main.lua
| r245462 | r245463 | |
| 66 | 66 | "ocore_" .. _OPTIONS["osd"], |
| 67 | 67 | } |
| 68 | 68 | |
| 69 | override_resources = false; |
| 70 | |
| 69 | 71 | maintargetosdoptions(_target) |
| 70 | 72 | |
| 71 | 73 | includedirs { |
| r245462 | r245463 | |
| 80 | 82 | GEN_DIR .. "resource", |
| 81 | 83 | } |
| 82 | 84 | |
| 83 | | if _OPTIONS["targetos"]=="macosx" then |
| 85 | if _OPTIONS["targetos"]=="macosx" and (not override_resources) then |
| 84 | 86 | linkoptions { |
| 85 | 87 | "-sectcreate __TEXT __info_plist " .. GEN_DIR .. "/resource/" .. _target .. "-Info.plist" |
| 86 | 88 | } |
| r245462 | r245463 | |
| 93 | 95 | |
| 94 | 96 | end |
| 95 | 97 | |
| 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 | |
| 96 | 121 | files { |
| 97 | 122 | MAME_DIR .. "src/".._target .."/" .. _target ..".c", |
| 98 | 123 | MAME_DIR .. "src/version.c", |
trunk/scripts/src/osd/windows.lua
| r245462 | r245463 | |
| 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 |
| 53 | 35 | end |
| 54 | 36 | |
| 55 | 37 | |