Added PRECOMPILE=0 so in conjunction with ccache it gives better compile speed (nw)

This commit is contained in:
Miodrag Milanovic 2016-04-02 17:48:31 +02:00
parent 18a7251918
commit ae5258faec
2 changed files with 18 additions and 3 deletions

View File

@ -98,6 +98,7 @@
# MSBUILD = 1
# USE_LIBUV = 1
# IGNORE_BAD_LOCALISATION=1
# PRECOMPILE = 0
ifdef PREFIX_MAKEFILE
include $(PREFIX_MAKEFILE)
@ -712,6 +713,10 @@ ifdef USE_LIBUV
PARAMS += --USE_LIBUV='$(USE_LIBUV)'
endif
ifdef PRECOMPILE
PARAMS += --precompile='$(PRECOMPILE)'
endif
#-------------------------------------------------
# All scripts
#-------------------------------------------------

View File

@ -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()