Skip to content
Snippets Groups Projects
Commit b3e4cf20 authored by Kai Koehne's avatar Kai Koehne
Browse files

Make licensechecker dependency optional


Change-Id: Ibf66800bac5f674fb015f4aaf3923b824651e75b
Reviewed-by: default avatarUlf Hermann <ulf.hermann@theqtcompany.com>
parent ac4162d4
No related branches found
No related tags found
No related merge requests found
......@@ -3,5 +3,6 @@ QTC_PLUGIN_NAME = QmlProfilerExtension
# qmldebug \
# extensionsystem
QTC_PLUGIN_DEPENDS += \
qmlprofiler \
licensechecker \
qmlprofiler
CONFIG(licensechecker): QT_PLUGIN_DEPENDS += licensechecker
......@@ -20,7 +20,9 @@
#include "qmlprofilerextensionconstants.h"
#include <qmlprofiler/qmlprofilertimelinemodelfactory.h>
#include <licensechecker/licensecheckerplugin.h>
#ifdef LICENSECHECKER
# include <licensechecker/licensecheckerplugin.h>
#endif
#include <coreplugin/icore.h>
#include <coreplugin/icontext.h>
......@@ -84,6 +86,7 @@ bool QmlProfilerExtensionPlugin::initialize(const QStringList &arguments, QStrin
Q_UNUSED(arguments)
Q_UNUSED(errorString)
#ifdef LICENSECHECKER
LicenseChecker::LicenseCheckerPlugin *licenseChecker
= ExtensionSystem::PluginManager::getObject<LicenseChecker::LicenseCheckerPlugin>();
......@@ -93,6 +96,9 @@ bool QmlProfilerExtensionPlugin::initialize(const QStringList &arguments, QStrin
} else {
qWarning() << "Invalid license, disabling QML Profiler Enterprise features";
}
#else // LICENSECHECKER
addAutoReleasedObject(new ModelFactory);
#endif
return true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment