Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --exclude-library option to standalone version #178

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ int main(const int argc, const char *const *const argv) {
args::HelpFlag help(parser, "help", "Display this help text", {'h', "help"});

args::ValueFlag<fs::path> appDirPath(parser, "appdir path", "Path to an existing AppDir", {"appdir"});
args::ValueFlagList<std::string> excludeLibraryPatterns(parser, "pattern",
"Shared library to exclude from deployment (glob pattern)",
{"exclude-library"});
args::ValueFlagList<std::string> extraModules(parser, "module",
"Extra Qt module to deploy (specified by name, filename or path)",
{'m', "extra-module"});
Expand Down Expand Up @@ -135,6 +138,9 @@ int main(const int argc, const char *const *const argv) {
ldLog() << std::endl << "Using Qt version: " << qtVersion << " (" << qtMajorVersion << ")" << std::endl;

appdir::AppDir appDir(appDirPath.Get());
if (const auto patterns = excludeLibraryPatterns.Get(); !patterns.empty()) {
appDir.setExcludeLibraryPatterns(patterns);
}

// allow disabling copyright files deployment via environment variable
if (getenv("DISABLE_COPYRIGHT_FILES_DEPLOYMENT") != nullptr) {
Expand Down
Loading