Skip to content

Commit

Permalink
Wayland protocols code generation for Qt5
Browse files Browse the repository at this point in the history
Seek also for devendored protocol definitions.
  • Loading branch information
mymedia2 committed Jun 21, 2022
1 parent 9033d49 commit 4723fc0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Telegram/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1445,10 +1445,14 @@ else()
if (DESKTOP_APP_QT6)
qt6_generate_wayland_protocol_client_sources(Telegram
FILES
${third_party_loc}/plasma-wayland-protocols/src/protocols/plasma-shell.xml
${PLASMA_WAYLAND_PROTOCOLS_DIR}/plasma-shell.xml
)
else()
message(FATAL_ERROR "This piece of cmake code is not ported to Qt 5")
ecm_add_qtwayland_client_protocol(Telegram
PROTOCOL ${PLASMA_WAYLAND_PROTOCOLS_DIR}/plasma-shell.xml
BASENAME plasma-shell
)
target_include_directories(Telegram PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
endif()

target_link_libraries(Telegram
Expand Down

0 comments on commit 4723fc0

Please sign in to comment.