CQtDeployer/Deploy/ignorerule.h
EndrII 96fde6c958
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.
v 1.5.4.14
2022-03-09 17:56:42 +03:00

53 lines
1.1 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 IGNORERULE_H
#define IGNORERULE_H
#include "envirement.h"
#include "libinfo.h"
#include <QString>
#include <deploycore.h>
/**
* @brief The IgnoreData struct
* ignore file with label and othe rooles
*/
struct IgnoreData{
IgnoreData(const QString& label = "");
QString label;
Platform platform = UnknownPlatform;
LibPriority prority = NotFile;
Envirement enfirement;
};
class IgnoreRule
{
private:
QList<IgnoreData> _data;
bool checkOnlytext(const QString& lib);
bool check(const LibInfo &info, const QString &ignoreLabel) const;
public:
IgnoreRule();
void addRule(const IgnoreData& rule);
/**
* @brief isIgnore
* @param info
* @return const ptr to ignore data
*/
const IgnoreData *isIgnore(const LibInfo& info) const;
};
#endif // IGNORERULE_H