summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/src/osd/windows.lua
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/src/osd/windows.lua')
-rw-r--r--scripts/src/osd/windows.lua18
1 files changed, 18 insertions, 0 deletions
diff --git a/scripts/src/osd/windows.lua b/scripts/src/osd/windows.lua
index 470e621bbc1..b5faf8722c6 100644
--- a/scripts/src/osd/windows.lua
+++ b/scripts/src/osd/windows.lua
@@ -32,6 +32,24 @@ function maintargetosdoptions(_target)
"comctl32",
"comdlg32",
}
+
+ local rcfile = MAME_DIR .. "src/" .. _target .. "/osd/windows/" .. _target ..".rc"
+
+ if os.isfile(rcfile) then
+ files {
+ rcfile,
+ }
+ dependency {
+ { "$(OBJDIR)/".._target ..".res" , GEN_DIR .. "/resource/" .. _target .. "vers.rc", true },
+ }
+ else
+ files {
+ MAME_DIR .. "src/osd/windows/mame.rc",
+ }
+ dependency {
+ { "$(OBJDIR)/mame.res" , GEN_DIR .. "/resource/" .. _target .. "vers.rc", true },
+ }
+ end
end