2019-12-11 18:06:54 +03:00
|
|
|
#ifndef DEPLOYCONFIG_H
|
|
|
|
#define DEPLOYCONFIG_H
|
|
|
|
#include "deploy_global.h"
|
|
|
|
|
2019-12-13 23:05:07 +03:00
|
|
|
#include "distromodule.h"
|
2019-12-23 10:12:23 +03:00
|
|
|
#include "extra.h"
|
2019-12-11 18:06:54 +03:00
|
|
|
#include "ignorerule.h"
|
2019-12-23 10:12:23 +03:00
|
|
|
#include "qtdir.h"
|
2019-12-11 18:06:54 +03:00
|
|
|
#include "targetinfo.h"
|
|
|
|
|
2019-12-12 22:50:04 +03:00
|
|
|
class DEPLOYSHARED_EXPORT DeployConfig {
|
2019-12-11 18:06:54 +03:00
|
|
|
|
2019-12-12 22:50:04 +03:00
|
|
|
public:
|
2019-12-11 18:06:54 +03:00
|
|
|
/**
|
|
|
|
* @brief depchLimit - recursive search limit
|
|
|
|
*/
|
|
|
|
int depchLimit = 0;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief deployQml - enable or disable deploing of qml files.
|
|
|
|
*/
|
|
|
|
bool deployQml = false;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief ignoreList - list with ignore files
|
|
|
|
*/
|
|
|
|
IgnoreRule ignoreList;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief extraPlugins - list with pathes of extra plugins or plugins names
|
|
|
|
*/
|
|
|
|
QStringList extraPlugins;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief appDir - it is cqtdeployer library location for ignre cqtdeployr libraries
|
|
|
|
*/
|
|
|
|
QString appDir;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief qtDir - conteins all qt pathes
|
|
|
|
*/
|
|
|
|
QtDir qtDir;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief extraPaths - it is list with filters for extra pathes, files or libraries
|
|
|
|
*/
|
|
|
|
Extra extraPaths;
|
2019-12-13 23:05:07 +03:00
|
|
|
|
2019-12-11 18:06:54 +03:00
|
|
|
/**
|
|
|
|
* @brief envirement - envirement for find libraries
|
|
|
|
*/
|
|
|
|
Envirement envirement;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief reset config file to default
|
|
|
|
*/
|
|
|
|
void reset();
|
|
|
|
QHash<QString, TargetInfo *> getTargetsListByFilter(const QString& filter);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief targetPath
|
|
|
|
* @param target
|
2019-12-12 22:50:04 +03:00
|
|
|
* @return path to deployement root dir of target.
|
|
|
|
* If target value well be empty then return main root of all targets.
|
2019-12-11 18:06:54 +03:00
|
|
|
*/
|
2019-12-12 22:50:04 +03:00
|
|
|
QString getTargetDir(const QString& target = "") const;
|
2019-12-14 17:38:43 +03:00
|
|
|
void setTargetDir(const QString& target);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief getDistro
|
|
|
|
* @param target
|
|
|
|
* @return
|
|
|
|
*/
|
2020-01-02 19:27:40 +03:00
|
|
|
DistroModule getDistro(const QString& target) const;
|
2019-12-12 22:50:04 +03:00
|
|
|
|
2019-12-15 18:30:24 +03:00
|
|
|
/**
|
|
|
|
* @brief getDistroFromPrefix
|
|
|
|
* @param prefix
|
|
|
|
* @return distro struct from prefix
|
|
|
|
*/
|
2020-01-02 19:27:40 +03:00
|
|
|
DistroModule getDistroFromPrefix(const QString& prefix) const;
|
|
|
|
|
|
|
|
const QHash<QString, TargetInfo>& targets() const;
|
|
|
|
const QHash<QString, DistroModule>& prefixes() const;
|
|
|
|
|
|
|
|
QHash<QString, TargetInfo>& targetsEdit();
|
|
|
|
QHash<QString, DistroModule>& prefixesEdit();
|
2019-12-15 18:30:24 +03:00
|
|
|
|
2019-12-12 22:50:04 +03:00
|
|
|
private:
|
|
|
|
|
2020-01-02 19:27:40 +03:00
|
|
|
/**
|
|
|
|
* @brief targets
|
|
|
|
* key - path
|
|
|
|
* value - create wrapper
|
|
|
|
*/
|
|
|
|
QHash<QString, TargetInfo> _targets;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief prefixes
|
|
|
|
* key - prefix
|
|
|
|
* value struvture of prefix
|
|
|
|
* default prefix is empty value
|
|
|
|
*/
|
|
|
|
QHash<QString, DistroModule> _prefixes;
|
|
|
|
|
2019-12-12 22:50:04 +03:00
|
|
|
/**
|
|
|
|
* @brief targetDir - targe directory (this folder conteins all files of distrebution kit)
|
|
|
|
*/
|
|
|
|
QString targetDir = "";
|
|
|
|
|
2019-12-11 18:06:54 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif // DEPLOYCONFIG_H
|