made FORCE_VERSION_COMPILE option to be used for build server (nw)

This commit is contained in:
Miodrag Milanovic 2015-09-05 11:53:19 +02:00
parent aa8c6d2b8b
commit 6359b876b9
3 changed files with 18 additions and 1 deletions

View file

@ -92,6 +92,8 @@
# DRIVERS = src/mame/drivers/1942.c,src/mame/drivers/cops.c
# FORCE_VERSION_COMPILE = 1
-include useroptions.mak
###########################################################################
@ -630,6 +632,10 @@ ifdef DRIVERS
PARAMS += --DRIVERS='$(DRIVERS)'
endif
ifdef FORCE_VERSION_COMPILE
PARAMS += --FORCE_VERSION_COMPILE='$(FORCE_VERSION_COMPILE)'
endif
#-------------------------------------------------
# All scripts
#-------------------------------------------------

View file

@ -374,6 +374,15 @@ newoption {
description = "List of drivers to compile.",
}
newoption {
trigger = "FORCE_VERSION_COMPILE",
description = "Force compiling of version.c file.",
allowed = {
{ "0", "Disabled" },
{ "1", "Enabled" },
}
}
if _OPTIONS["SHLIB"]=="1" then
LIBTYPE = "SharedLib"
else

View file

@ -234,12 +234,14 @@ if (_OPTIONS["DRIVERS"] == nil) then
{ MAME_DIR .. "src/".._target .."/" .. _subtarget ..".lst" , GEN_DIR .. _target .. "/" .. _subtarget .."/drivlist.c", { MAME_DIR .. "src/build/makelist.py" }, {"@echo Building driver list...", PYTHON .. " $(1) $(<) > $(@)" }},
}
end
if _OPTIONS["FORCE_VERSION_COMPILE"]=="1" then
configuration { "gmake" }
dependency {
{ ".PHONY", ".FORCE", true },
{ "$(OBJDIR)/src/version.o", ".FORCE", true },
}
end
configuration { "mingw*" }
custombuildtask {
{ MAME_DIR .. "src/version.c" , GEN_DIR .. "/resource/" .. rctarget .. "vers.rc", { MAME_DIR .. "src/build/verinfo.py" }, {"@echo Emitting " .. rctarget .. "vers.rc" .. "...", PYTHON .. " $(1) -r -b " .. rctarget .. " $(<) > $(@)" }},