Commit eee4f2c6 authored by Kai Koehne's avatar Kai Koehne
Browse files

Make licensechecker dependency optional



Change-Id: Ia353ef7065dbd7dd3ff1f3a9293613cf7f14ce37
Reviewed-by: default avatarEike Ziller <eike.ziller@theqtcompany.com>
parent a133256e
......@@ -7,6 +7,7 @@ include(../../qtcreatorplugin.pri)
include(autotest_dependencies.pri)
DEFINES += AUTOTEST_LIBRARY
CONFIG(licensechecker): DEFINES += LICENSECHECKER
SOURCES += \
testtreeview.cpp \
......
......@@ -5,8 +5,9 @@ QTC_PLUGIN_DEPENDS += \
projectexplorer \
cpptools \
qmljstools \
qmakeprojectmanager \
licensechecker
qmakeprojectmanager
CONFIG(licensechecker): QTC_PLUGIN_DEPENDS += licensechecker
QTC_LIB_DEPENDS += \
cplusplus \
......
......@@ -38,7 +38,9 @@
#include <extensionsystem/pluginmanager.h>
#include <licensechecker/licensecheckerplugin.h>
#ifdef LICENSECHECKER
# include <licensechecker/licensecheckerplugin.h>
#endif
#include <QAction>
#include <QMessageBox>
......@@ -89,6 +91,7 @@ QSharedPointer<TestSettings> AutotestPlugin::settings() const
bool AutotestPlugin::checkLicense()
{
#ifdef LICENSECHECKER
LicenseChecker::LicenseCheckerPlugin *licenseChecker
= ExtensionSystem::PluginManager::getObject<LicenseChecker::LicenseCheckerPlugin>();
......@@ -97,6 +100,7 @@ bool AutotestPlugin::checkLicense()
return false;
} else if (!licenseChecker->enterpriseFeatures())
return false;
#endif // LICENSECHECKER
return true;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment