- for framework,lib in self.determineDependancies(executable):
- if framework not in self.needFrameworks:
- self.needFrameworks.append(framework)
- self.installFramework(framework)
- self.changeDylPath(executable)
+ self.resolveDependancies(executable)
+
+ def findFrameworkPath(self):
+ qmakeProcess = Popen('qmake -query QT_INSTALL_LIBS', shell=True, stdout=PIPE, stderr=PIPE)
+ self.sourceFrameworkPath = qmakeProcess.stdout.read().strip()
+ qmakeProcess.stdout.close()
+ qmakeProcess.wait()
+
+ def resolveDependancies(self, obj):
+ # obj must be either an application binary or a framework library
+ for framework, lib in self.determineDependancies(obj):
+ self.installFramework(framework)
+ self.changeDylPath(obj, lib)