Commit 0fbd5fa3 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

backends/virtual: Provide own logging.h file

target_sources() doesn't work as expected with generated source files.
parent acd5bf9a
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)
......
/*
SPDX-FileCopyrightText: 2022 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "logging.h"
Q_LOGGING_CATEGORY(KWIN_VIRTUAL, "kwin_platform_virtual", QtWarningMsg)
/*
SPDX-FileCopyrightText: 2022 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#pragma once
#include <QLoggingCategory>
Q_DECLARE_LOGGING_CATEGORY(KWIN_VIRTUAL)
Supports Markdown
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