summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/genie.lua
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-04-02 17:48:31 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2016-04-02 17:48:31 +0200
commitae5258faec99adee80ed26e0822241c3eff7c66c (patch)
tree75c76778c21bf2fff9e32b9b9434ee02d857a861 /scripts/genie.lua
parent18a7251918f651ddd0e4a10efc40ec77fbeef03f (diff)
Added PRECOMPILE=0 so in conjunction with ccache it gives better compile speed (nw)
Diffstat (limited to 'scripts/genie.lua')
-rw-r--r--scripts/genie.lua16
1 files changed, 13 insertions, 3 deletions
diff --git a/scripts/genie.lua b/scripts/genie.lua
index 08cf0aa381d..92e3897217e 100644
--- a/scripts/genie.lua
+++ b/scripts/genie.lua
@@ -16,6 +16,14 @@ MAME_DIR = (path.getabsolute("..") .. "/")
local MAME_BUILD_DIR = (MAME_DIR .. _OPTIONS["build-dir"] .. "/")
local naclToolchain = ""
+newoption {
+ trigger = "precompile",
+ description = "Precompiled headers generation.",
+ allowed = {
+ { "0", "Disabled" },
+ { "1", "Enabled" },
+ }
+}
function backtick(cmd)
result = string.gsub(string.gsub(os.outputof(cmd), "\r?\n$", ""), " $", "")
@@ -57,9 +65,11 @@ function layoutbuildtask(_folder, _name)
end
function precompiledheaders()
- configuration { "not xcode4" }
- pchheader("emu.h")
- configuration { }
+ if _OPTIONS["precompile"]==nil or (_OPTIONS["precompile"]~=nil and _OPTIONS["precompile"]=="1") then
+ configuration { "not xcode4" }
+ pchheader("emu.h")
+ configuration { }
+ end
end
function addprojectflags()