Skip to content

Commit

Permalink
Merge pull request #3 from rtiangha/wayland-pr
Browse files Browse the repository at this point in the history
citra_qt: Add Wayland QT libraries into Linux AppImage
  • Loading branch information
Miguel-hrvs authored Jul 20, 2024
2 parents 9d64ddb + 973ff5f commit b0ee157
Show file tree
Hide file tree
Showing 26 changed files with 3 additions and 2,674 deletions.
3 changes: 3 additions & 0 deletions .ci/linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
if [ "$TARGET" = "appimage" ]; then
# Compile the AppImage we distribute with Clang.
export EXTRA_CMAKE_FLAGS=(-DCITRA_USE_PRECOMPILED_HEADERS=OFF -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang -DCMAKE_LINKER=/etc/bin/ld.lld)
# Bundle required QT wayland libraries
export EXTRA_QT_PLUGINS="waylandcompositor"
export EXTRA_PLATFORM_PLUGINS="libqwayland-egl.so;libqwayland-generic.so"
else
# For the linux-fresh verification target, verify compilation without PCH as well.
export EXTRA_CMAKE_FLAGS=(-DCITRA_USE_PRECOMPILED_HEADERS=OFF)
Expand Down
30 changes: 0 additions & 30 deletions src/citra_qt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -293,36 +293,6 @@ elseif (WIN32)
set_target_properties(citra-qt PROPERTIES LINK_FLAGS_RELEASE "-mwindows")
endif()

elseif(UNIX)
find_package(X11 REQUIRED)
find_package(EGL REQUIRED)

option(ENABLE_WAYLAND "Enable Wayland support" ON)

if (ENABLE_WAYLAND)

find_package(Wayland REQUIRED Client)

target_compile_definitions(citra PRIVATE WAYLAND_ENABLED)

target_sources(citra PRIVATE
externals/duckstation/gl/context_egl_wayland.cpp
)
endif()

target_sources(citra PRIVATE
externals/duckstation/gl/context.cpp
externals/duckstation/gl/context_egl.cpp
externals/duckstation/gl/context_egl_x11.cpp
externals/duckstation/gl/context_glx.cpp
externals/duckstation/gl/x11_window.cpp

../../externals/glad/src/glad_egl.c
../../externals/glad/src/glad_glx.c
)
target_link_libraries(citra PRIVATE "${X11_LIBRARIES}" "${EGL_LIBRARIES}")
target_include_directories(citra PRIVATE "${X11_INCLUDE_DIR}")
add_compile_definitions(QAPPLICATION_CLASS=QApplication)
endif()

if(ENABLE_SDL2)
Expand Down
17 changes: 0 additions & 17 deletions src/citra_qt/externals/duckstation/duckstation_compat.h

This file was deleted.

175 changes: 0 additions & 175 deletions src/citra_qt/externals/duckstation/gl/context.cpp

This file was deleted.

77 changes: 0 additions & 77 deletions src/citra_qt/externals/duckstation/gl/context.h

This file was deleted.

50 changes: 0 additions & 50 deletions src/citra_qt/externals/duckstation/gl/context_agl.h

This file was deleted.

Loading

0 comments on commit b0ee157

Please sign in to comment.