summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2015-03-27 17:19:57 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2015-03-27 17:19:57 +0100
commita5392249980a7d9d8ea56567ead27d63a97bcf34 (patch)
tree3c96539486e0ddaec9c08ead87e68940de930a0c
parentc03feee2c295ffc21494b3e371ed44e61b6971b7 (diff)
propagated USE_BGFX for unsupported platforms (nw)
-rw-r--r--makefile3
-rw-r--r--scripts/genie.lua14
2 files changed, 17 insertions, 0 deletions
diff --git a/makefile b/makefile
index 95a2ede466a..ad180511360 100644
--- a/makefile
+++ b/makefile
@@ -272,6 +272,9 @@ ifdef MAP
PARAMS+= --MAP=$(MAP)
endif
+ifdef USE_BGFX
+PARAMS+= --USE_BGFX=$(USE_BGFX)
+endif
# extension for executables
EXE =
diff --git a/scripts/genie.lua b/scripts/genie.lua
index 7be13b98733..635ccafa5f5 100644
--- a/scripts/genie.lua
+++ b/scripts/genie.lua
@@ -154,12 +154,26 @@ newoption {
description = "Force DRC C backend.",
}
+newoption {
+ trigger = "USE_BGFX",
+ description = "Use of BGFX.",
+ allowed = {
+ { "0", "Disabled" },
+ { "1", "Enabled" },
+ }
+}
+
local os_version = str_to_version(_OPTIONS["os_version"])
+
USE_BGFX = 1
if (_OPTIONS["targetos"]=="macosx" and os_version < 100700) then
USE_BGFX = 0
end
+if(_OPTIONS["USE_BGFX"]~=nil) then
+ USE_BGFX = tonumber(_OPTIONS["USE_BGFX"])
+end
+
GEN_DIR = MAME_BUILD_DIR .. "generated/"
if (_OPTIONS["target"] == nil) then return false end