forked from qt-creator/qt-creator
Squish: Base getPaths() on new path functions
Change-Id: I54cd03bc1d24b715df15de37291f776f9867416f Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -178,29 +178,16 @@ class Qt5Path:
|
||||
|
||||
@staticmethod
|
||||
def getPaths(pathSpec):
|
||||
qt5targets = [Targets.DESKTOP_521_DEFAULT, Targets.DESKTOP_531_DEFAULT]
|
||||
if platform.system() != 'Darwin':
|
||||
qt5targets.append(Targets.DESKTOP_541_GCC)
|
||||
if pathSpec == Qt5Path.DOCS:
|
||||
path52 = "/doc"
|
||||
path53 = "/Docs/Qt-5.3"
|
||||
path54 = "/Docs/Qt-5.4"
|
||||
return map(lambda target: Qt5Path.docsPath(target), qt5targets)
|
||||
elif pathSpec == Qt5Path.EXAMPLES:
|
||||
path52 = "/examples"
|
||||
path53 = "/Examples/Qt-5.3"
|
||||
path54 = "/Examples/Qt-5.4"
|
||||
return map(lambda target: Qt5Path.examplesPath(target), qt5targets)
|
||||
else:
|
||||
test.fatal("Unknown pathSpec given: %s" % str(pathSpec))
|
||||
return []
|
||||
if platform.system() in ('Microsoft', 'Windows'):
|
||||
return ["C:/Qt/Qt5.2.1/5.2.1/msvc2010" + path52,
|
||||
"C:/Qt/Qt5.3.1" + path53, "C:/Qt/Qt5.4.1" + path54]
|
||||
elif platform.system() == 'Linux':
|
||||
if __is64BitOS__():
|
||||
return map(os.path.expanduser, ["~/Qt5.2.1/5.2.1/gcc_64" + path52,
|
||||
"~/Qt5.3.1" + path53, "~/Qt5.4.1" + path54])
|
||||
return map(os.path.expanduser, ["~/Qt5.2.1/5.2.1/gcc" + path52,
|
||||
"~/Qt5.3.1" + path53, "~/Qt5.4.1" + path54])
|
||||
else:
|
||||
return map(os.path.expanduser, ["~/Qt5.2.1/5.2.1/clang_64" + path52,
|
||||
"~/Qt5.3.1" + path53])
|
||||
|
||||
@staticmethod
|
||||
def __preCheckAndExtractQtVersionStr__(target):
|
||||
|
||||
Reference in New Issue
Block a user