libobs: Add a Wayland platform

Introduce the OBS_NIX_PLATFORM_WAYLAND enum value, and try to detect
it when OBS Studio runs by looking into the platform name.
This commit is contained in:
Georges Basile Stavracas Neto
2020-03-06 18:53:42 -03:00
parent 9810fe9220
commit 2b3cb54771
12 changed files with 260 additions and 1 deletions

View File

@@ -28,7 +28,7 @@ elseif(APPLE)
${COCOA}
${IOSURF}
${OPENGL_gl_LIBRARY})
else() #This needs to change to be more specific to get ready for Wayland
else()
find_package(XCB COMPONENTS XCB REQUIRED)
find_package(X11_XCB REQUIRED)

View File

@@ -32,6 +32,11 @@ static void init_winsys(void)
case OBS_NIX_PLATFORM_X11_EGL:
gl_vtable = gl_x11_egl_get_winsys_vtable();
break;
#ifdef ENABLE_WAYLAND
case OBS_NIX_PLATFORM_WAYLAND:
blog(LOG_ERROR, "EGL/Wayland not implemented yet");
break;
#endif
}
assert(gl_vtable != NULL);