mirror of
https://github.com/holub/mame
synced 2025-10-04 16:34:53 +03:00
Enabled BGFX support for SteamLink
This commit is contained in:
parent
30ef0dc427
commit
22e6c350ed
2
makefile
2
makefile
@ -1200,7 +1200,7 @@ endif
|
|||||||
ifndef MARVELL_ROOTFS
|
ifndef MARVELL_ROOTFS
|
||||||
$(error MARVELL_ROOTFS is not set)
|
$(error MARVELL_ROOTFS is not set)
|
||||||
endif
|
endif
|
||||||
$(SILENT) $(GENIE) $(PARAMS) --gcc=steamlink --gcc_version=$(GCC_VERSION) --USE_BGFX=0 --NO_OPENGL=1 --NO_USE_MIDI=1 --NO_X11=1 --NOASM=1 --SDL_INSTALL_ROOT=$(MARVELL_ROOTFS)/usr gmake
|
$(SILENT) $(GENIE) $(PARAMS) --gcc=steamlink --gcc_version=$(GCC_VERSION) --NO_OPENGL=1 --NO_USE_MIDI=1 --NO_X11=1 --NOASM=1 --SDL_INSTALL_ROOT=$(MARVELL_ROOTFS)/usr gmake
|
||||||
|
|
||||||
.PHONY: steamlink
|
.PHONY: steamlink
|
||||||
ifndef MARVELL_SDK_PATH
|
ifndef MARVELL_SDK_PATH
|
||||||
|
@ -1073,7 +1073,10 @@ configuration { "linux-*" }
|
|||||||
configuration { "steamlink" }
|
configuration { "steamlink" }
|
||||||
links {
|
links {
|
||||||
"dl",
|
"dl",
|
||||||
}
|
"EGL",
|
||||||
|
"GLESv2",
|
||||||
|
"SDL2",
|
||||||
|
}
|
||||||
defines {
|
defines {
|
||||||
"EGL_API_FB",
|
"EGL_API_FB",
|
||||||
}
|
}
|
||||||
|
@ -730,10 +730,14 @@ end
|
|||||||
MAME_DIR .. "3rdparty/bgfx/include",
|
MAME_DIR .. "3rdparty/bgfx/include",
|
||||||
MAME_DIR .. "3rdparty/bgfx/3rdparty",
|
MAME_DIR .. "3rdparty/bgfx/3rdparty",
|
||||||
MAME_DIR .. "3rdparty/bx/include",
|
MAME_DIR .. "3rdparty/bx/include",
|
||||||
MAME_DIR .. "3rdparty/bgfx/3rdparty/khronos",
|
|
||||||
MAME_DIR .. "3rdparty/bgfx/3rdparty/dxsdk/include",
|
MAME_DIR .. "3rdparty/bgfx/3rdparty/dxsdk/include",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
configuration { "not steamlink"}
|
||||||
|
includedirs {
|
||||||
|
MAME_DIR .. "3rdparty/bgfx/3rdparty/khronos",
|
||||||
|
}
|
||||||
|
|
||||||
configuration { "vs*" }
|
configuration { "vs*" }
|
||||||
includedirs {
|
includedirs {
|
||||||
MAME_DIR .. "3rdparty/bx/include/compat/msvc",
|
MAME_DIR .. "3rdparty/bx/include/compat/msvc",
|
||||||
|
@ -287,7 +287,6 @@ if BASE_TARGETOS=="unix" then
|
|||||||
else
|
else
|
||||||
if _OPTIONS["NO_X11"]=="1" then
|
if _OPTIONS["NO_X11"]=="1" then
|
||||||
_OPTIONS["USE_QTDEBUG"] = "0"
|
_OPTIONS["USE_QTDEBUG"] = "0"
|
||||||
USE_BGFX = 0
|
|
||||||
else
|
else
|
||||||
libdirs {
|
libdirs {
|
||||||
"/usr/X11/lib",
|
"/usr/X11/lib",
|
||||||
|
@ -120,6 +120,8 @@ static void* sdlNativeWindowHandle(SDL_Window* _window)
|
|||||||
return wmi.info.cocoa.window;
|
return wmi.info.cocoa.window;
|
||||||
# elif BX_PLATFORM_WINDOWS
|
# elif BX_PLATFORM_WINDOWS
|
||||||
return wmi.info.win.window;
|
return wmi.info.win.window;
|
||||||
|
# elif BX_PLATFORM_STEAMLINK
|
||||||
|
return wmi.info.vivante.window;
|
||||||
# endif // BX_PLATFORM_
|
# endif // BX_PLATFORM_
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user