diff --git a/src/backends/virtual/CMakeLists.txt b/src/backends/virtual/CMakeLists.txt index 1fd6c6d311..f411f26266 100644 --- a/src/backends/virtual/CMakeLists.txt +++ b/src/backends/virtual/CMakeLists.txt @@ -1,18 +1,12 @@ add_library(KWinWaylandVirtualBackend MODULE) target_sources(KWinWaylandVirtualBackend PRIVATE egl_gbm_backend.cpp + logging.cpp scene_qpainter_virtual_backend.cpp virtual_backend.cpp virtual_output.cpp ) -ecm_qt_declare_logging_category(KWinWaylandVirtualBackend - HEADER logging.h - IDENTIFIER KWIN_VIRTUAL - CATEGORY_NAME kwin_platform_virtual - DEFAULT_SEVERITY Critical -) - set_target_properties(KWinWaylandVirtualBackend PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/org.kde.kwin.waylandbackends/") target_link_libraries(KWinWaylandVirtualBackend kwin) diff --git a/src/backends/virtual/logging.cpp b/src/backends/virtual/logging.cpp new file mode 100644 index 0000000000..564b3e973a --- /dev/null +++ b/src/backends/virtual/logging.cpp @@ -0,0 +1,9 @@ +/* + SPDX-FileCopyrightText: 2022 Vlad Zahorodnii + + SPDX-License-Identifier: GPL-2.0-or-later +*/ + +#include "logging.h" + +Q_LOGGING_CATEGORY(KWIN_VIRTUAL, "kwin_platform_virtual", QtWarningMsg) diff --git a/src/backends/virtual/logging.h b/src/backends/virtual/logging.h new file mode 100644 index 0000000000..24b44b5afd --- /dev/null +++ b/src/backends/virtual/logging.h @@ -0,0 +1,11 @@ +/* + SPDX-FileCopyrightText: 2022 Vlad Zahorodnii + + SPDX-License-Identifier: GPL-2.0-or-later +*/ + +#pragma once + +#include + +Q_DECLARE_LOGGING_CATEGORY(KWIN_VIRTUAL)