4
1
mirror of https://github.com/QuasarApp/CQtDeployer.git synced 2025-05-07 06:59:35 +00:00

Merge pull request from QuasarApp/task_801

Added multimedia plugin into deploy rules
This commit is contained in:
Andrei Yankovich 2024-03-06 10:28:58 +01:00 committed by GitHub
commit dcb26b01c9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 35 additions and 2 deletions

@ -36,6 +36,7 @@ static const PluginModuleMapping pluginModuleMappings[] =
{"audio", DeployCore::QtModule::QtMultimediaModule},
{"mediaservice", DeployCore::QtModule::QtMultimediaModule},
{"playlistformats", DeployCore::QtModule::QtMultimediaModule},
{"multimedia", DeployCore::QtModule::QtMultimediaModule},
{"bearer", DeployCore::QtModule::QtNetworkModule},
{"tls", DeployCore::QtModule::QtNetworkModule},
{"networkinformation", DeployCore::QtModule::QtNetworkModule},

@ -57,6 +57,22 @@ QSet<QString> ModulesQt6_5::qmlVirtualKeyBoadrLibs(const QString &distDir) const
TestUtils utils;
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;
}

@ -278,6 +278,9 @@ tstMain::tstMain() {
cqtTestPath = cqtTestPath +
DeployCore::getEnvSeparator() +
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());
TestUtils utils;

@ -30,3 +30,7 @@ void AllowEmptyPackagesTest::test() {
"-prefix", "package;prefix",
"allowEmptyPackages"});
}
QString AllowEmptyPackagesTest::testName() const {
return "AllowEmptyPackagesTest";
}

@ -18,6 +18,10 @@ class AllowEmptyPackagesTest: public TestBase, protected TestUtils
public:
void test() override;
// TestBase interface
public:
QString testName() const override;
};
#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) {
QDir dir;
dir.mkpath(QFileInfo(paath).absolutePath());
@ -115,13 +119,13 @@ void TestBase::checkResults(const QSet<QString> &tree, bool noWarnings, bool onl
QJsonDocument doc(obj);
QFile lasttree("./LastTree.json");
QFile lasttree(QString("./%0_LastTree.json").arg(testName()));
lasttree.open(QIODevice::WriteOnly| QIODevice::Truncate);
lasttree.write(doc.toJson());
lasttree.close();
lasttree.setFileName("./CompareTree.json");
lasttree.setFileName(QString("./%0_CompareTree.json").arg(testName()));
lasttree.open(QIODevice::WriteOnly| QIODevice::Truncate);
lasttree.write(QJsonDocument(comapreResult).toJson());

@ -15,6 +15,7 @@ class TestBase: public Test
public:
TestBase();
virtual QString testName() const;
void deploytest();
int generateLib(const QString &paath);
void deleteLib(const QString &paath);