File tree 6 files changed +62
-7
lines changed
6 files changed +62
-7
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,8 @@ set(CLASSES
12
12
SqlPluginsDeployer
13
13
PositioningPluginsDeployer
14
14
LocationPluginsDeployer
15
- MultimediaPluginsDeployer
15
+ Multimedia5PluginsDeployer
16
+ Multimedia6PluginsDeployer
16
17
WebEnginePluginsDeployer
17
18
QmlPluginsDeployer
18
19
Qt3DPluginsDeployer
Original file line number Diff line number Diff line change 5
5
#include < linuxdeploy/core/log.h>
6
6
7
7
// local headers
8
- #include " MultimediaPluginsDeployer .h"
8
+ #include " Multimedia5PluginsDeployer .h"
9
9
10
10
using namespace linuxdeploy ::plugin::qt;
11
11
using namespace linuxdeploy ::core::log;
12
12
13
13
namespace fs = std::filesystem;
14
14
15
- bool MultimediaPluginsDeployer ::deploy () {
15
+ bool Multimedia5PluginsDeployer ::deploy () {
16
16
// calling the default code is optional, but it won't hurt for now
17
17
if (!BasicPluginsDeployer::deploy ())
18
18
return false ;
Original file line number Diff line number Diff line change 5
5
namespace linuxdeploy {
6
6
namespace plugin {
7
7
namespace qt {
8
- class MultimediaPluginsDeployer : public BasicPluginsDeployer {
8
+ class Multimedia5PluginsDeployer : public BasicPluginsDeployer {
9
9
public:
10
10
// we can just use the base class's constructor
11
11
using BasicPluginsDeployer::BasicPluginsDeployer;
Original file line number Diff line number Diff line change
1
+ // system headers
2
+ #include < filesystem>
3
+
4
+ // library headers
5
+ #include < linuxdeploy/core/log.h>
6
+
7
+ // local headers
8
+ #include " Multimedia6PluginsDeployer.h"
9
+
10
+ using namespace linuxdeploy ::plugin::qt;
11
+ using namespace linuxdeploy ::core::log;
12
+
13
+ namespace fs = std::filesystem;
14
+
15
+ bool Multimedia6PluginsDeployer::deploy () {
16
+ // calling the default code is optional, but it won't hurt for now
17
+ if (!BasicPluginsDeployer::deploy ())
18
+ return false ;
19
+
20
+ if (fs::exists (qtPluginsPath / " multimedia" )) {
21
+ ldLog () << " Deploying multimedia plugins" << std::endl;
22
+
23
+ for (fs::directory_iterator i (qtPluginsPath / " multimedia" ); i != fs::directory_iterator (); ++i) {
24
+ if (!appDir.deployLibrary (*i, appDir.path () / " usr/plugins/multimedia/" ))
25
+ return false ;
26
+ }
27
+ } else {
28
+ ldLog () << LD_WARNING << " Missing Qt 6 multimedia plugins, skipping." << std::endl;
29
+ }
30
+
31
+ return true ;
32
+ }
Original file line number Diff line number Diff line change
1
+ #pragma once
2
+
3
+ #include " BasicPluginsDeployer.h"
4
+
5
+ namespace linuxdeploy {
6
+ namespace plugin {
7
+ namespace qt {
8
+ class Multimedia6PluginsDeployer : public BasicPluginsDeployer {
9
+ public:
10
+ // we can just use the base class's constructor
11
+ using BasicPluginsDeployer::BasicPluginsDeployer;
12
+
13
+ bool deploy () override ;
14
+ };
15
+ }
16
+ }
17
+ }
Original file line number Diff line number Diff line change 5
5
#include " BearerPluginsDeployer.h"
6
6
#include " GamepadPluginsDeployer.h"
7
7
#include " LocationPluginsDeployer.h"
8
- #include " MultimediaPluginsDeployer.h"
8
+ #include " Multimedia5PluginsDeployer.h"
9
+ #include " Multimedia6PluginsDeployer.h"
9
10
#include " PrintSupportPluginsDeployer.h"
10
11
#include " PositioningPluginsDeployer.h"
11
12
#include " QmlPluginsDeployer.h"
@@ -70,8 +71,12 @@ std::vector<std::shared_ptr<PluginsDeployer>> PluginsDeployerFactory::getDeploye
70
71
return {getInstance<PositioningPluginsDeployer>(moduleName)};
71
72
}
72
73
73
- if (qtMajorVersion < 6 && moduleName == " multimedia" ) {
74
- return {getInstance<MultimediaPluginsDeployer>(moduleName)};
74
+ if (moduleName == " multimedia" ) {
75
+ if (qtMajorVersion < 6 ) {
76
+ return {getInstance<Multimedia5PluginsDeployer>(moduleName)};
77
+ } else {
78
+ return {getInstance<Multimedia6PluginsDeployer>(moduleName)};
79
+ }
75
80
}
76
81
77
82
if (moduleName == " webenginecore" ) {
You can’t perform that action at this time.
0 commit comments