summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/src/main.lua
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2022-06-17 05:36:24 +1000
committer Vas Crabb <vas@vastheman.com>2022-06-17 05:36:24 +1000
commit94c22aaf785b5c5e678e2ae73487a0c1a6de23a3 (patch)
treed79534b736cbb4c837a8585d093e38eee59ad5a1 /scripts/src/main.lua
parent662747fb22ded65bf3539a8e24bb80c64cbe6196 (diff)
More scheduler optimisation, Visual Studio build fixes, and cleanup.
emu/schedule.cpp: Fixed a few more pessimising assumptions. Gains a few percent in Ketsui and SNES SuperFX. util/endianness.h: Added some more operations on endian-swizzlers. Changed a few more drivers to use them. sun2.cpp: Fixed uninitialised variable that could cause corrupt video. Fixed some issues with Visual Studio project generation after the changes to Windows resource creation.
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", "\\") .. "\"",