Previous 199869 Revisions Next

r36949 Sunday 5th April, 2015 at 11:07:44 UTC by Miodrag Milanović
enable override of resources by osd (nw)
[scripts/src]main.lua

trunk/scripts/src/main.lua
r245460r245461
6565   links{
6666      "ocore_" .. _OPTIONS["osd"],
6767   }
68   
69   local override_resources = false;
70   
6871   maintargetosdoptions(_target)
6972
7073   includedirs {
r245460r245461
7982      GEN_DIR  .. "resource",
8083   }
8184
82   if _OPTIONS["targetos"]=="macosx" then
85   if _OPTIONS["targetos"]=="macosx" and (not override_resources) then
8386      linkoptions {
8487         "-sectcreate __TEXT __info_plist " .. GEN_DIR .. "/resource/" .. _target .. "-Info.plist"
8588      }
r245460r245461
9295
9396   end
9497
95   if _OPTIONS["targetos"]=="windows" then
98   if _OPTIONS["targetos"]=="windows" and (not override_resources) then
9699      local rcfile = MAME_DIR .. "src/" .. _target .. "/osd/".._OPTIONS["osd"].."/" .. _target ..".rc"
97100      if not os.isfile(rcfile) then
98101         rcfile = MAME_DIR .. "src/" .. _target .. "/osd/windows/" .. _target ..".rc"


Previous 199869 Revisions Next


© 1997-2024 The MAME Team