Commit a2d0920b authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Use ecm_qt_install_logging_categories over manual categories file

parent 484c44a9
......@@ -2,7 +2,11 @@ add_subdirectory(client)
add_subdirectory(server)
add_subdirectory(tools)
install( FILES org_kde_kwayland.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR} )
ecm_qt_install_logging_categories(
EXPORT KWAYLAND
FILE kwayland.categories
DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR}
)
if(BUILD_QCH)
......
......@@ -64,7 +64,14 @@ set(CLIENT_LIB_SRCS
../compat/wayland-xdg-shell-v5-protocol.c
)
ecm_qt_declare_logging_category(CLIENT_LIB_SRCS HEADER logging.h IDENTIFIER KWAYLAND_CLIENT CATEGORY_NAME kwayland-client DEFAULT_SEVERITY Critical)
ecm_qt_declare_logging_category(CLIENT_LIB_SRCS
HEADER logging.h
IDENTIFIER KWAYLAND_CLIENT
CATEGORY_NAME kwayland-client
DEFAULT_SEVERITY Critical
DESCRIPTION "KWayland Client Library"
EXPORT KWAYLAND
)
ecm_add_wayland_client_protocol(CLIENT_LIB_SRCS
PROTOCOL ${KWayland_SOURCE_DIR}/src/client/protocols/fullscreen-shell.xml
......
kwayland-client KWayland Client Library DEFAULT_SEVERITY [CRITICAL] IDENTIFIER [KWAYLAND_CLIENT]
kwayland-server KWayland Server Library DEFAULT_SEVERITY [CRITICAL] IDENTIFIER [KWAYLAND_SERVER]
......@@ -65,7 +65,14 @@ set(SERVER_LIB_SRCS
xdgshell_v6_interface.cpp
)
ecm_qt_declare_logging_category(SERVER_LIB_SRCS HEADER logging.h IDENTIFIER KWAYLAND_SERVER CATEGORY_NAME kwayland-server DEFAULT_SEVERITY Critical)
ecm_qt_declare_logging_category(SERVER_LIB_SRCS
HEADER logging.h
IDENTIFIER KWAYLAND_SERVER
CATEGORY_NAME kwayland-server
DEFAULT_SEVERITY Critical
DESCRIPTION "KWayland Server Library"
EXPORT KWAYLAND
)
ecm_add_wayland_server_protocol(SERVER_LIB_SRCS
PROTOCOL ${KWayland_SOURCE_DIR}/src/client/protocols/output-management.xml
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment