mirror of
https://github.com/QuasarApp/CQtDeployer.git
synced 2025-05-09 07:59:37 +00:00
Merge pull request #802 from QuasarApp/task_801
Added multimedia plugin into deploy rules
This commit is contained in:
commit
dcb26b01c9
@ -36,6 +36,7 @@ static const PluginModuleMapping pluginModuleMappings[] =
|
|||||||
{"audio", DeployCore::QtModule::QtMultimediaModule},
|
{"audio", DeployCore::QtModule::QtMultimediaModule},
|
||||||
{"mediaservice", DeployCore::QtModule::QtMultimediaModule},
|
{"mediaservice", DeployCore::QtModule::QtMultimediaModule},
|
||||||
{"playlistformats", DeployCore::QtModule::QtMultimediaModule},
|
{"playlistformats", DeployCore::QtModule::QtMultimediaModule},
|
||||||
|
{"multimedia", DeployCore::QtModule::QtMultimediaModule},
|
||||||
{"bearer", DeployCore::QtModule::QtNetworkModule},
|
{"bearer", DeployCore::QtModule::QtNetworkModule},
|
||||||
{"tls", DeployCore::QtModule::QtNetworkModule},
|
{"tls", DeployCore::QtModule::QtNetworkModule},
|
||||||
{"networkinformation", DeployCore::QtModule::QtNetworkModule},
|
{"networkinformation", DeployCore::QtModule::QtNetworkModule},
|
||||||
|
@ -57,6 +57,22 @@ QSet<QString> ModulesQt6_5::qmlVirtualKeyBoadrLibs(const QString &distDir) const
|
|||||||
TestUtils utils;
|
TestUtils utils;
|
||||||
|
|
||||||
auto Tree = ModulesQt6_4::qmlVirtualKeyBoadrLibs(distDir);
|
auto Tree = ModulesQt6_4::qmlVirtualKeyBoadrLibs(distDir);
|
||||||
|
|
||||||
|
#ifdef Q_OS_WIN
|
||||||
|
Tree += utils.createTree(
|
||||||
|
{
|
||||||
|
"./" + distDir + "/plugins/multimedia/ffmpegmediaplugin.dll",
|
||||||
|
"./" + distDir + "/plugins/multimedia/windowsmediaplugin.dll"
|
||||||
|
}
|
||||||
|
);
|
||||||
|
#else
|
||||||
|
Tree += utils.createTree(
|
||||||
|
{
|
||||||
|
"./" + distDir + "/plugins/multimedia/libffmpegmediaplugin.so",
|
||||||
|
"./" + distDir + "/plugins/multimedia/libgstreamermediaplugin.so"
|
||||||
|
}
|
||||||
|
);
|
||||||
|
#endif
|
||||||
return Tree;
|
return Tree;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -278,6 +278,9 @@ tstMain::tstMain() {
|
|||||||
cqtTestPath = cqtTestPath +
|
cqtTestPath = cqtTestPath +
|
||||||
DeployCore::getEnvSeparator() +
|
DeployCore::getEnvSeparator() +
|
||||||
QT_BASE_DIR + "/../../Tools/QtInstallerFramework/4.6/bin/";
|
QT_BASE_DIR + "/../../Tools/QtInstallerFramework/4.6/bin/";
|
||||||
|
cqtTestPath = cqtTestPath +
|
||||||
|
DeployCore::getEnvSeparator() +
|
||||||
|
QT_BASE_DIR + "/../../Tools/QtInstallerFramework/4.7/bin/";
|
||||||
qputenv("PATH", cqtTestPath.toLatin1().data());
|
qputenv("PATH", cqtTestPath.toLatin1().data());
|
||||||
TestUtils utils;
|
TestUtils utils;
|
||||||
|
|
||||||
|
@ -30,3 +30,7 @@ void AllowEmptyPackagesTest::test() {
|
|||||||
"-prefix", "package;prefix",
|
"-prefix", "package;prefix",
|
||||||
"allowEmptyPackages"});
|
"allowEmptyPackages"});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QString AllowEmptyPackagesTest::testName() const {
|
||||||
|
return "AllowEmptyPackagesTest";
|
||||||
|
}
|
||||||
|
@ -18,6 +18,10 @@ class AllowEmptyPackagesTest: public TestBase, protected TestUtils
|
|||||||
public:
|
public:
|
||||||
void test() override;
|
void test() override;
|
||||||
|
|
||||||
|
|
||||||
|
// TestBase interface
|
||||||
|
public:
|
||||||
|
QString testName() const override;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // ALLOW_EMPTY_PACKAGES_TEST_H
|
#endif // ALLOW_EMPTY_PACKAGES_TEST_H
|
||||||
|
@ -17,6 +17,10 @@ TestBase::TestBase()
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QString TestBase::testName() const {
|
||||||
|
return typeid(*this).name();
|
||||||
|
}
|
||||||
|
|
||||||
int TestBase::generateLib(const QString &paath) {
|
int TestBase::generateLib(const QString &paath) {
|
||||||
QDir dir;
|
QDir dir;
|
||||||
dir.mkpath(QFileInfo(paath).absolutePath());
|
dir.mkpath(QFileInfo(paath).absolutePath());
|
||||||
@ -115,13 +119,13 @@ void TestBase::checkResults(const QSet<QString> &tree, bool noWarnings, bool onl
|
|||||||
|
|
||||||
QJsonDocument doc(obj);
|
QJsonDocument doc(obj);
|
||||||
|
|
||||||
QFile lasttree("./LastTree.json");
|
QFile lasttree(QString("./%0_LastTree.json").arg(testName()));
|
||||||
lasttree.open(QIODevice::WriteOnly| QIODevice::Truncate);
|
lasttree.open(QIODevice::WriteOnly| QIODevice::Truncate);
|
||||||
|
|
||||||
lasttree.write(doc.toJson());
|
lasttree.write(doc.toJson());
|
||||||
lasttree.close();
|
lasttree.close();
|
||||||
|
|
||||||
lasttree.setFileName("./CompareTree.json");
|
lasttree.setFileName(QString("./%0_CompareTree.json").arg(testName()));
|
||||||
lasttree.open(QIODevice::WriteOnly| QIODevice::Truncate);
|
lasttree.open(QIODevice::WriteOnly| QIODevice::Truncate);
|
||||||
|
|
||||||
lasttree.write(QJsonDocument(comapreResult).toJson());
|
lasttree.write(QJsonDocument(comapreResult).toJson());
|
||||||
|
@ -15,6 +15,7 @@ class TestBase: public Test
|
|||||||
public:
|
public:
|
||||||
TestBase();
|
TestBase();
|
||||||
|
|
||||||
|
virtual QString testName() const;
|
||||||
void deploytest();
|
void deploytest();
|
||||||
int generateLib(const QString &paath);
|
int generateLib(const QString &paath);
|
||||||
void deleteLib(const QString &paath);
|
void deleteLib(const QString &paath);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user