mirror of
https://github.com/QuasarApp/CQtDeployer.git
synced 2025-04-28 10:44:33 +00:00
All checks were successful
buildbot/AndroidBuilder_v8Qt6 Build finished.
buildbot/LinuxCMakeBuilderQt6 Build finished.
buildbot/AndroidBuilder_v7 Build finished.
buildbot/DocsGenerator Build finished.
buildbot/LinuxCMakeBuilder Build finished.
buildbot/Wasm32Builder Build finished.
buildbot/AndroidBuilder_v8 Build finished.
buildbot/WindowsCMakeBuilder Build finished.
buildbot/LinuxBuilder Build finished.
buildbot/WindowsBuilder Build finished.
buildbot/IOSCMakeBuilder Build finished.
57 lines
1.6 KiB
C++
57 lines
1.6 KiB
C++
//#
|
|
//# Copyright (C) 2018-2022 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.
|
|
//#
|
|
|
|
#ifndef ENVIREMENT_H
|
|
#define ENVIREMENT_H
|
|
|
|
#include <QSet>
|
|
#include <QStringList>
|
|
#include "deploy_global.h"
|
|
|
|
class QDir;
|
|
|
|
class DEPLOYSHARED_EXPORT Envirement
|
|
{
|
|
private:
|
|
Envirement *_ignoreEnvList = nullptr;
|
|
QSet<QString> _dataEnvironment;
|
|
|
|
QSet<QString> upper(const QSet<QString> &set) const;
|
|
public:
|
|
Envirement();
|
|
~Envirement();
|
|
QStringList environmentList() const;
|
|
QStringList ignoreEnvList() const;
|
|
void setIgnoreEnvList(const QStringList &ignoreEnvList);
|
|
void setIgnoreEnvListRecursive(const QStringList &ignoreEnvList, int depch = -1);
|
|
|
|
void addEnvRec(const QString &dir, int depch);
|
|
|
|
void addEnv(const QString &dir);
|
|
void addEnv(const QStringList &listDirs);
|
|
|
|
/**
|
|
* @brief isIgnore This method return true if the @a path is contains in ignore list else return false.
|
|
* @brief path This is path to of the system enviroment that will be checked to ignore.
|
|
* @return true if the @a path is contains in ignore list else return false.
|
|
*/
|
|
bool isIgnore(const QString& path) const;
|
|
|
|
void clear();
|
|
|
|
// return true if file exits in this envirement
|
|
bool inThisEnvirement(const QString &file) const;
|
|
|
|
int size() const;
|
|
QString concatEnv() const;
|
|
|
|
static QStringList recursiveInvairement(QDir &dir, int depch, int depchLimit = -1);
|
|
static QStringList recursiveInvairement(const QString &dir, int depch = -1);
|
|
};
|
|
|
|
#endif // ENVIREMENT_H
|