mirror of
https://github.com/QuasarApp/CQtDeployer.git
synced 2025-05-08 15:39:35 +00:00
added more logs
This commit is contained in:
parent
65ba81e466
commit
cbfc9c8d4e
@ -753,6 +753,10 @@ bool ConfigParser::parseDeployMode(bool checkBin) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QuasarAppUtils::Params::log(
|
||||||
|
_config.qtDir.toString(),
|
||||||
|
QuasarAppUtils::Debug);
|
||||||
|
|
||||||
if (!initQmlInput()) {
|
if (!initQmlInput()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -1134,7 +1138,7 @@ QString ConfigParser::getPathFrmoQmakeLine(const QString &in) const {
|
|||||||
bool ConfigParser::initQmakePrivate(const QString &qmake) {
|
bool ConfigParser::initQmakePrivate(const QString &qmake) {
|
||||||
QFileInfo info(qmake);
|
QFileInfo info(qmake);
|
||||||
|
|
||||||
QuasarAppUtils::Params::log("initialize qmake for ." + info.absoluteFilePath(),
|
QuasarAppUtils::Params::log("initialize qmake for. " + info.absoluteFilePath(),
|
||||||
QuasarAppUtils::Debug);
|
QuasarAppUtils::Debug);
|
||||||
|
|
||||||
QString basePath = info.absolutePath();
|
QString basePath = info.absolutePath();
|
||||||
@ -1313,7 +1317,7 @@ bool ConfigParser::setQtDir(const QString &value) {
|
|||||||
|
|
||||||
QFileInfo info(value);
|
QFileInfo info(value);
|
||||||
|
|
||||||
QuasarAppUtils::Params::log("initialize qt dirs for ." + info.absoluteFilePath(),
|
QuasarAppUtils::Params::log("initialize qt dirs for. " + info.absoluteFilePath(),
|
||||||
QuasarAppUtils::Debug);
|
QuasarAppUtils::Debug);
|
||||||
|
|
||||||
if (!QFile::exists(info.absoluteFilePath() + ("/bin"))) {
|
if (!QFile::exists(info.absoluteFilePath() + ("/bin"))) {
|
||||||
|
@ -8,7 +8,6 @@
|
|||||||
#include "deploycore.h"
|
#include "deploycore.h"
|
||||||
#include "envirement.h"
|
#include "envirement.h"
|
||||||
#include "pathutils.h"
|
#include "pathutils.h"
|
||||||
#include "quasarapp.h"
|
|
||||||
|
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
#include <QFileInfo>
|
#include <QFileInfo>
|
||||||
|
@ -12,6 +12,29 @@ QtMajorVersion QtDir::getQtVersion() const {
|
|||||||
return _qtVersion;
|
return _qtVersion;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QString QtDir::toString() const {
|
||||||
|
return QString {
|
||||||
|
"Qt Inforamtion: \n"
|
||||||
|
"Platform: %0\n"
|
||||||
|
"Major version: %1\n"
|
||||||
|
"Binaries dir: %2\n"
|
||||||
|
"Libraries dir: %3\n"
|
||||||
|
"Libexecs dir: %4\n"
|
||||||
|
"Plugins dir: %5\n"
|
||||||
|
"QMLs dir: %6\n"
|
||||||
|
"Translations dir: %7\n"
|
||||||
|
"Resources dir: %8\n"
|
||||||
|
}.arg(DeployCore::platformToString(_platform),
|
||||||
|
QString::number(DeployCore::qtVersionToString(_qtVersion)),
|
||||||
|
bins,
|
||||||
|
libs,
|
||||||
|
libexecs,
|
||||||
|
plugins,
|
||||||
|
qmls,
|
||||||
|
translations,
|
||||||
|
resources);
|
||||||
|
}
|
||||||
|
|
||||||
QString QtDir::getLibs() const {
|
QString QtDir::getLibs() const {
|
||||||
return libs;
|
return libs;
|
||||||
}
|
}
|
||||||
|
@ -9,10 +9,11 @@
|
|||||||
#define QTDIR_H
|
#define QTDIR_H
|
||||||
|
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
|
#include <humanreadableobject.h>
|
||||||
#include "deploy_global.h"
|
#include "deploy_global.h"
|
||||||
#include "deploycore.h"
|
#include "deploycore.h"
|
||||||
|
|
||||||
class DEPLOYSHARED_EXPORT QtDir {
|
class DEPLOYSHARED_EXPORT QtDir: QuasarAppUtils::HumanReadableObject {
|
||||||
QString libs;
|
QString libs;
|
||||||
QString bins;
|
QString bins;
|
||||||
QString libexecs;
|
QString libexecs;
|
||||||
@ -53,6 +54,8 @@ public:
|
|||||||
* @return the masjor version of qt
|
* @return the masjor version of qt
|
||||||
*/
|
*/
|
||||||
QtMajorVersion getQtVersion() const;
|
QtMajorVersion getQtVersion() const;
|
||||||
|
|
||||||
|
QString toString() const override;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // QTDIR_H
|
#endif // QTDIR_H
|
||||||
|
Loading…
x
Reference in New Issue
Block a user