mirror of
https://github.com/holub/mame
synced 2025-10-04 16:34:53 +03:00
propagated USE_BGFX for unsupported platforms (nw)
This commit is contained in:
parent
c03feee2c2
commit
a539224998
3
makefile
3
makefile
@ -272,6 +272,9 @@ ifdef MAP
|
||||
PARAMS+= --MAP=$(MAP)
|
||||
endif
|
||||
|
||||
ifdef USE_BGFX
|
||||
PARAMS+= --USE_BGFX=$(USE_BGFX)
|
||||
endif
|
||||
# extension for executables
|
||||
EXE =
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user