summaryrefslogtreecommitdiffstatshomepage
path: root/scripts
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2015-09-05 11:53:19 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2015-09-05 11:53:19 +0200
commit6359b876b97dcaa20e9b8896d33135fedd7d0fbf (patch)
treef352b990673bebe256eb21c1db003c5abad3d3f5 /scripts
parentaa8c6d2b8b660cf87865a2d5c4db2acd317f488d (diff)
made FORCE_VERSION_COMPILE option to be used for build server (nw)
Diffstat (limited to 'scripts')
-rw-r--r--scripts/genie.lua9
-rw-r--r--scripts/src/main.lua4
2 files changed, 12 insertions, 1 deletions
diff --git a/scripts/genie.lua b/scripts/genie.lua
index 50526e5fd41..56a2f5126a5 100644
--- a/scripts/genie.lua
+++ b/scripts/genie.lua
@@ -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
diff --git a/scripts/src/main.lua b/scripts/src/main.lua
index 25cc1a32ca7..6baad44c566 100644
--- a/scripts/src/main.lua
+++ b/scripts/src/main.lua
@@ -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 .. " $(<) > $(@)" }},