Squish: Update __getSupportedPlatforms__()

Change-Id: Ia9840c74528c8fb435099ccdffb2f6f1b06b7e77
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Robert Loehning
2020-10-06 15:40:35 +02:00
parent 05254bef15
commit 38efee1598

View File

@@ -507,7 +507,7 @@ def __getSupportedPlatforms__(text, templateName, getAsStrings=False):
if templateName.startswith("Qt Quick Application - "): if templateName.startswith("Qt Quick Application - "):
result = set([Targets.DESKTOP_5_10_1_DEFAULT, Targets.DESKTOP_5_14_1_DEFAULT]) result = set([Targets.DESKTOP_5_10_1_DEFAULT, Targets.DESKTOP_5_14_1_DEFAULT])
elif 'Supported Platforms' in text: elif 'Supported Platforms' in text:
supports = text[text.find('Supported Platforms'):].split(":")[1].strip().split(" ") supports = text[text.find('Supported Platforms'):].split(":")[1].strip().split("\n")
result = set() result = set()
if 'Desktop' in supports: if 'Desktop' in supports:
if (version == None or version < "5.0") and not templateName.startswith("Qt Quick 2"): if (version == None or version < "5.0") and not templateName.startswith("Qt Quick 2"):