trunk/scripts/genie.lua
| r245230 | r245231 | |
| 154 | 154 | description = "Force DRC C backend.", |
| 155 | 155 | } |
| 156 | 156 | |
| 157 | newoption { |
| 158 | trigger = "USE_BGFX", |
| 159 | description = "Use of BGFX.", |
| 160 | allowed = { |
| 161 | { "0", "Disabled" }, |
| 162 | { "1", "Enabled" }, |
| 163 | } |
| 164 | } |
| 157 | 165 | |
| 166 | |
| 158 | 167 | local os_version = str_to_version(_OPTIONS["os_version"]) |
| 168 | |
| 159 | 169 | USE_BGFX = 1 |
| 160 | 170 | if (_OPTIONS["targetos"]=="macosx" and os_version < 100700) then |
| 161 | 171 | USE_BGFX = 0 |
| 162 | 172 | end |
| 173 | if(_OPTIONS["USE_BGFX"]~=nil) then |
| 174 | USE_BGFX = tonumber(_OPTIONS["USE_BGFX"]) |
| 175 | end |
| 176 | |
| 163 | 177 | GEN_DIR = MAME_BUILD_DIR .. "generated/" |
| 164 | 178 | |
| 165 | 179 | if (_OPTIONS["target"] == nil) then return false end |