Previous 199869 Revisions Next

r40600 Saturday 5th September, 2015 at 09:53:19 UTC by Miodrag Milanović
made FORCE_VERSION_COMPILE option to be used for build server (nw)
[/trunk]makefile
[scripts]genie.lua
[scripts/src]main.lua

trunk/makefile
r249111r249112
9292
9393# DRIVERS = src/mame/drivers/1942.c,src/mame/drivers/cops.c
9494
95# FORCE_VERSION_COMPILE = 1
96
9597-include useroptions.mak
9698
9799###########################################################################
r249111r249112
630632PARAMS += --DRIVERS='$(DRIVERS)'
631633endif
632634
635ifdef FORCE_VERSION_COMPILE
636PARAMS += --FORCE_VERSION_COMPILE='$(FORCE_VERSION_COMPILE)'
637endif
638
633639#-------------------------------------------------
634640# All scripts
635641#-------------------------------------------------
trunk/scripts/genie.lua
r249111r249112
374374   description = "List of drivers to compile.",
375375}
376376
377newoption {
378   trigger = "FORCE_VERSION_COMPILE",
379   description = "Force compiling of version.c file.",
380   allowed = {
381      { "0",   "Disabled"    },
382      { "1",   "Enabled"      },
383   }
384}
385
377386if _OPTIONS["SHLIB"]=="1" then
378387   LIBTYPE = "SharedLib"
379388else
trunk/scripts/src/main.lua
r249111r249112
234234      { MAME_DIR .. "src/".._target .."/" .. _subtarget ..".lst" ,  GEN_DIR  .. _target .. "/" .. _subtarget .."/drivlist.c",    {  MAME_DIR .. "src/build/makelist.py" }, {"@echo Building driver list...",    PYTHON .. " $(1) $(<) > $(@)" }},
235235   }
236236end   
237
238if _OPTIONS["FORCE_VERSION_COMPILE"]=="1" then
237239   configuration { "gmake" }
238240      dependency {
239241         { ".PHONY", ".FORCE", true },
240242         { "$(OBJDIR)/src/version.o", ".FORCE", true },
241243      }
242
244end
243245   configuration { "mingw*" }
244246      custombuildtask {   
245247         { 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 .. " $(<) > $(@)" }},


Previous 199869 Revisions Next


© 1997-2024 The MAME Team