summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/src/main.lua
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/src/main.lua')
-rw-r--r--scripts/src/main.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/src/main.lua b/scripts/src/main.lua
index ec19bc578f6..12e42834cd0 100644
--- a/scripts/src/main.lua
+++ b/scripts/src/main.lua
@@ -215,6 +215,14 @@ end
GEN_DIR .. "resource",
}
+ configuration { "vs20*"}
+ -- See https://github.com/bkaradzic/GENie/issues/544
+ includedirs {
+ MAME_DIR .. "scripts/resources/windows/" .. _target,
+ GEN_DIR .. "resource",
+ }
+ configuration { }
+
if (STANDALONE==true) then
standalone();
@@ -256,6 +264,12 @@ if (STANDALONE~=true) then
resincludedirs {
MAME_DIR .. "scripts/resources/windows/mame",
}
+ configuration { "vs20*"}
+ -- See https://github.com/bkaradzic/GENie/issues/544
+ includedirs {
+ MAME_DIR .. "scripts/resources/windows/mame",
+ }
+ configuration { }
end
local mainfile = MAME_DIR .. "src/" .. _target .. "/" .. _subtarget .. ".cpp"
@@ -353,6 +367,7 @@ if (STANDALONE~=true) then
{ "$(OBJDIR)/" .. _target .. "_" .. _subtarget .. "_vers.res", rcincfile, true },
}
prebuildcommands {
+ "mkdir \"" .. path.translate(GEN_DIR .. "resource/", "\\") .. "\" 2>NUL",
"mkdir \"" .. path.translate(GEN_DIR .. _target .. "/" .. _subtarget .. "/", "\\") .. "\" 2>NUL",
"@echo Emitting " .. _target .. "_" .. _subtarget .. "_vers.rc" .. "...",
PYTHON .. " \"" .. path.translate(MAME_DIR .. "scripts/build/verinfo.py", "\\") .. "\" -f rc -t " .. _target .. " -s " .. _subtarget .. " -e " .. exename .. " -o \"" .. path.translate(rcversfile) .. "\" -r \"" .. path.translate(rcincfile, "\\") .. "\" \"" .. path.translate(GEN_DIR .. "version.cpp", "\\") .. "\"",