mirror of
https://github.com/holub/mame
synced 2025-04-20 15:32:45 +03:00
Added PRECOMPILE=0 so in conjunction with ccache it gives better compile speed (nw)
This commit is contained in:
parent
18a7251918
commit
ae5258faec
5
makefile
5
makefile
@ -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
|
||||
#-------------------------------------------------
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user