mirror of
https://github.com/crystalidea/qt6windows7.git
synced 2025-07-05 16:55:25 +08:00
qt 6.5.1 original
This commit is contained in:
14
tests/auto/cmake/mockplugins/mockplugins3/CMakeLists.txt
Normal file
14
tests/auto/cmake/mockplugins/mockplugins3/CMakeLists.txt
Normal file
@ -0,0 +1,14 @@
|
||||
# Copyright (C) 2022 The Qt Company Ltd.
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
qt_internal_add_module(MockPlugins3
|
||||
NO_UNITY_BUILD
|
||||
PLUGIN_TYPES mockauxplugin
|
||||
SOURCES
|
||||
qmockauxplugin.h
|
||||
fake.cpp
|
||||
LIBRARIES
|
||||
Qt::CorePrivate
|
||||
PUBLIC_LIBRARIES
|
||||
Qt::Core
|
||||
)
|
@ -0,0 +1,2 @@
|
||||
# This is needed so that MODULE_PLUGIN_TYPES property is set on the exported target.
|
||||
# Fun times.
|
9
tests/auto/cmake/mockplugins/mockplugins3/fake.cpp
Normal file
9
tests/auto/cmake/mockplugins/mockplugins3/fake.cpp
Normal file
@ -0,0 +1,9 @@
|
||||
// Copyright (C) 2019 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
||||
|
||||
#include <QtCore/QtGlobal>
|
||||
|
||||
// Empty exported function needed to create .lib on Windows.
|
||||
Q_DECL_EXPORT void mockplugins3_foo() {
|
||||
|
||||
}
|
25
tests/auto/cmake/mockplugins/mockplugins3/qmockauxplugin.h
Normal file
25
tests/auto/cmake/mockplugins/mockplugins3/qmockauxplugin.h
Normal file
@ -0,0 +1,25 @@
|
||||
// Copyright (C) 2018 Kitware, Inc.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
#ifndef QMOCKAUXPLUGIN_H
|
||||
#define QMOCKAUXPLUGIN_H
|
||||
|
||||
#include <QtCore/QString>
|
||||
#include <QtCore/QtPlugin>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
#define QMockAuxPlugin_iid "org.qt-project.Qt.Tests.QMockAuxPlugin"
|
||||
|
||||
class QMockAuxPlugin
|
||||
{
|
||||
public:
|
||||
virtual ~QMockAuxPlugin() {}
|
||||
virtual QString pluginName() const = 0;
|
||||
};
|
||||
|
||||
Q_DECLARE_INTERFACE(QMockAuxPlugin, QMockAuxPlugin_iid)
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // QMOCKAUXPLUGIN_H
|
Reference in New Issue
Block a user