summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/src/devices.lua
diff options
context:
space:
mode:
author S.Z <yz70s@users.noreply.github.com>2019-08-13 19:20:53 +0200
committer R. Belmont <rb6502@users.noreply.github.com>2019-08-13 13:20:53 -0400
commita3588c18bf225e4e2174b0e71ee3f6564f3735cb (patch)
tree7ca52d1e77576ec3304f7ce786de3ce760c2e383 /scripts/src/devices.lua
parent5384701b766ee4b89ebcc8ad04c7dbe8be0ef856 (diff)
Enable precompiled header usage in the Visual Studio compiler (#5473)
* Enable precompiled header usage in the Visual Studio compiler But only for libraries emu frontend precompile dasm optional Also add emu.h include to hpcdasm.cpp * Include emu.h in some disassembler sources to use precompiled headers * Remove debug message
Diffstat (limited to 'scripts/src/devices.lua')
-rw-r--r--scripts/src/devices.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/src/devices.lua b/scripts/src/devices.lua
index 79bcdec11d4..4940ccdaafd 100644
--- a/scripts/src/devices.lua
+++ b/scripts/src/devices.lua
@@ -54,6 +54,8 @@ function devicesProject(_target, _subtarget)
dofile(path.join("src", "bus.lua"))
+ pchsource(MAME_DIR .. "src/devices/machine/timer.cpp")
+
if #disasm_files > 0 then
project ("dasm")
uuid ("f2d28b0a-6da5-4f78-b629-d834aa00429d")
@@ -78,6 +80,14 @@ if #disasm_files > 0 then
disasm_files
}
+ for key,value in pairs(disasm_files) do
+ if string.endswith(value, ".cpp") then
+ --print("calling pchsource with " .. value)
+ pchsource(value)
+ break
+ end
+ end
+
if #disasm_dependency > 0 then
dependency(disasm_dependency)
end