Debian Codegraph @

packaging/deps/patches/macosx/macdylibbundler/DylibBundler-patch.diff

raw
1 diff --git a/src/DylibBundler.cpp b/src/DylibBundler.cpp
2 index 8e4926c..71fb795 100644
3 --- a/src/DylibBundler.cpp
4 +++ b/src/DylibBundler.cpp
5 @@ -92,7 +92,9 @@ void collectDependencies(std::string filename)
6 {
7 std::cout << "."; fflush(stdout);
8 if(lines[n][0] != '\t') continue; // only lines beginning with a tab interest us
9 - if( lines[n].find(".framework") != std::string::npos ) continue; //Ignore frameworks, we can not handle them
10 + if( lines[n].find(".framework") != std::string::npos )
11 + if( lines[n].find(".dylib") == std::string::npos )
12 + continue; //Ignore frameworks, we can not handle them
13
14 addDependency( // trim useless info, keep only library name
15 lines[n].substr(1, lines[n].rfind(" (") - 1)
16 @@ -118,7 +120,9 @@ void collectSubDependencies()
17 for(int n=0; n<line_amount; n++)
18 {
19 if(lines[n][0] != '\t') continue; // only lines beginning with a tab interest us
20 - if( lines[n].find(".framework") != std::string::npos ) continue; //Ignore frameworks, we can not handle them
21 + if( lines[n].find(".framework") != std::string::npos )
22 + if( lines[n].find(".dylib") == std::string::npos )
23 + continue; //Ignore frameworks, we can not handle them
24
25 addDependency( // trim useless info, keep only library name
26 lines[n].substr(1, lines[n].rfind(" (") - 1)