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
|
||||
|
||||
#include "cmake_global.h"
|
||||
|
||||
#include <utils/optional.h>
|
||||
|
||||
#include <QByteArray>
|
||||
@@ -40,7 +42,7 @@ class MacroExpander;
|
||||
|
||||
namespace CMakeProjectManager {
|
||||
|
||||
class CMakeConfigItem {
|
||||
class CMAKE_EXPORT CMakeConfigItem {
|
||||
public:
|
||||
enum Type { FILEPATH, PATH, BOOL, STRING, INTERNAL, STATIC };
|
||||
CMakeConfigItem();
|
||||
|
@@ -58,7 +58,6 @@
|
||||
using namespace ProjectExplorer;
|
||||
|
||||
namespace CMakeProjectManager {
|
||||
namespace Internal {
|
||||
// --------------------------------------------------------------------
|
||||
// CMakeKitAspect:
|
||||
// --------------------------------------------------------------------
|
||||
@@ -1075,5 +1074,4 @@ KitAspectWidget *CMakeConfigurationKitAspect::createConfigWidget(Kit *k) const
|
||||
return new CMakeConfigurationKitAspectWidget(k, this);
|
||||
}
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace CMakeProjectManager
|
||||
|
@@ -25,6 +25,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "cmake_global.h"
|
||||
|
||||
#include "cmakeconfigitem.h"
|
||||
|
||||
#include <projectexplorer/kitmanager.h>
|
||||
@@ -32,9 +34,7 @@
|
||||
namespace CMakeProjectManager {
|
||||
class CMakeTool;
|
||||
|
||||
namespace Internal {
|
||||
|
||||
class CMakeKitAspect : public ProjectExplorer::KitAspect
|
||||
class CMAKE_EXPORT CMakeKitAspect : public ProjectExplorer::KitAspect
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
@@ -58,7 +58,7 @@ public:
|
||||
QSet<Core::Id> availableFeatures(const ProjectExplorer::Kit *k) const final;
|
||||
};
|
||||
|
||||
class CMakeGeneratorKitAspect : public ProjectExplorer::KitAspect
|
||||
class CMAKE_EXPORT CMakeGeneratorKitAspect : public ProjectExplorer::KitAspect
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
@@ -88,7 +88,7 @@ private:
|
||||
QVariant defaultValue(const ProjectExplorer::Kit *k) const;
|
||||
};
|
||||
|
||||
class CMakeConfigurationKitAspect : public ProjectExplorer::KitAspect
|
||||
class CMAKE_EXPORT CMakeConfigurationKitAspect : public ProjectExplorer::KitAspect
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
@@ -113,5 +113,4 @@ private:
|
||||
QVariant defaultValue(const ProjectExplorer::Kit *k) const;
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace CMakeProjectManager
|
||||
|
Reference in New Issue
Block a user