forked from qt-creator/qt-creator
Qnx: Modernize a bit
Drop unused Q_DECLARE_TR_FUNCTIONS and QObject, C++17 namespaces, ... Change-Id: Iea5351cbd7e3d434f3ff7123fc385aeb16c1adf9 Reviewed-by: Rafael Roquetto <rafael.roquetto@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
@@ -62,8 +62,7 @@ using namespace QtSupport;
|
|||||||
using namespace Utils;
|
using namespace Utils;
|
||||||
using namespace Debugger;
|
using namespace Debugger;
|
||||||
|
|
||||||
namespace Qnx {
|
namespace Qnx::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
const QLatin1String QNXEnvFileKey("EnvFile");
|
const QLatin1String QNXEnvFileKey("EnvFile");
|
||||||
const QLatin1String QNXVersionKey("QNXVersion");
|
const QLatin1String QNXVersionKey("QNXVersion");
|
||||||
@@ -474,5 +473,4 @@ QString QnxConfiguration::Target::cpuDir() const
|
|||||||
return m_path.fileName();
|
return m_path.fileName();
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Internal
|
} // Qnx::Internal
|
||||||
} // namespace Qnx
|
|
||||||
|
@@ -43,8 +43,7 @@ namespace ProjectExplorer
|
|||||||
class ToolChain;
|
class ToolChain;
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace Qnx {
|
namespace Qnx::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
class QnxToolChain;
|
class QnxToolChain;
|
||||||
class QnxQtVersion;
|
class QnxQtVersion;
|
||||||
@@ -135,5 +134,4 @@ private:
|
|||||||
void assignDebuggersToTargets();
|
void assignDebuggersToTargets();
|
||||||
};
|
};
|
||||||
|
|
||||||
} // Internal
|
} // Qnx::Internal
|
||||||
} // Qnx
|
|
||||||
|
@@ -34,8 +34,7 @@
|
|||||||
|
|
||||||
using namespace Utils;
|
using namespace Utils;
|
||||||
|
|
||||||
namespace Qnx {
|
namespace Qnx::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
const QLatin1String QNXConfigDataKey("QNXConfiguration.");
|
const QLatin1String QNXConfigDataKey("QNXConfiguration.");
|
||||||
const QLatin1String QNXConfigCountKey("QNXConfiguration.Count");
|
const QLatin1String QNXConfigCountKey("QNXConfiguration.Count");
|
||||||
@@ -146,5 +145,4 @@ void QnxConfigurationManager::restoreConfigurations()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} // Internal
|
} // Qnx::Internal
|
||||||
} // Qnx
|
|
||||||
|
@@ -28,8 +28,8 @@
|
|||||||
#include <utils/fileutils.h>
|
#include <utils/fileutils.h>
|
||||||
|
|
||||||
namespace Utils { class PersistentSettingsWriter; }
|
namespace Utils { class PersistentSettingsWriter; }
|
||||||
namespace Qnx {
|
|
||||||
namespace Internal {
|
namespace Qnx::Internal {
|
||||||
|
|
||||||
class QnxConfiguration;
|
class QnxConfiguration;
|
||||||
class QnxPlugin;
|
class QnxPlugin;
|
||||||
@@ -59,5 +59,4 @@ private:
|
|||||||
void restoreConfigurations();
|
void restoreConfigurations();
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
} // Qnx::Internal
|
||||||
}
|
|
||||||
|
@@ -27,7 +27,6 @@
|
|||||||
|
|
||||||
#include "qnxconstants.h"
|
#include "qnxconstants.h"
|
||||||
#include "qnxqtversion.h"
|
#include "qnxqtversion.h"
|
||||||
#include "qnxrunconfiguration.h"
|
|
||||||
#include "qnxtr.h"
|
#include "qnxtr.h"
|
||||||
#include "slog2inforunner.h"
|
#include "slog2inforunner.h"
|
||||||
|
|
||||||
@@ -67,8 +66,7 @@ using namespace Debugger;
|
|||||||
using namespace ProjectExplorer;
|
using namespace ProjectExplorer;
|
||||||
using namespace Utils;
|
using namespace Utils;
|
||||||
|
|
||||||
namespace Qnx {
|
namespace Qnx::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
const char QNX_DEBUG_EXECUTABLE[] = "pdebug";
|
const char QNX_DEBUG_EXECUTABLE[] = "pdebug";
|
||||||
|
|
||||||
@@ -237,10 +235,7 @@ void QnxAttachDebugSupport::showProcessesDialog()
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
// FIXME: That should be somehow related to the selected kit.
|
// FIXME: That should be somehow related to the selected kit.
|
||||||
auto startRunConfig = SessionManager::startupRunConfiguration();
|
auto runConfig = SessionManager::startupRunConfiguration();
|
||||||
auto runConfig = qobject_cast<QnxRunConfiguration *>(startRunConfig);
|
|
||||||
if (!runConfig)
|
|
||||||
return;
|
|
||||||
|
|
||||||
const int pid = dlg.currentProcess().processId;
|
const int pid = dlg.currentProcess().processId;
|
||||||
// QString projectSourceDirectory = dlg.projectSource();
|
// QString projectSourceDirectory = dlg.projectSource();
|
||||||
@@ -268,5 +263,4 @@ void QnxAttachDebugSupport::showProcessesDialog()
|
|||||||
ProjectExplorerPlugin::startRunControl(runControl);
|
ProjectExplorerPlugin::startRunControl(runControl);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Internal
|
} // Qnx::Internal
|
||||||
} // namespace Qnx
|
|
||||||
|
@@ -27,26 +27,20 @@
|
|||||||
|
|
||||||
#include <debugger/debuggerruncontrol.h>
|
#include <debugger/debuggerruncontrol.h>
|
||||||
|
|
||||||
namespace Qnx {
|
namespace Qnx::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
class QnxDebugSupport : public Debugger::DebuggerRunTool
|
class QnxDebugSupport : public Debugger::DebuggerRunTool
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit QnxDebugSupport(ProjectExplorer::RunControl *runControl);
|
explicit QnxDebugSupport(ProjectExplorer::RunControl *runControl);
|
||||||
};
|
};
|
||||||
|
|
||||||
class QnxAttachDebugSupport : public Debugger::DebuggerRunTool
|
class QnxAttachDebugSupport : public Debugger::DebuggerRunTool
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit QnxAttachDebugSupport(ProjectExplorer::RunControl *runControl);
|
explicit QnxAttachDebugSupport(ProjectExplorer::RunControl *runControl);
|
||||||
|
|
||||||
static void showProcessesDialog();
|
static void showProcessesDialog();
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Internal
|
} // Qnx::Internal
|
||||||
} // namespace Qnx
|
|
||||||
|
@@ -57,8 +57,7 @@ using namespace QtSupport;
|
|||||||
using namespace RemoteLinux;
|
using namespace RemoteLinux;
|
||||||
using namespace Utils;
|
using namespace Utils;
|
||||||
|
|
||||||
namespace Qnx {
|
namespace Qnx::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
QnxDeployQtLibrariesDialog::QnxDeployQtLibrariesDialog(const IDevice::ConstPtr &device,
|
QnxDeployQtLibrariesDialog::QnxDeployQtLibrariesDialog(const IDevice::ConstPtr &device,
|
||||||
QWidget *parent)
|
QWidget *parent)
|
||||||
@@ -362,5 +361,4 @@ bool QnxDeployQtLibrariesDialog::handleError(const QtcProcess &process)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Internal
|
} // Qnx::Internal
|
||||||
} // namespace Qnx
|
|
||||||
|
@@ -41,13 +41,10 @@ QT_END_NAMESPACE
|
|||||||
namespace ProjectExplorer { class DeployableFile; }
|
namespace ProjectExplorer { class DeployableFile; }
|
||||||
namespace RemoteLinux { class GenericDirectUploadService; }
|
namespace RemoteLinux { class GenericDirectUploadService; }
|
||||||
|
|
||||||
namespace Qnx {
|
namespace Qnx::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
class QnxDeployQtLibrariesDialog : public QDialog
|
class QnxDeployQtLibrariesDialog : public QDialog
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
enum State {
|
enum State {
|
||||||
Inactive,
|
Inactive,
|
||||||
@@ -103,5 +100,4 @@ private:
|
|||||||
State m_state = Inactive;
|
State m_state = Inactive;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Internal
|
} // Qnx::Internal
|
||||||
} // namespace Qnx
|
|
||||||
|
@@ -26,12 +26,12 @@
|
|||||||
#include "qnxdevice.h"
|
#include "qnxdevice.h"
|
||||||
|
|
||||||
#include "qnxconstants.h"
|
#include "qnxconstants.h"
|
||||||
|
#include "qnxdeployqtlibrariesdialog.h"
|
||||||
#include "qnxdevicetester.h"
|
#include "qnxdevicetester.h"
|
||||||
#include "qnxdeviceprocesslist.h"
|
#include "qnxdeviceprocesslist.h"
|
||||||
#include "qnxdeviceprocesssignaloperation.h"
|
#include "qnxdeviceprocesssignaloperation.h"
|
||||||
#include "qnxdevicewizard.h"
|
#include "qnxdevicewizard.h"
|
||||||
#include "qnxtr.h"
|
#include "qnxtr.h"
|
||||||
#include "qnxdeployqtlibrariesdialog.h"
|
|
||||||
|
|
||||||
#include <remotelinux/sshprocessinterface.h>
|
#include <remotelinux/sshprocessinterface.h>
|
||||||
|
|
||||||
@@ -45,8 +45,7 @@ using namespace ProjectExplorer;
|
|||||||
using namespace RemoteLinux;
|
using namespace RemoteLinux;
|
||||||
using namespace Utils;
|
using namespace Utils;
|
||||||
|
|
||||||
namespace Qnx {
|
namespace Qnx::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
class QnxProcessImpl final : public SshProcessInterface
|
class QnxProcessImpl final : public SshProcessInterface
|
||||||
{
|
{
|
||||||
@@ -208,5 +207,4 @@ QnxDeviceFactory::QnxDeviceFactory() : IDeviceFactory(Constants::QNX_QNX_OS_TYPE
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Internal
|
} // Qnx::Internal
|
||||||
} // namespace Qnx
|
|
||||||
|
@@ -29,8 +29,7 @@
|
|||||||
|
|
||||||
#include <remotelinux/linuxdevice.h>
|
#include <remotelinux/linuxdevice.h>
|
||||||
|
|
||||||
namespace Qnx {
|
namespace Qnx::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
class QnxDevice final : public RemoteLinux::LinuxDevice
|
class QnxDevice final : public RemoteLinux::LinuxDevice
|
||||||
{
|
{
|
||||||
@@ -70,5 +69,4 @@ public:
|
|||||||
QnxDeviceFactory();
|
QnxDeviceFactory();
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Internal
|
} // Qnx::Internal
|
||||||
} // namespace Qnx
|
|
||||||
|
@@ -33,10 +33,10 @@
|
|||||||
#include <QRegularExpression>
|
#include <QRegularExpression>
|
||||||
#include <QStringList>
|
#include <QStringList>
|
||||||
|
|
||||||
using namespace Qnx;
|
|
||||||
using namespace Qnx::Internal;
|
|
||||||
using namespace Utils;
|
using namespace Utils;
|
||||||
|
|
||||||
|
namespace Qnx::Internal {
|
||||||
|
|
||||||
QnxDeviceProcessList::QnxDeviceProcessList(
|
QnxDeviceProcessList::QnxDeviceProcessList(
|
||||||
const ProjectExplorer::IDevice::ConstPtr &device, QObject *parent)
|
const ProjectExplorer::IDevice::ConstPtr &device, QObject *parent)
|
||||||
: ProjectExplorer::SshDeviceProcessList(device, parent)
|
: ProjectExplorer::SshDeviceProcessList(device, parent)
|
||||||
@@ -78,3 +78,5 @@ QList<ProcessInfo> QnxDeviceProcessList::buildProcessList(const QString &listPro
|
|||||||
Utils::sort(processes);
|
Utils::sort(processes);
|
||||||
return processes;
|
return processes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} // Qnx::Internal
|
||||||
|
@@ -27,12 +27,10 @@
|
|||||||
|
|
||||||
#include <projectexplorer/devicesupport/sshdeviceprocesslist.h>
|
#include <projectexplorer/devicesupport/sshdeviceprocesslist.h>
|
||||||
|
|
||||||
namespace Qnx {
|
namespace Qnx::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
class QnxDeviceProcessList : public ProjectExplorer::SshDeviceProcessList
|
class QnxDeviceProcessList : public ProjectExplorer::SshDeviceProcessList
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
|
||||||
public:
|
public:
|
||||||
explicit QnxDeviceProcessList(
|
explicit QnxDeviceProcessList(
|
||||||
const ProjectExplorer::IDeviceConstPtr &device, QObject *parent = nullptr);
|
const ProjectExplorer::IDeviceConstPtr &device, QObject *parent = nullptr);
|
||||||
@@ -42,5 +40,4 @@ private:
|
|||||||
QList<Utils::ProcessInfo> buildProcessList(const QString &listProcessesReply) const override;
|
QList<Utils::ProcessInfo> buildProcessList(const QString &listProcessesReply) const override;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Internal
|
} // Qnx::Internal
|
||||||
} // namespace Qnx
|
|
||||||
|
@@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
#include "qnxdeviceprocesssignaloperation.h"
|
#include "qnxdeviceprocesssignaloperation.h"
|
||||||
|
|
||||||
using namespace Qnx::Internal;
|
namespace Qnx::Internal {
|
||||||
|
|
||||||
QnxDeviceProcessSignalOperation::QnxDeviceProcessSignalOperation(
|
QnxDeviceProcessSignalOperation::QnxDeviceProcessSignalOperation(
|
||||||
const ProjectExplorer::IDeviceConstPtr &device)
|
const ProjectExplorer::IDeviceConstPtr &device)
|
||||||
@@ -54,3 +54,5 @@ QString QnxDeviceProcessSignalOperation::interruptProcessByNameCommandLine(
|
|||||||
{
|
{
|
||||||
return signalProcessByNameQnxCommandLine(filePath, 2);
|
return signalProcessByNameQnxCommandLine(filePath, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} // Qnx::Internal
|
||||||
|
@@ -27,12 +27,10 @@
|
|||||||
|
|
||||||
#include <remotelinux/remotelinuxsignaloperation.h>
|
#include <remotelinux/remotelinuxsignaloperation.h>
|
||||||
|
|
||||||
namespace Qnx {
|
namespace Qnx::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
class QnxDeviceProcessSignalOperation : public RemoteLinux::RemoteLinuxSignalOperation
|
class QnxDeviceProcessSignalOperation : public RemoteLinux::RemoteLinuxSignalOperation
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
|
||||||
protected:
|
protected:
|
||||||
explicit QnxDeviceProcessSignalOperation(const ProjectExplorer::IDeviceConstPtr &device);
|
explicit QnxDeviceProcessSignalOperation(const ProjectExplorer::IDeviceConstPtr &device);
|
||||||
|
|
||||||
@@ -43,5 +41,4 @@ private:
|
|||||||
friend class QnxDevice;
|
friend class QnxDevice;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Internal
|
} // Qnx::Internal
|
||||||
} // namespace Qnx
|
|
||||||
|
@@ -31,8 +31,7 @@
|
|||||||
|
|
||||||
using namespace Utils;
|
using namespace Utils;
|
||||||
|
|
||||||
namespace Qnx {
|
namespace Qnx::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
QnxDeviceTester::QnxDeviceTester(QObject *parent)
|
QnxDeviceTester::QnxDeviceTester(QObject *parent)
|
||||||
: ProjectExplorer::DeviceTester(parent)
|
: ProjectExplorer::DeviceTester(parent)
|
||||||
@@ -47,23 +46,25 @@ QnxDeviceTester::QnxDeviceTester(QObject *parent)
|
|||||||
|
|
||||||
connect(&m_process, &QtcProcess::done, this, &QnxDeviceTester::handleProcessDone);
|
connect(&m_process, &QtcProcess::done, this, &QnxDeviceTester::handleProcessDone);
|
||||||
|
|
||||||
m_commandsToTest << QLatin1String("awk")
|
m_commandsToTest = {
|
||||||
<< QLatin1String("cat")
|
"awk",
|
||||||
<< QLatin1String("cut")
|
"cat",
|
||||||
<< QLatin1String("df")
|
"cut",
|
||||||
<< QLatin1String("grep")
|
"df",
|
||||||
<< QLatin1String("kill")
|
"grep",
|
||||||
<< QLatin1String("netstat")
|
"kill",
|
||||||
<< QLatin1String("mkdir")
|
"netstat",
|
||||||
<< QLatin1String("print")
|
"mkdir",
|
||||||
<< QLatin1String("printf")
|
"print",
|
||||||
<< QLatin1String("pidin")
|
"printf",
|
||||||
<< QLatin1String("read")
|
"pidin",
|
||||||
<< QLatin1String("rm")
|
"read",
|
||||||
<< QLatin1String("sed")
|
"rm",
|
||||||
<< QLatin1String("sleep")
|
"sed",
|
||||||
<< QLatin1String("tail")
|
"sleep",
|
||||||
<< QLatin1String("uname");
|
"tail",
|
||||||
|
"uname"
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
void QnxDeviceTester::testDevice(const ProjectExplorer::IDevice::Ptr &deviceConfiguration)
|
void QnxDeviceTester::testDevice(const ProjectExplorer::IDevice::Ptr &deviceConfiguration)
|
||||||
@@ -183,5 +184,4 @@ QStringList QnxDeviceTester::versionSpecificCommandsToTest(int versionNumber) co
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Internal
|
} // Qnx::Internal
|
||||||
} // namespace Qnx
|
|
||||||
|
@@ -34,8 +34,7 @@
|
|||||||
|
|
||||||
using namespace ProjectExplorer;
|
using namespace ProjectExplorer;
|
||||||
|
|
||||||
namespace Qnx {
|
namespace Qnx::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
QnxDeviceWizard::QnxDeviceWizard(QWidget *parent) :
|
QnxDeviceWizard::QnxDeviceWizard(QWidget *parent) :
|
||||||
Utils::Wizard(parent)
|
Utils::Wizard(parent)
|
||||||
@@ -68,5 +67,4 @@ IDevice::Ptr QnxDeviceWizard::device()
|
|||||||
return m_device;
|
return m_device;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Internal
|
} // Qnx::Internal
|
||||||
} // namespace Qnx
|
|
||||||
|
@@ -35,13 +35,10 @@ class GenericLinuxDeviceConfigurationWizardKeyDeploymentPage;
|
|||||||
class GenericLinuxDeviceConfigurationWizardFinalPage;
|
class GenericLinuxDeviceConfigurationWizardFinalPage;
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace Qnx {
|
namespace Qnx::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
class QnxDeviceWizard : public Utils::Wizard
|
class QnxDeviceWizard : public Utils::Wizard
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit QnxDeviceWizard(QWidget *parent = nullptr);
|
explicit QnxDeviceWizard(QWidget *parent = nullptr);
|
||||||
|
|
||||||
@@ -60,5 +57,4 @@ private:
|
|||||||
QnxDevice::Ptr m_device;
|
QnxDevice::Ptr m_device;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Internal
|
} // Qnx::Internal
|
||||||
} // namespace Qnx
|
|
||||||
|
@@ -64,8 +64,7 @@
|
|||||||
|
|
||||||
using namespace ProjectExplorer;
|
using namespace ProjectExplorer;
|
||||||
|
|
||||||
namespace Qnx {
|
namespace Qnx::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
class QnxUploadStep : public RemoteLinux::GenericDirectUploadStep
|
class QnxUploadStep : public RemoteLinux::GenericDirectUploadStep
|
||||||
{
|
{
|
||||||
@@ -193,5 +192,4 @@ void QnxPluginPrivate::updateDebuggerActions()
|
|||||||
m_debugSeparator->setVisible(hasValidQnxKit);
|
m_debugSeparator->setVisible(hasValidQnxKit);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // Internal
|
} // Qnx::Internal
|
||||||
} // Qnx
|
|
||||||
|
@@ -27,8 +27,7 @@
|
|||||||
|
|
||||||
#include <extensionsystem/iplugin.h>
|
#include <extensionsystem/iplugin.h>
|
||||||
|
|
||||||
namespace Qnx {
|
namespace Qnx::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
class QnxPlugin final : public ExtensionSystem::IPlugin
|
class QnxPlugin final : public ExtensionSystem::IPlugin
|
||||||
{
|
{
|
||||||
@@ -43,5 +42,4 @@ private:
|
|||||||
void extensionsInitialized() final;
|
void extensionsInitialized() final;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Internal
|
} // Qnx::Internal
|
||||||
} // namespace Qnx
|
|
||||||
|
@@ -45,8 +45,7 @@
|
|||||||
using namespace ProjectExplorer;
|
using namespace ProjectExplorer;
|
||||||
using namespace Utils;
|
using namespace Utils;
|
||||||
|
|
||||||
namespace Qnx {
|
namespace Qnx::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
const char SDP_PATH_KEY[] = "SDKPath";
|
const char SDP_PATH_KEY[] = "SDKPath";
|
||||||
|
|
||||||
@@ -221,5 +220,4 @@ QnxQtVersionFactory::QnxQtVersionFactory()
|
|||||||
setRestrictionChecker([](const SetupData &setup) { return setup.isQnx; });
|
setRestrictionChecker([](const SetupData &setup) { return setup.isQnx; });
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Internal
|
} // Qnx::Internal
|
||||||
} // namespace Qnx
|
|
||||||
|
@@ -32,8 +32,7 @@
|
|||||||
|
|
||||||
#include <utils/environment.h>
|
#include <utils/environment.h>
|
||||||
|
|
||||||
namespace Qnx {
|
namespace Qnx::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
class QnxQtVersion : public QtSupport::QtVersion
|
class QnxQtVersion : public QtSupport::QtVersion
|
||||||
{
|
{
|
||||||
@@ -84,5 +83,4 @@ public:
|
|||||||
QnxQtVersionFactory();
|
QnxQtVersionFactory();
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Internal
|
} // Qnx::Internal
|
||||||
} // namespace Qnx
|
|
||||||
|
@@ -31,6 +31,7 @@
|
|||||||
#include <projectexplorer/buildsystem.h>
|
#include <projectexplorer/buildsystem.h>
|
||||||
#include <projectexplorer/deployablefile.h>
|
#include <projectexplorer/deployablefile.h>
|
||||||
#include <projectexplorer/project.h>
|
#include <projectexplorer/project.h>
|
||||||
|
#include <projectexplorer/runconfigurationaspects.h>
|
||||||
#include <projectexplorer/runcontrol.h>
|
#include <projectexplorer/runcontrol.h>
|
||||||
#include <projectexplorer/target.h>
|
#include <projectexplorer/target.h>
|
||||||
|
|
||||||
@@ -42,8 +43,13 @@ using namespace ProjectExplorer;
|
|||||||
using namespace RemoteLinux;
|
using namespace RemoteLinux;
|
||||||
using namespace Utils;
|
using namespace Utils;
|
||||||
|
|
||||||
namespace Qnx {
|
namespace Qnx::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
class QnxRunConfiguration final : public ProjectExplorer::RunConfiguration
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
QnxRunConfiguration(ProjectExplorer::Target *target, Utils::Id id);
|
||||||
|
};
|
||||||
|
|
||||||
QnxRunConfiguration::QnxRunConfiguration(Target *target, Id id)
|
QnxRunConfiguration::QnxRunConfiguration(Target *target, Id id)
|
||||||
: RunConfiguration(target, id)
|
: RunConfiguration(target, id)
|
||||||
@@ -101,5 +107,4 @@ QnxRunConfigurationFactory::QnxRunConfigurationFactory()
|
|||||||
addSupportedTargetDeviceType(Constants::QNX_QNX_OS_TYPE);
|
addSupportedTargetDeviceType(Constants::QNX_QNX_OS_TYPE);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Internal
|
} // Qnx::Internal
|
||||||
} // namespace Qnx
|
|
||||||
|
@@ -25,19 +25,9 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <projectexplorer/runconfigurationaspects.h>
|
#include <projectexplorer/runconfiguration.h>
|
||||||
#include <remotelinux/remotelinuxrunconfiguration.h>
|
|
||||||
|
|
||||||
namespace Qnx {
|
namespace Qnx::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
class QnxRunConfiguration final : public ProjectExplorer::RunConfiguration
|
|
||||||
{
|
|
||||||
Q_OBJECT
|
|
||||||
|
|
||||||
public:
|
|
||||||
QnxRunConfiguration(ProjectExplorer::Target *target, Utils::Id id);
|
|
||||||
};
|
|
||||||
|
|
||||||
class QnxRunConfigurationFactory final : public ProjectExplorer::RunConfigurationFactory
|
class QnxRunConfigurationFactory final : public ProjectExplorer::RunConfigurationFactory
|
||||||
{
|
{
|
||||||
@@ -45,5 +35,4 @@ public:
|
|||||||
QnxRunConfigurationFactory();
|
QnxRunConfigurationFactory();
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Internal
|
} // Qnx::Internal
|
||||||
} // namespace Qnx
|
|
||||||
|
@@ -50,13 +50,10 @@
|
|||||||
|
|
||||||
using namespace Utils;
|
using namespace Utils;
|
||||||
|
|
||||||
namespace Qnx {
|
namespace Qnx::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
class QnxSettingsWidget final : public Core::IOptionsPageWidget
|
class QnxSettingsWidget final : public Core::IOptionsPageWidget
|
||||||
{
|
{
|
||||||
Q_DECLARE_TR_FUNCTIONS(Qnx::Internal::QnxSettingsWidget)
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
QnxSettingsWidget();
|
QnxSettingsWidget();
|
||||||
|
|
||||||
@@ -325,5 +322,4 @@ QnxSettingsPage::QnxSettingsPage()
|
|||||||
setWidgetCreator([] { return new QnxSettingsWidget; });
|
setWidgetCreator([] { return new QnxSettingsWidget; });
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Internal
|
} // Qnx::Internal
|
||||||
} // namespace Qnx
|
|
||||||
|
@@ -27,8 +27,7 @@
|
|||||||
|
|
||||||
#include <coreplugin/dialogs/ioptionspage.h>
|
#include <coreplugin/dialogs/ioptionspage.h>
|
||||||
|
|
||||||
namespace Qnx {
|
namespace Qnx::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
class QnxSettingsPage final : public Core::IOptionsPage
|
class QnxSettingsPage final : public Core::IOptionsPage
|
||||||
{
|
{
|
||||||
@@ -36,5 +35,4 @@ public:
|
|||||||
QnxSettingsPage();
|
QnxSettingsPage();
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Internal
|
} // Qnx::Internal
|
||||||
} // namespace Qnx
|
|
||||||
|
@@ -41,12 +41,32 @@
|
|||||||
using namespace ProjectExplorer;
|
using namespace ProjectExplorer;
|
||||||
using namespace Utils;
|
using namespace Utils;
|
||||||
|
|
||||||
namespace Qnx {
|
namespace Qnx::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
const char CompilerSdpPath[] = "Qnx.QnxToolChain.NDKPath";
|
const char CompilerSdpPath[] = "Qnx.QnxToolChain.NDKPath";
|
||||||
const char CpuDirKey[] = "Qnx.QnxToolChain.CpuDir";
|
const char CpuDirKey[] = "Qnx.QnxToolChain.CpuDir";
|
||||||
|
|
||||||
|
// QnxToolChainConfigWidget
|
||||||
|
|
||||||
|
class QnxToolChainConfigWidget : public ToolChainConfigWidget
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
QnxToolChainConfigWidget(QnxToolChain *tc);
|
||||||
|
|
||||||
|
private:
|
||||||
|
void applyImpl() override;
|
||||||
|
void discardImpl() override;
|
||||||
|
bool isDirtyImpl() const override;
|
||||||
|
void makeReadOnlyImpl() override { }
|
||||||
|
|
||||||
|
void handleSdpPathChange();
|
||||||
|
|
||||||
|
Utils::PathChooser *m_compilerCommand;
|
||||||
|
Utils::PathChooser *m_sdpPath;
|
||||||
|
ProjectExplorer::AbiWidget *m_abiWidget;
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
static Abis detectTargetAbis(const FilePath &sdpPath)
|
static Abis detectTargetAbis(const FilePath &sdpPath)
|
||||||
{
|
{
|
||||||
Abis result;
|
Abis result;
|
||||||
@@ -323,5 +343,4 @@ void QnxToolChainConfigWidget::handleSdpPathChange()
|
|||||||
emit dirty();
|
emit dirty();
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Internal
|
} // Qnx::Internal
|
||||||
} // namespace Qnx
|
|
||||||
|
@@ -31,8 +31,7 @@
|
|||||||
namespace ProjectExplorer { class AbiWidget; }
|
namespace ProjectExplorer { class AbiWidget; }
|
||||||
namespace Utils { class PathChooser; }
|
namespace Utils { class PathChooser; }
|
||||||
|
|
||||||
namespace Qnx {
|
namespace Qnx::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
class QnxToolChain : public ProjectExplorer::GccToolChain
|
class QnxToolChain : public ProjectExplorer::GccToolChain
|
||||||
{
|
{
|
||||||
@@ -75,30 +74,4 @@ public:
|
|||||||
const ProjectExplorer::ToolchainDetector &detector) const final;
|
const ProjectExplorer::ToolchainDetector &detector) const final;
|
||||||
};
|
};
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
} // Qnx::Internal
|
||||||
// QnxToolChainConfigWidget
|
|
||||||
//----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
class QnxToolChainConfigWidget : public ProjectExplorer::ToolChainConfigWidget
|
|
||||||
{
|
|
||||||
Q_OBJECT
|
|
||||||
|
|
||||||
public:
|
|
||||||
QnxToolChainConfigWidget(QnxToolChain *tc);
|
|
||||||
|
|
||||||
private:
|
|
||||||
void applyImpl() override;
|
|
||||||
void discardImpl() override;
|
|
||||||
bool isDirtyImpl() const override;
|
|
||||||
void makeReadOnlyImpl() override { }
|
|
||||||
|
|
||||||
void handleSdpPathChange();
|
|
||||||
|
|
||||||
Utils::PathChooser *m_compilerCommand;
|
|
||||||
Utils::PathChooser *m_sdpPath;
|
|
||||||
ProjectExplorer::AbiWidget *m_abiWidget;
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
} // namespace Internal
|
|
||||||
} // namespace Qnx
|
|
||||||
|
@@ -41,8 +41,7 @@
|
|||||||
using namespace ProjectExplorer;
|
using namespace ProjectExplorer;
|
||||||
using namespace Utils;
|
using namespace Utils;
|
||||||
|
|
||||||
namespace Qnx {
|
namespace Qnx::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
const char *EVAL_ENV_VARS[] = {
|
const char *EVAL_ENV_VARS[] = {
|
||||||
"QNX_TARGET", "QNX_HOST", "QNX_CONFIGURATION", "QNX_CONFIGURATION_EXCLUSIVE",
|
"QNX_TARGET", "QNX_HOST", "QNX_CONFIGURATION", "QNX_CONFIGURATION_EXCLUSIVE",
|
||||||
@@ -253,5 +252,4 @@ Abis QnxUtils::convertAbis(const Abis &abis)
|
|||||||
return Utils::transform(abis, &QnxUtils::convertAbi);
|
return Utils::transform(abis, &QnxUtils::convertAbi);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // Internal
|
} // Qnx::Internal
|
||||||
} // Qnx
|
|
||||||
|
@@ -28,15 +28,12 @@
|
|||||||
#include "qnxconstants.h"
|
#include "qnxconstants.h"
|
||||||
|
|
||||||
#include <projectexplorer/abi.h>
|
#include <projectexplorer/abi.h>
|
||||||
|
|
||||||
#include <utils/environment.h>
|
#include <utils/environment.h>
|
||||||
#include <utils/qtcassert.h>
|
#include <utils/qtcassert.h>
|
||||||
#include <utils/fileutils.h>
|
#include <utils/fileutils.h>
|
||||||
|
|
||||||
#include <QTextStream>
|
namespace Qnx::Internal {
|
||||||
#include <QString>
|
|
||||||
|
|
||||||
namespace Qnx {
|
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
class ConfigInstallInformation
|
class ConfigInstallInformation
|
||||||
{
|
{
|
||||||
@@ -78,5 +75,4 @@ public:
|
|||||||
static ProjectExplorer::Abis convertAbis(const ProjectExplorer::Abis &abis);
|
static ProjectExplorer::Abis convertAbis(const ProjectExplorer::Abis &abis);
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Internal
|
} // Qnx::Internal
|
||||||
} // namespace Qnx
|
|
||||||
|
@@ -28,8 +28,7 @@
|
|||||||
#include <QDir>
|
#include <QDir>
|
||||||
#include <QRegularExpression>
|
#include <QRegularExpression>
|
||||||
|
|
||||||
namespace Qnx {
|
namespace Qnx::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
static const char NONDIGIT_SEGMENT_REGEXP[] = "(?<=\\d)(?=\\D)|(?<=\\D)(?=\\d)";
|
static const char NONDIGIT_SEGMENT_REGEXP[] = "(?<=\\d)(?=\\D)|(?<=\\D)(?=\\d)";
|
||||||
|
|
||||||
@@ -112,5 +111,4 @@ bool QnxVersionNumber::isEmpty() const
|
|||||||
return m_segments.isEmpty();
|
return m_segments.isEmpty();
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Internal
|
} // Qnx::Internal
|
||||||
} // namespace Qnx
|
|
||||||
|
@@ -27,8 +27,8 @@
|
|||||||
|
|
||||||
#include <QStringList>
|
#include <QStringList>
|
||||||
|
|
||||||
namespace Qnx {
|
namespace Qnx::Internal {
|
||||||
namespace Internal {
|
|
||||||
class QnxVersionNumber
|
class QnxVersionNumber
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -50,5 +50,4 @@ private:
|
|||||||
QStringList m_segments;
|
QStringList m_segments;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Internal
|
} // Qnx::Internal
|
||||||
} // namespace Qnx
|
|
||||||
|
@@ -38,8 +38,7 @@
|
|||||||
using namespace ProjectExplorer;
|
using namespace ProjectExplorer;
|
||||||
using namespace Utils;
|
using namespace Utils;
|
||||||
|
|
||||||
namespace Qnx {
|
namespace Qnx::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
Slog2InfoRunner::Slog2InfoRunner(RunControl *runControl)
|
Slog2InfoRunner::Slog2InfoRunner(RunControl *runControl)
|
||||||
: RunWorker(runControl)
|
: RunWorker(runControl)
|
||||||
@@ -186,12 +185,12 @@ void Slog2InfoRunner::processLogLine(const QString &line)
|
|||||||
if (bufferName == QLatin1String("default") && bufferId == 8900)
|
if (bufferName == QLatin1String("default") && bufferId == 8900)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
appendMessage(match.captured(6).trimmed() + '\n', Utils::StdOutFormat);
|
appendMessage(match.captured(6).trimmed() + '\n', StdOutFormat);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Slog2InfoRunner::readLogStandardError()
|
void Slog2InfoRunner::readLogStandardError()
|
||||||
{
|
{
|
||||||
appendMessage(QString::fromLatin1(m_logProcess->readAllStandardError()), Utils::StdErrFormat);
|
appendMessage(QString::fromLatin1(m_logProcess->readAllStandardError()), StdErrFormat);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Slog2InfoRunner::handleLogDone()
|
void Slog2InfoRunner::handleLogDone()
|
||||||
@@ -200,8 +199,7 @@ void Slog2InfoRunner::handleLogDone()
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
appendMessage(Tr::tr("Cannot show slog2info output. Error: %1")
|
appendMessage(Tr::tr("Cannot show slog2info output. Error: %1")
|
||||||
.arg(m_logProcess->errorString()), Utils::StdErrFormat);
|
.arg(m_logProcess->errorString()), StdErrFormat);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Internal
|
} // Qnx::Internal
|
||||||
} // namespace Qnx
|
|
||||||
|
@@ -25,22 +25,16 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <QObject>
|
|
||||||
|
|
||||||
#include <projectexplorer/runcontrol.h>
|
#include <projectexplorer/runcontrol.h>
|
||||||
#include <utils/outputformat.h>
|
|
||||||
|
|
||||||
#include <QDateTime>
|
#include <QDateTime>
|
||||||
#include <QByteArray>
|
|
||||||
|
|
||||||
namespace Utils { class QtcProcess; }
|
namespace Utils { class QtcProcess; }
|
||||||
|
|
||||||
namespace Qnx {
|
namespace Qnx::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
class Slog2InfoRunner : public ProjectExplorer::RunWorker
|
class Slog2InfoRunner : public ProjectExplorer::RunWorker
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
|
||||||
public:
|
public:
|
||||||
explicit Slog2InfoRunner(ProjectExplorer::RunControl *runControl);
|
explicit Slog2InfoRunner(ProjectExplorer::RunControl *runControl);
|
||||||
|
|
||||||
@@ -74,5 +68,4 @@ private:
|
|||||||
Utils::QtcProcess *m_logProcess = nullptr;
|
Utils::QtcProcess *m_logProcess = nullptr;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Internal
|
} // Qnx::Internal
|
||||||
} // namespace Qnx
|
|
||||||
|
Reference in New Issue
Block a user