File tree Expand file tree Collapse file tree 4 files changed +47
-0
lines changed Expand file tree Collapse file tree 4 files changed +47
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ set(CLASSES
16
16
QmlPluginsDeployer
17
17
Qt3DPluginsDeployer
18
18
GamepadPluginsDeployer
19
+ PrintSupportPluginsDeployer
19
20
)
20
21
21
22
# TODO: CMake <= 3.7 (at least!) doesn't allow for using OBJECT libraries with target_link_libraries
Original file line number Diff line number Diff line change 5
5
#include " BearerPluginsDeployer.h"
6
6
#include " GamepadPluginsDeployer.h"
7
7
#include " MultimediaPluginsDeployer.h"
8
+ #include " PrintSupportPluginsDeployer.h"
8
9
#include " PositioningPluginsDeployer.h"
9
10
#include " QmlPluginsDeployer.h"
10
11
#include " Qt3DPluginsDeployer.h"
@@ -74,6 +75,10 @@ std::vector<std::shared_ptr<PluginsDeployer>> PluginsDeployerFactory::getDeploye
74
75
return {getInstance<GamepadPluginsDeployer>(moduleName)};
75
76
}
76
77
78
+ if (moduleName == " printsupport" ) {
79
+ return {getInstance<PrintSupportPluginsDeployer>(moduleName)};
80
+ }
81
+
77
82
// fallback
78
83
return {getInstance<BasicPluginsDeployer>(moduleName)};
79
84
}
Original file line number Diff line number Diff line change
1
+ // library headers
2
+ #include < linuxdeploy/core/log.h>
3
+ #include < boost/filesystem.hpp>
4
+
5
+ // local headers
6
+ #include " PrintSupportPluginsDeployer.h"
7
+
8
+ using namespace linuxdeploy ::plugin::qt;
9
+ using namespace linuxdeploy ::core::log;
10
+
11
+ namespace bf = boost::filesystem;
12
+
13
+ bool PrintSupportPluginsDeployer::deploy () {
14
+ // calling the default code is optional, but it won't hurt for now
15
+ if (!BasicPluginsDeployer::deploy ())
16
+ return false ;
17
+
18
+ ldLog () << " Deploying printsupport plugins" << std::endl;
19
+
20
+ for (bf::directory_iterator i (qtPluginsPath / " printsupport" ); i != bf::directory_iterator (); ++i) {
21
+ if (!appDir.deployLibrary (*i, appDir.path () / " usr/plugins/printsupport/" ))
22
+ return false ;
23
+ }
24
+ }
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 PrintSupportPluginsDeployer : 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
+ }
You can’t perform that action at this time.
0 commit comments