linuxbsd: move all X11 stuff in its own directory
This allows implementing `DisplayServer`s like Wayland without making a mess in the source tree.
This commit is contained in:
parent
c29fe310f1
commit
593c571d6a
@ -14,15 +14,7 @@ common_linuxbsd = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
if env["x11"]:
|
if env["x11"]:
|
||||||
common_linuxbsd += [
|
common_linuxbsd += SConscript("x11/SCsub")
|
||||||
"gl_manager_x11.cpp",
|
|
||||||
"detect_prime_x11.cpp",
|
|
||||||
"display_server_x11.cpp",
|
|
||||||
"key_mapping_x11.cpp",
|
|
||||||
]
|
|
||||||
|
|
||||||
if env["vulkan"]:
|
|
||||||
common_linuxbsd.append("vulkan_context_x11.cpp")
|
|
||||||
|
|
||||||
if env["speechd"]:
|
if env["speechd"]:
|
||||||
common_linuxbsd.append(["speechd-so_wrap.c", "tts_linux.cpp"])
|
common_linuxbsd.append(["speechd-so_wrap.c", "tts_linux.cpp"])
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef X11_ENABLED
|
#ifdef X11_ENABLED
|
||||||
#include "display_server_x11.h"
|
#include "x11/display_server_x11.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_MNTENT
|
#ifdef HAVE_MNTENT
|
||||||
|
21
platform/linuxbsd/x11/SCsub
Normal file
21
platform/linuxbsd/x11/SCsub
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
Import("env")
|
||||||
|
|
||||||
|
source_files = [
|
||||||
|
"display_server_x11.cpp",
|
||||||
|
"key_mapping_x11.cpp",
|
||||||
|
]
|
||||||
|
|
||||||
|
if env["vulkan"]:
|
||||||
|
source_files.append("vulkan_context_x11.cpp")
|
||||||
|
|
||||||
|
if env["opengl3"]:
|
||||||
|
source_files.append(["gl_manager_x11.cpp", "detect_prime_x11.cpp"])
|
||||||
|
|
||||||
|
objects = []
|
||||||
|
|
||||||
|
for source_file in source_files:
|
||||||
|
objects.append(env.Object(source_file))
|
||||||
|
|
||||||
|
Return("objects")
|
@ -47,7 +47,7 @@
|
|||||||
#include "servers/rendering_server.h"
|
#include "servers/rendering_server.h"
|
||||||
|
|
||||||
#if defined(SPEECHD_ENABLED)
|
#if defined(SPEECHD_ENABLED)
|
||||||
#include "tts_linux.h"
|
#include "../tts_linux.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(GLES3_ENABLED)
|
#if defined(GLES3_ENABLED)
|
||||||
@ -56,12 +56,12 @@
|
|||||||
|
|
||||||
#if defined(VULKAN_ENABLED)
|
#if defined(VULKAN_ENABLED)
|
||||||
#include "drivers/vulkan/rendering_device_vulkan.h"
|
#include "drivers/vulkan/rendering_device_vulkan.h"
|
||||||
#include "platform/linuxbsd/vulkan_context_x11.h"
|
#include "vulkan_context_x11.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(DBUS_ENABLED)
|
#if defined(DBUS_ENABLED)
|
||||||
#include "freedesktop_portal_desktop.h"
|
#include "../freedesktop_portal_desktop.h"
|
||||||
#include "freedesktop_screensaver.h"
|
#include "../freedesktop_screensaver.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <X11/Xcursor/Xcursor.h>
|
#include <X11/Xcursor/Xcursor.h>
|
Loading…
x
Reference in New Issue
Block a user