-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added waylandcompositor plugin deployer
- Loading branch information
1 parent
52d9a4c
commit 756fa6b
Showing
4 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// system headers | ||
#include <filesystem> | ||
|
||
// library headers | ||
#include <linuxdeploy/core/log.h> | ||
|
||
// local headers | ||
#include "WaylandcompositorPluginsDeployer.h" | ||
|
||
using namespace linuxdeploy::plugin::qt; | ||
using namespace linuxdeploy::core::log; | ||
|
||
namespace fs = std::filesystem; | ||
|
||
bool WaylandcompositorPluginsDeployer::deploy() { | ||
// calling the default code is optional, but it won't hurt for now | ||
if (!BasicPluginsDeployer::deploy()) | ||
return false; | ||
|
||
ldLog() << "Deploying waylandcompositor plugin" << std::endl; | ||
|
||
for (fs::directory_iterator i(qtPluginsPath / "wayland-decoration-client"); i != fs::directory_iterator(); ++i) { | ||
if (!appDir.deployLibrary(*i, appDir.path() / "usr/plugins/wayland-decoration-client/")) | ||
return false; | ||
} | ||
|
||
for (fs::directory_iterator i(qtPluginsPath / "wayland-graphics-integration-client"); i != fs::directory_iterator(); ++i) { | ||
if (!appDir.deployLibrary(*i, appDir.path() / "usr/plugins/wayland-graphics-integration-client/")) | ||
return false; | ||
} | ||
|
||
for (fs::directory_iterator i(qtPluginsPath / "wayland-shell-integration"); i != fs::directory_iterator(); ++i) { | ||
if (!appDir.deployLibrary(*i, appDir.path() / "usr/plugins/wayland-shell-integration/")) | ||
return false; | ||
} | ||
|
||
return true; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#pragma once | ||
|
||
#include "BasicPluginsDeployer.h" | ||
|
||
namespace linuxdeploy { | ||
namespace plugin { | ||
namespace qt { | ||
class WaylandcompositorPluginsDeployer : public BasicPluginsDeployer { | ||
public: | ||
// we can just use the base class's constructor | ||
using BasicPluginsDeployer::BasicPluginsDeployer; | ||
|
||
bool deploy() override; | ||
}; | ||
} | ||
} | ||
} |