Compare commits
1 Commits
cae264a77b
...
9b8a1583c2
| Author | SHA1 | Date | |
|---|---|---|---|
| 9b8a1583c2 |
@@ -90,6 +90,7 @@ void usage() {
|
||||
piCout << "--dpkg-workdir <d> " << Green << "- dpkg \"admindir\" path, default \"\"";
|
||||
piCout << "--name-tool <path> " << Green << "- \"install_name_tool\" path, default \"install_name_tool\"";
|
||||
piCout << "--strip <path> " << Green << "- \"strip\" path, default \"strip\"";
|
||||
piCout << "--no-strip " << Green << "- disable strip (save debug info)";
|
||||
piCout << "--rpath " << Green << "- set rpath for copied files using \"patchelf\"";
|
||||
piCout << "-d <depth> " << Green << "- maximum dependepcies depth, default 8";
|
||||
piCout << "";
|
||||
@@ -597,6 +598,7 @@ int main(int argc, char * argv[]) {
|
||||
cli.addArgument("name-tool", PIChar('\0'), true);
|
||||
cli.addArgument("rpath", PIChar('\0'));
|
||||
cli.addArgument("strip", PIChar('\0'), true);
|
||||
cli.addArgument("no-strip", PIChar('\0'), false);
|
||||
cli.addArgument("Dpkg", true);
|
||||
cli.addArgument("dpkg-workdir", PIChar('\0'), true);
|
||||
cli.addArgument("depth", true);
|
||||
@@ -625,6 +627,7 @@ int main(int argc, char * argv[]) {
|
||||
rpath = cli.hasArgument("rpath");
|
||||
if (nametool.isEmpty()) nametool = "install_name_tool";
|
||||
if (strip.isEmpty()) strip = "strip";
|
||||
if (cli.hasArgument("no-strip")) strip.clear();
|
||||
dpkg = cli.argumentValue("Dpkg");
|
||||
dpkg_workdir = cli.argumentValue("dpkg-workdir");
|
||||
#ifdef WINDOWS
|
||||
@@ -795,6 +798,7 @@ int main(int argc, char * argv[]) {
|
||||
piCout << "copy" << l;
|
||||
if (!fake) {
|
||||
system((cmd_copy + "\"" + l + "\" \"" + out_dir + "\"" + cmd_suffix).data());
|
||||
if (strip.isNotEmpty()) {
|
||||
if (!otool.isEmpty()) // Apple
|
||||
system((strip + " -S \"" + out_dir + fi.name() + "\"").data());
|
||||
else
|
||||
@@ -802,6 +806,7 @@ int main(int argc, char * argv[]) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
PIVector<PIString> fwdirs = frameworks.toVector();
|
||||
for (const auto & f: fwdirs) {
|
||||
PIString fd = findLib(f);
|
||||
|
||||
Reference in New Issue
Block a user