2019-09-23 16:46:57 +03:00
|
|
|
//#
|
|
|
|
//# Copyright (C) 2018-2019 QuasarApp.
|
|
|
|
//# Distributed under the lgplv3 software license, see the accompanying
|
|
|
|
//# Everyone is permitted to copy and distribute verbatim copies
|
|
|
|
//# of this license document, but changing it is not allowed.
|
|
|
|
//#
|
|
|
|
|
2019-08-31 22:22:26 +03:00
|
|
|
#ifndef QTMODULES_H
|
|
|
|
#define QTMODULES_H
|
|
|
|
|
|
|
|
#include <QStringList>
|
2019-09-09 21:19:44 +03:00
|
|
|
#include "deploy_global.h"
|
2019-09-14 15:51:23 +03:00
|
|
|
#include "deploycore.h"
|
2019-08-31 22:22:26 +03:00
|
|
|
|
|
|
|
class DependenciesScanner;
|
|
|
|
|
2019-09-09 21:19:44 +03:00
|
|
|
struct DEPLOYSHARED_EXPORT PluginModuleMapping
|
2019-08-31 22:22:26 +03:00
|
|
|
{
|
|
|
|
const char *directoryName;
|
|
|
|
quint64 module;
|
|
|
|
};
|
|
|
|
|
2019-09-09 21:19:44 +03:00
|
|
|
class DEPLOYSHARED_EXPORT PluginsParser
|
2019-08-31 22:22:26 +03:00
|
|
|
{
|
|
|
|
private:
|
|
|
|
DependenciesScanner *_libScaner = nullptr;
|
|
|
|
|
|
|
|
quint64 qtModuleForPlugin(const QString &subDirName);
|
|
|
|
public:
|
2019-09-14 15:51:23 +03:00
|
|
|
PluginsParser();
|
|
|
|
bool scan(const QString &pluginPath, QStringList& resDependencies,
|
|
|
|
DeployCore::QtModule qtModules);
|
2019-09-08 13:37:33 +03:00
|
|
|
|
|
|
|
|
2019-08-31 22:22:26 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // QTMODULES_H
|