forked from qt-creator/qt-creator
Qnx: Clean up headers a bit
It's a leaf plugin, no exports. Change-Id: I062f6f72ee98525c0a6d684c74866b485ffdc41d Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -3,7 +3,6 @@ add_qtc_plugin(Qnx
|
|||||||
PLUGIN_DEPENDS Core Debugger ProjectExplorer QtSupport RemoteLinux
|
PLUGIN_DEPENDS Core Debugger ProjectExplorer QtSupport RemoteLinux
|
||||||
SOURCES
|
SOURCES
|
||||||
qnx.qrc
|
qnx.qrc
|
||||||
qnx_export.h
|
|
||||||
qnxanalyzesupport.cpp qnxanalyzesupport.h
|
qnxanalyzesupport.cpp qnxanalyzesupport.h
|
||||||
qnxconfiguration.cpp qnxconfiguration.h
|
qnxconfiguration.cpp qnxconfiguration.h
|
||||||
qnxconfigurationmanager.cpp qnxconfigurationmanager.h
|
qnxconfigurationmanager.cpp qnxconfigurationmanager.h
|
||||||
@@ -15,7 +14,7 @@ add_qtc_plugin(Qnx
|
|||||||
qnxdeviceprocesssignaloperation.cpp qnxdeviceprocesssignaloperation.h
|
qnxdeviceprocesssignaloperation.cpp qnxdeviceprocesssignaloperation.h
|
||||||
qnxdevicetester.cpp qnxdevicetester.h
|
qnxdevicetester.cpp qnxdevicetester.h
|
||||||
qnxdevicewizard.cpp qnxdevicewizard.h
|
qnxdevicewizard.cpp qnxdevicewizard.h
|
||||||
qnxplugin.cpp qnxplugin.h
|
qnxplugin.cpp
|
||||||
qnxqtversion.cpp qnxqtversion.h
|
qnxqtversion.cpp qnxqtversion.h
|
||||||
qnxrunconfiguration.cpp qnxrunconfiguration.h
|
qnxrunconfiguration.cpp qnxrunconfiguration.h
|
||||||
qnxsettingspage.cpp qnxsettingspage.h
|
qnxsettingspage.cpp qnxsettingspage.h
|
||||||
|
@@ -44,14 +44,12 @@ QtcPlugin {
|
|||||||
"qnxversionnumber.cpp",
|
"qnxversionnumber.cpp",
|
||||||
"qnxversionnumber.h",
|
"qnxversionnumber.h",
|
||||||
"qnxplugin.cpp",
|
"qnxplugin.cpp",
|
||||||
"qnxplugin.h",
|
|
||||||
"qnxqtversion.cpp",
|
"qnxqtversion.cpp",
|
||||||
"qnxqtversion.h",
|
"qnxqtversion.h",
|
||||||
"qnxrunconfiguration.cpp",
|
"qnxrunconfiguration.cpp",
|
||||||
"qnxrunconfiguration.h",
|
"qnxrunconfiguration.h",
|
||||||
"qnxutils.cpp",
|
"qnxutils.cpp",
|
||||||
"qnxutils.h",
|
"qnxutils.h",
|
||||||
"qnx_export.h",
|
|
||||||
"slog2inforunner.cpp",
|
"slog2inforunner.cpp",
|
||||||
"slog2inforunner.h",
|
"slog2inforunner.h",
|
||||||
]
|
]
|
||||||
|
@@ -1,12 +0,0 @@
|
|||||||
// Copyright (C) 2016 The Qt Company Ltd.
|
|
||||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
|
||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#include <qglobal.h>
|
|
||||||
|
|
||||||
#if defined(QNX_LIBRARY)
|
|
||||||
# define QNX_EXPORT Q_DECL_EXPORT
|
|
||||||
#else
|
|
||||||
# define QNX_EXPORT Q_DECL_IMPORT
|
|
||||||
#endif
|
|
@@ -3,8 +3,6 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "qnx_export.h"
|
|
||||||
|
|
||||||
#include <remotelinux/linuxdevice.h>
|
#include <remotelinux/linuxdevice.h>
|
||||||
|
|
||||||
namespace Qnx::Internal {
|
namespace Qnx::Internal {
|
||||||
|
@@ -1,8 +1,6 @@
|
|||||||
// Copyright (C) 2016 BlackBerry Limited. All rights reserved.
|
// Copyright (C) 2016 BlackBerry Limited. All rights reserved.
|
||||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
#include "qnxplugin.h"
|
|
||||||
|
|
||||||
#include "qnxanalyzesupport.h"
|
#include "qnxanalyzesupport.h"
|
||||||
#include "qnxconfigurationmanager.h"
|
#include "qnxconfigurationmanager.h"
|
||||||
#include "qnxconstants.h"
|
#include "qnxconstants.h"
|
||||||
@@ -20,6 +18,8 @@
|
|||||||
#include <coreplugin/icontext.h>
|
#include <coreplugin/icontext.h>
|
||||||
#include <coreplugin/icore.h>
|
#include <coreplugin/icore.h>
|
||||||
|
|
||||||
|
#include <extensionsystem/iplugin.h>
|
||||||
|
|
||||||
#include <projectexplorer/devicesupport/devicecheckbuildstep.h>
|
#include <projectexplorer/devicesupport/devicecheckbuildstep.h>
|
||||||
#include <projectexplorer/deployconfiguration.h>
|
#include <projectexplorer/deployconfiguration.h>
|
||||||
#include <projectexplorer/kitinformation.h>
|
#include <projectexplorer/kitinformation.h>
|
||||||
@@ -36,8 +36,6 @@
|
|||||||
#include <remotelinux/makeinstallstep.h>
|
#include <remotelinux/makeinstallstep.h>
|
||||||
#include <remotelinux/remotelinux_constants.h>
|
#include <remotelinux/remotelinux_constants.h>
|
||||||
|
|
||||||
#include <qtsupport/qtkitinformation.h>
|
|
||||||
|
|
||||||
#include <QAction>
|
#include <QAction>
|
||||||
|
|
||||||
using namespace ProjectExplorer;
|
using namespace ProjectExplorer;
|
||||||
@@ -107,36 +105,39 @@ public:
|
|||||||
QnxQmlProfilerWorkerFactory qmlProfilerWorkerFactory;
|
QnxQmlProfilerWorkerFactory qmlProfilerWorkerFactory;
|
||||||
};
|
};
|
||||||
|
|
||||||
static QnxPluginPrivate *dd = nullptr;
|
class QnxPlugin final : public ExtensionSystem::IPlugin
|
||||||
|
|
||||||
QnxPlugin::~QnxPlugin()
|
|
||||||
{
|
{
|
||||||
delete dd;
|
Q_OBJECT
|
||||||
}
|
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QtCreatorPlugin" FILE "Qnx.json")
|
||||||
|
|
||||||
void QnxPlugin::initialize()
|
public:
|
||||||
{
|
~QnxPlugin() final { delete d; }
|
||||||
dd = new QnxPluginPrivate;
|
|
||||||
}
|
private:
|
||||||
|
void initialize() final { d = new QnxPluginPrivate; }
|
||||||
|
void extensionsInitialized() final;
|
||||||
|
|
||||||
|
QnxPluginPrivate *d = nullptr;
|
||||||
|
};
|
||||||
|
|
||||||
void QnxPlugin::extensionsInitialized()
|
void QnxPlugin::extensionsInitialized()
|
||||||
{
|
{
|
||||||
// Attach support
|
// Attach support
|
||||||
connect(&dd->m_attachToQnxApplication, &QAction::triggered, this, &showAttachToProcessDialog);
|
connect(&d->m_attachToQnxApplication, &QAction::triggered, this, &showAttachToProcessDialog);
|
||||||
|
|
||||||
const char QNX_DEBUGGING_GROUP[] = "Debugger.Group.Qnx";
|
const char QNX_DEBUGGING_GROUP[] = "Debugger.Group.Qnx";
|
||||||
|
|
||||||
Core::ActionContainer *mstart = Core::ActionManager::actionContainer(ProjectExplorer::Constants::M_DEBUG_STARTDEBUGGING);
|
Core::ActionContainer *mstart = Core::ActionManager::actionContainer(ProjectExplorer::Constants::M_DEBUG_STARTDEBUGGING);
|
||||||
mstart->appendGroup(QNX_DEBUGGING_GROUP);
|
mstart->appendGroup(QNX_DEBUGGING_GROUP);
|
||||||
mstart->addSeparator(Core::Context(Core::Constants::C_GLOBAL), QNX_DEBUGGING_GROUP,
|
mstart->addSeparator(Core::Context(Core::Constants::C_GLOBAL), QNX_DEBUGGING_GROUP,
|
||||||
&dd->m_debugSeparator);
|
&d->m_debugSeparator);
|
||||||
|
|
||||||
Core::Command *cmd = Core::ActionManager::registerAction
|
Core::Command *cmd = Core::ActionManager::registerAction
|
||||||
(&dd->m_attachToQnxApplication, "Debugger.AttachToQnxApplication");
|
(&d->m_attachToQnxApplication, "Debugger.AttachToQnxApplication");
|
||||||
mstart->addAction(cmd, QNX_DEBUGGING_GROUP);
|
mstart->addAction(cmd, QNX_DEBUGGING_GROUP);
|
||||||
|
|
||||||
connect(KitManager::instance(), &KitManager::kitsChanged,
|
connect(KitManager::instance(), &KitManager::kitsChanged,
|
||||||
this, [] { dd->updateDebuggerActions(); });
|
this, [this] { d->updateDebuggerActions(); });
|
||||||
}
|
}
|
||||||
|
|
||||||
void QnxPluginPrivate::updateDebuggerActions()
|
void QnxPluginPrivate::updateDebuggerActions()
|
||||||
@@ -153,3 +154,5 @@ void QnxPluginPrivate::updateDebuggerActions()
|
|||||||
}
|
}
|
||||||
|
|
||||||
} // Qnx::Internal
|
} // Qnx::Internal
|
||||||
|
|
||||||
|
#include "qnxplugin.moc"
|
||||||
|
@@ -1,23 +0,0 @@
|
|||||||
// Copyright (C) 2016 BlackBerry Limited. All rights reserved.
|
|
||||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
|
||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#include <extensionsystem/iplugin.h>
|
|
||||||
|
|
||||||
namespace Qnx::Internal {
|
|
||||||
|
|
||||||
class QnxPlugin final : public ExtensionSystem::IPlugin
|
|
||||||
{
|
|
||||||
Q_OBJECT
|
|
||||||
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QtCreatorPlugin" FILE "Qnx.json")
|
|
||||||
|
|
||||||
public:
|
|
||||||
~QnxPlugin() final;
|
|
||||||
|
|
||||||
private:
|
|
||||||
void initialize() final;
|
|
||||||
void extensionsInitialized() final;
|
|
||||||
};
|
|
||||||
|
|
||||||
} // Qnx::Internal
|
|
Reference in New Issue
Block a user