Gtk: Rename frontend-common to common and move files to video subfolder.

This commit is contained in:
BearOso 2023-06-07 11:31:24 -05:00
parent 5526a1d905
commit 9a0712b258
17 changed files with 18 additions and 18 deletions

View File

@ -10,7 +10,7 @@
#include "opengl_context.hpp"
#include "wayland_surface.hpp"
#include "../external/glad/include/glad/egl.h"
#include "glad/egl.h"
#include <memory>
#include <wayland-egl.h>

View File

@ -68,7 +68,7 @@ list(APPEND ARGS ${SDL2_CFLAGS} ${GTK_CFLAGS} ${XRANDR_CFLAGS})
list(APPEND LIBS ${X11} ${XEXT} ${DL} ${SDL2_LIBRARIES} ${GTK_LIBRARIES} ${XRANDR_LIBRARIES})
list(APPEND SOURCES src/gtk_display_driver_opengl.cpp
../frontend-common/glx_context.cpp
../common/video/glx_context.cpp
../shaders/glsl.cpp
../shaders/shader_helpers.cpp
../vulkan/slang_helpers.cpp
@ -152,13 +152,13 @@ list(APPEND INCLUDES ../external/imgui)
if(USE_WAYLAND)
pkg_check_modules(WAYLAND REQUIRED wayland-client wayland-egl)
list(APPEND DEFINES "USE_WAYLAND")
list(APPEND SOURCES ../frontend-common/wayland_egl_context.cpp
../frontend-common/wayland_egl_context.hpp
../frontend-common/wayland_surface.cpp
../frontend-common/wayland_surface.hpp
../frontend-common/wayland-idle-inhibit-unstable-v1.c
../frontend-common/viewporter-client-protocol.c
../frontend-common/fractional-scale-v1.c)
list(APPEND SOURCES ../common/video/wayland_egl_context.cpp
../common/video/wayland_egl_context.hpp
../common/video/wayland_surface.cpp
../common/video/wayland_surface.hpp
../common/video/wayland-idle-inhibit-unstable-v1.c
../common/video/viewporter-client-protocol.c
../common/video/fractional-scale-v1.c)
list(APPEND ARGS ${WAYLAND_CFLAGS})
list(APPEND LIBS ${WAYLAND_LIBRARIES})
endif()

View File

@ -12,14 +12,14 @@
#include <glad/gl.h>
#include "../../frontend-common/opengl_context.hpp"
#include "common/video/opengl_context.hpp"
#include "gtk_compat.h"
#ifdef GDK_WINDOWING_X11
#include "../../frontend-common/glx_context.hpp"
#include "common/video/glx_context.hpp"
#endif
#ifdef GDK_WINDOWING_WAYLAND
#include "../../frontend-common/wayland_egl_context.hpp"
#include "common/video/wayland_egl_context.hpp"
#endif
#include "shaders/glsl.h"

View File

@ -13,7 +13,7 @@
#include "fmt/format.h"
#include "snes9x_imgui.h"
#include "../../external/imgui/imgui_impl_vulkan.h"
#include "external/imgui/imgui_impl_vulkan.h"
#ifdef GDK_WINDOWING_WAYLAND
static WaylandSurface::Metrics get_metrics(Gtk::DrawingArea &w)

View File

@ -7,13 +7,13 @@
#pragma once
#include "gtk_s9x.h"
#include "gtk_display_driver.h"
#include "../../vulkan/vulkan_context.hpp"
#include "../../vulkan/vulkan_shader_chain.hpp"
#include "../../vulkan/vulkan_simple_output.hpp"
#include "../../vulkan/std_chrono_throttle.hpp"
#include "vulkan/vulkan_context.hpp"
#include "vulkan/vulkan_shader_chain.hpp"
#include "vulkan/vulkan_simple_output.hpp"
#include "vulkan/std_chrono_throttle.hpp"
#ifdef VK_USE_PLATFORM_WAYLAND_KHR
#include "../../frontend-common/wayland_surface.hpp"
#include "common/video/wayland_surface.hpp"
#endif
class S9xVulkanDisplayDriver : public S9xDisplayDriver