summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/src/3rdparty.lua
diff options
context:
space:
mode:
author Julian Sikorski <belegdol+github@gmail.com>2019-10-18 16:31:08 +0200
committer R. Belmont <rb6502@users.noreply.github.com>2019-10-18 10:31:08 -0400
commit6e66a8364206f69bf8f4591b9ca7bc44f32bdca7 (patch)
tree49707b6db091101746349ac3c7200efeb5d22d4e /scripts/src/3rdparty.lua
parent93a1cde67d59325cb541adef03a532bb08155230 (diff)
Odroid n2 build fixes (#5751)
* Allow specifying NO_OPENGL manually * Switch bgfx to OpenGL ES renderer if NO_X11 is specified * Only link against EGL when NO_X11 is specified on linux, netbsd and openbsd * Only switch bgfx to OpenGL ES on linux, netbsd and openbsd * Indentation fix
Diffstat (limited to 'scripts/src/3rdparty.lua')
-rw-r--r--scripts/src/3rdparty.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/src/3rdparty.lua b/scripts/src/3rdparty.lua
index 970afc7d45b..f4926be55e2 100644
--- a/scripts/src/3rdparty.lua
+++ b/scripts/src/3rdparty.lua
@@ -1383,6 +1383,16 @@ end
"__STDC_CONSTANT_MACROS",
"BGFX_CONFIG_MAX_FRAME_BUFFERS=128",
}
+
+ if _OPTIONS["targetos"]=="linux" or _OPTIONS["targetos"]=="netbsd" or _OPTIONS["targetos"]=="openbsd" then
+ if _OPTIONS["NO_X11"]=="1" then
+ defines {
+ "BGFX_CONFIG_RENDERER_OPENGLES=1",
+ "BGFX_CONFIG_RENDERER_OPENGL=0",
+ }
+ end
+ end
+
files {
MAME_DIR .. "3rdparty/bgfx/src/bgfx.cpp",
MAME_DIR .. "3rdparty/bgfx/src/debug_renderdoc.cpp",