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"]:
|
||||
common_linuxbsd += [
|
||||
"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")
|
||||
common_linuxbsd += SConscript("x11/SCsub")
|
||||
|
||||
if env["speechd"]:
|
||||
common_linuxbsd.append(["speechd-so_wrap.c", "tts_linux.cpp"])
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
#endif
|
||||
|
||||
#ifdef X11_ENABLED
|
||||
#include "display_server_x11.h"
|
||||
#include "x11/display_server_x11.h"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_MNTENT
|
||||
|
|
|
@ -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"
|
||||
|
||||
#if defined(SPEECHD_ENABLED)
|
||||
#include "tts_linux.h"
|
||||
#include "../tts_linux.h"
|
||||
#endif
|
||||
|
||||
#if defined(GLES3_ENABLED)
|
||||
|
@ -56,12 +56,12 @@
|
|||
|
||||
#if defined(VULKAN_ENABLED)
|
||||
#include "drivers/vulkan/rendering_device_vulkan.h"
|
||||
#include "platform/linuxbsd/vulkan_context_x11.h"
|
||||
#include "vulkan_context_x11.h"
|
||||
#endif
|
||||
|
||||
#if defined(DBUS_ENABLED)
|
||||
#include "freedesktop_portal_desktop.h"
|
||||
#include "freedesktop_screensaver.h"
|
||||
#include "../freedesktop_portal_desktop.h"
|
||||
#include "../freedesktop_screensaver.h"
|
||||
#endif
|
||||
|
||||
#include <X11/Xcursor/Xcursor.h>
|
Loading…
Reference in New Issue