2021-01-05 13:17:11 +03:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2018-2021 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-12-20 17:25:20 +03:00
|
|
|
#include "pathutils.h"
|
|
|
|
#include "qtdir.h"
|
|
|
|
|
2020-11-05 12:57:41 +03:00
|
|
|
QtMajorVersion QtDir::getQtVersion() const {
|
|
|
|
return _qtVersion;
|
|
|
|
}
|
|
|
|
|
|
|
|
void QtDir::setQtVersion(const QtMajorVersion &qtVersion) {
|
|
|
|
_qtVersion = qtVersion;
|
|
|
|
}
|
|
|
|
|
2019-12-20 17:25:20 +03:00
|
|
|
QString QtDir::getLibs() const {
|
|
|
|
return libs;
|
|
|
|
}
|
|
|
|
|
|
|
|
void QtDir::setLibs(const QString &value) {
|
|
|
|
libs = PathUtils::fixPath(value);
|
|
|
|
}
|
|
|
|
|
|
|
|
QString QtDir::getBins() const {
|
|
|
|
return bins;
|
|
|
|
}
|
|
|
|
|
|
|
|
void QtDir::setBins(const QString &value) {
|
|
|
|
bins = PathUtils::fixPath(value);
|
|
|
|
}
|
|
|
|
|
|
|
|
QString QtDir::getLibexecs() const {
|
|
|
|
return libexecs;
|
|
|
|
}
|
|
|
|
|
|
|
|
void QtDir::setLibexecs(const QString &value) {
|
|
|
|
libexecs = PathUtils::fixPath(value);
|
|
|
|
}
|
|
|
|
|
|
|
|
QString QtDir::getPlugins() const {
|
|
|
|
return plugins;
|
|
|
|
}
|
|
|
|
|
|
|
|
void QtDir::setPlugins(const QString &value) {
|
|
|
|
plugins = PathUtils::fixPath(value);
|
|
|
|
}
|
|
|
|
|
|
|
|
QString QtDir::getQmls() const {
|
|
|
|
return qmls;
|
|
|
|
}
|
|
|
|
|
|
|
|
void QtDir::setQmls(const QString &value)
|
|
|
|
{
|
|
|
|
qmls = PathUtils::fixPath(value);
|
|
|
|
}
|
|
|
|
|
|
|
|
QString QtDir::getTranslations() const {
|
|
|
|
return translations;
|
|
|
|
}
|
|
|
|
|
|
|
|
void QtDir::setTranslations(const QString &value) {
|
|
|
|
translations = PathUtils::fixPath(value);
|
|
|
|
}
|
|
|
|
|
|
|
|
QString QtDir::getResources() const{
|
|
|
|
return resources;
|
|
|
|
}
|
|
|
|
|
|
|
|
void QtDir::setResources(const QString &value) {
|
|
|
|
resources = PathUtils::fixPath(value);
|
|
|
|
}
|
|
|
|
|
|
|
|
Platform QtDir::getQtPlatform() const {
|
|
|
|
return qtPlatform;
|
|
|
|
}
|
|
|
|
|
|
|
|
void QtDir::setQtPlatform(const Platform &value) {
|
|
|
|
qtPlatform = value;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QtDir::isQt(QString path) const {
|
|
|
|
|
|
|
|
path = PathUtils::fixPath(path);
|
|
|
|
|
|
|
|
return
|
2021-08-31 11:42:45 +03:00
|
|
|
(!libs.isEmpty() && path.contains(libs, DeployCore::getCaseSensitivity())) ||
|
|
|
|
(!bins.isEmpty() && path.contains(bins, DeployCore::getCaseSensitivity())) ||
|
|
|
|
(!libexecs.isEmpty() && path.contains(libexecs, DeployCore::getCaseSensitivity())) ||
|
|
|
|
(!plugins.isEmpty() && path.contains(plugins, DeployCore::getCaseSensitivity())) ||
|
|
|
|
(!qmls.isEmpty() && path.contains(qmls, DeployCore::getCaseSensitivity())) ||
|
|
|
|
(!translations.isEmpty() && path.contains(translations, DeployCore::getCaseSensitivity())) ||
|
|
|
|
(!resources.isEmpty() && path.contains(resources, DeployCore::getCaseSensitivity()));
|
2019-12-20 17:25:20 +03:00
|
|
|
}
|