diff options
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 |
commit | a5392249980a7d9d8ea56567ead27d63a97bcf34 (patch) | |
tree | 3c96539486e0ddaec9c08ead87e68940de930a0c | |
parent | c03feee2c295ffc21494b3e371ed44e61b6971b7 (diff) |
propagated USE_BGFX for unsupported platforms (nw)
-rw-r--r-- | makefile | 3 | ||||
-rw-r--r-- | scripts/genie.lua | 14 |
2 files changed, 17 insertions, 0 deletions
@@ -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 |