#4978 Auto-detect Qt libraries location.

This commit is contained in:
Jake Petroules 2015-08-22 15:44:15 -07:00 committed by Jerry (Xinyu Hou)
parent 433cfc232c
commit 485469b5cd
1 changed files with 1 additions and 6 deletions

View File

@ -769,12 +769,7 @@ class InternalCommands:
if err != 0:
raise Exception(bin + " failed with error: " + str(err))
(qMajor, qMinor, qRev) = self.getQmakeVersion()
if qMajor <= 4:
frameworkRootDir = "/Library/Frameworks"
else:
# TODO: auto-detect, qt can now be installed anywhere.
frameworkRootDir = "/Developer/Qt5.2.1/5.2.1/clang_64/lib"
frameworkRootDir = commands.getoutput("qmake -query QT_INSTALL_LIBS")
target = bundleTargetDir + "/Contents/Frameworks"