File tree Expand file tree Collapse file tree 4 files changed +51
-0
lines changed Expand file tree Collapse file tree 4 files changed +51
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ set(CLASSES
11
11
SvgPluginsDeployer
12
12
SqlPluginsDeployer
13
13
PositioningPluginsDeployer
14
+ LocationPluginsDeployer
14
15
MultimediaPluginsDeployer
15
16
WebEnginePluginsDeployer
16
17
QmlPluginsDeployer
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 " LocationPluginsDeployer.h"
9
+
10
+ using namespace linuxdeploy ::plugin::qt;
11
+ using namespace linuxdeploy ::core::log;
12
+
13
+ namespace fs = std::filesystem;
14
+
15
+ bool LocationPluginsDeployer::deploy () {
16
+ // calling the default code is optional, but it won't hurt for now
17
+ if (!BasicPluginsDeployer::deploy ())
18
+ return false ;
19
+
20
+ ldLog () << " Deploying Location plugins" << std::endl;
21
+
22
+ for (fs::directory_iterator i (qtPluginsPath / " geoservices" ); i != fs::directory_iterator (); ++i) {
23
+ if (!appDir.deployLibrary (*i, appDir.path () / " usr/plugins/geoservices/" ))
24
+ return false ;
25
+ }
26
+
27
+ return true ;
28
+ }
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 LocationPluginsDeployer : 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 4
4
#include " PlatformPluginsDeployer.h"
5
5
#include " BearerPluginsDeployer.h"
6
6
#include " GamepadPluginsDeployer.h"
7
+ #include " LocationPluginsDeployer.h"
7
8
#include " MultimediaPluginsDeployer.h"
8
9
#include " PrintSupportPluginsDeployer.h"
9
10
#include " PositioningPluginsDeployer.h"
@@ -61,6 +62,10 @@ std::vector<std::shared_ptr<PluginsDeployer>> PluginsDeployerFactory::getDeploye
61
62
return {getInstance<SqlPluginsDeployer>(moduleName)};
62
63
}
63
64
65
+ if (moduleName == " location" ) {
66
+ return {getInstance<LocationPluginsDeployer>(moduleName)};
67
+ }
68
+
64
69
if (moduleName == " positioning" ) {
65
70
return {getInstance<PositioningPluginsDeployer>(moduleName)};
66
71
}
You can’t perform that action at this time.
0 commit comments