mirror of
https://github.com/QuasarApp/CQtDeployer.git
synced 2025-04-27 18:24:33 +00:00
added ignoreRules
This commit is contained in:
parent
f90952068e
commit
89a3c267e4
@ -66,6 +66,10 @@ void Envirement::addEnv(const QString &dir, const QString &appDir, const QString
|
||||
_deployEnvironment.insert(QDir::fromNativeSeparators(path));
|
||||
}
|
||||
|
||||
bool Envirement::inThisEnvirement(const QString &file) const {
|
||||
//return _deployEnvironment.contains(file);
|
||||
}
|
||||
|
||||
int Envirement::size() const {
|
||||
return _deployEnvironment.size();
|
||||
}
|
||||
|
@ -20,6 +20,8 @@ public:
|
||||
void setIgnoreEnvList(const QStringList &ignoreEnvList);
|
||||
|
||||
void addEnv(const QString &dir, const QString &appDir, const QString &targetDir);
|
||||
// return true if file exits in this envirement
|
||||
bool inThisEnvirement(const QString &file) const;
|
||||
|
||||
int size() const;
|
||||
QString concatEnv() const;
|
||||
|
@ -19,20 +19,27 @@ void IgnoreRule::addRule(const IgnoreData &rule) {
|
||||
_data.push_back(rule);
|
||||
}
|
||||
|
||||
void IgnoreRule::check() {
|
||||
for (auto ignore : DeployCore::_config->ignoreList) {
|
||||
if (line.fullPath().contains(ignore)) {
|
||||
QuasarAppUtils::Params::verboseLog(line.fullPath() + " ignored by filter" + ignore);
|
||||
isIgnore = true;
|
||||
continue;
|
||||
}
|
||||
bool IgnoreRule::check(const LibInfo &info, const QString& ignoreLabel) {
|
||||
if (info.fullPath().contains(ignoreLabel)) {
|
||||
QuasarAppUtils::Params::verboseLog(info.fullPath() + " ignored by filter" + ignoreLabel);
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool IgnoreRule::isIgnore(const LibInfo &info) {
|
||||
|
||||
for (auto &ignore : _data) {
|
||||
|
||||
bool checkPlatform = ignore.platform == info.getPlatform() || ignore.platform == UnknownPlatform;
|
||||
bool checkPriority = ignore.prority <= info.getPriority();
|
||||
|
||||
if (checkPlatform && ignore.prority <= info.getPriority() && ) {
|
||||
|
||||
}
|
||||
ignore.prority >
|
||||
}
|
||||
|
||||
check();
|
||||
}
|
||||
|
@ -27,8 +27,7 @@ private:
|
||||
|
||||
bool checkOnlytext(const QString& lib);
|
||||
|
||||
void check();
|
||||
|
||||
bool check(const LibInfo &info, const QString &ignoreLabel);
|
||||
public:
|
||||
IgnoreRule();
|
||||
void addRule(const IgnoreData& rule);
|
||||
|
Loading…
x
Reference in New Issue
Block a user