forked from qt-creator/qt-creator
CMakeProjectManager: Export CMake*Aspect and CMakeConfigItem
Allow other plugins to set CMake specific Kit options. Change-Id: I038e9fabc3d2cb8cc463adafebecd51b21ef3d05 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -25,6 +25,8 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include "cmake_global.h"
|
||||||
|
|
||||||
#include <utils/optional.h>
|
#include <utils/optional.h>
|
||||||
|
|
||||||
#include <QByteArray>
|
#include <QByteArray>
|
||||||
@@ -40,7 +42,7 @@ class MacroExpander;
|
|||||||
|
|
||||||
namespace CMakeProjectManager {
|
namespace CMakeProjectManager {
|
||||||
|
|
||||||
class CMakeConfigItem {
|
class CMAKE_EXPORT CMakeConfigItem {
|
||||||
public:
|
public:
|
||||||
enum Type { FILEPATH, PATH, BOOL, STRING, INTERNAL, STATIC };
|
enum Type { FILEPATH, PATH, BOOL, STRING, INTERNAL, STATIC };
|
||||||
CMakeConfigItem();
|
CMakeConfigItem();
|
||||||
|
@@ -58,7 +58,6 @@
|
|||||||
using namespace ProjectExplorer;
|
using namespace ProjectExplorer;
|
||||||
|
|
||||||
namespace CMakeProjectManager {
|
namespace CMakeProjectManager {
|
||||||
namespace Internal {
|
|
||||||
// --------------------------------------------------------------------
|
// --------------------------------------------------------------------
|
||||||
// CMakeKitAspect:
|
// CMakeKitAspect:
|
||||||
// --------------------------------------------------------------------
|
// --------------------------------------------------------------------
|
||||||
@@ -1075,5 +1074,4 @@ KitAspectWidget *CMakeConfigurationKitAspect::createConfigWidget(Kit *k) const
|
|||||||
return new CMakeConfigurationKitAspectWidget(k, this);
|
return new CMakeConfigurationKitAspectWidget(k, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Internal
|
|
||||||
} // namespace CMakeProjectManager
|
} // namespace CMakeProjectManager
|
||||||
|
@@ -25,6 +25,8 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include "cmake_global.h"
|
||||||
|
|
||||||
#include "cmakeconfigitem.h"
|
#include "cmakeconfigitem.h"
|
||||||
|
|
||||||
#include <projectexplorer/kitmanager.h>
|
#include <projectexplorer/kitmanager.h>
|
||||||
@@ -32,9 +34,7 @@
|
|||||||
namespace CMakeProjectManager {
|
namespace CMakeProjectManager {
|
||||||
class CMakeTool;
|
class CMakeTool;
|
||||||
|
|
||||||
namespace Internal {
|
class CMAKE_EXPORT CMakeKitAspect : public ProjectExplorer::KitAspect
|
||||||
|
|
||||||
class CMakeKitAspect : public ProjectExplorer::KitAspect
|
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
@@ -58,7 +58,7 @@ public:
|
|||||||
QSet<Core::Id> availableFeatures(const ProjectExplorer::Kit *k) const final;
|
QSet<Core::Id> availableFeatures(const ProjectExplorer::Kit *k) const final;
|
||||||
};
|
};
|
||||||
|
|
||||||
class CMakeGeneratorKitAspect : public ProjectExplorer::KitAspect
|
class CMAKE_EXPORT CMakeGeneratorKitAspect : public ProjectExplorer::KitAspect
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
@@ -88,7 +88,7 @@ private:
|
|||||||
QVariant defaultValue(const ProjectExplorer::Kit *k) const;
|
QVariant defaultValue(const ProjectExplorer::Kit *k) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
class CMakeConfigurationKitAspect : public ProjectExplorer::KitAspect
|
class CMAKE_EXPORT CMakeConfigurationKitAspect : public ProjectExplorer::KitAspect
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
@@ -113,5 +113,4 @@ private:
|
|||||||
QVariant defaultValue(const ProjectExplorer::Kit *k) const;
|
QVariant defaultValue(const ProjectExplorer::Kit *k) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Internal
|
|
||||||
} // namespace CMakeProjectManager
|
} // namespace CMakeProjectManager
|
||||||
|
Reference in New Issue
Block a user