git-svn-id: svn://db.shs.com.ru/libs@782 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -4,15 +4,17 @@
|
|||||||
|
|
||||||
using namespace PICoutManipulators;
|
using namespace PICoutManipulators;
|
||||||
|
|
||||||
PIString cmd_copy;
|
PIString cmd_copy, cmd_copydir;
|
||||||
PIString qplatforms;
|
PIString qplatforms;
|
||||||
|
|
||||||
void setCommands() {
|
void setCommands() {
|
||||||
#ifdef WINDOWS
|
#ifdef WINDOWS
|
||||||
cmd_copy = "copy /y ";
|
cmd_copy = "copy /y ";
|
||||||
|
cmd_copydir = "copy /y ";
|
||||||
qplatforms = "windows";
|
qplatforms = "windows";
|
||||||
#else
|
#else
|
||||||
cmd_copy = "cp -f ";
|
cmd_copy = "cp -f ";
|
||||||
|
cmd_copydir = "cp -rf ";
|
||||||
# ifdef MAC_OS
|
# ifdef MAC_OS
|
||||||
qplatforms = "cocoa";
|
qplatforms = "cocoa";
|
||||||
# else
|
# else
|
||||||
@@ -143,6 +145,8 @@ void procLdd(PIString file, bool ext_lib = false, int cur_depth = 0) {
|
|||||||
if (!otool.isEmpty()) {
|
if (!otool.isEmpty()) {
|
||||||
if (l.contains(".framework/")) {
|
if (l.contains(".framework/")) {
|
||||||
frameworks << l;
|
frameworks << l;
|
||||||
|
if (l.contains("QtCore") || l.contains("Qt5Core"))
|
||||||
|
need_qt = true;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -339,6 +343,14 @@ int main(int argc, char * argv[]) {
|
|||||||
if (!fake)
|
if (!fake)
|
||||||
system(cmd_copy + "\"" + l + "\" \"" + out_dir + "\"");
|
system(cmd_copy + "\"" + l + "\" \"" + out_dir + "\"");
|
||||||
}
|
}
|
||||||
|
PIVector<PIString> fwdirs = frameworks.toVector();
|
||||||
|
piForeachC (PIString & f, fwdirs) {
|
||||||
|
PIString fd = findLib(f);
|
||||||
|
piCout << "copy framework" << f;
|
||||||
|
if (!fake)
|
||||||
|
system(cmd_copydir + "\"" + fd + "\" \"" + out_dir + "\"");
|
||||||
|
}
|
||||||
|
|
||||||
piCout << "copied" << clibs.size_s() << "files";
|
piCout << "copied" << clibs.size_s() << "files";
|
||||||
if (!miss_libs.isEmpty()) {
|
if (!miss_libs.isEmpty()) {
|
||||||
piCout << "Missing libraries:\n - " << PIStringList(miss_libs.toVector()).join("\n - ");
|
piCout << "Missing libraries:\n - " << PIStringList(miss_libs.toVector()).join("\n - ");
|
||||||
|
|||||||
Reference in New Issue
Block a user