summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mkspecs/features/permissions.prf15
1 files changed, 12 insertions, 3 deletions
diff --git a/mkspecs/features/permissions.prf b/mkspecs/features/permissions.prf
index d80df6d01e..862f0cb58c 100644
--- a/mkspecs/features/permissions.prf
+++ b/mkspecs/features/permissions.prf
@@ -6,14 +6,23 @@ for(plugin, QT_PLUGINS) {
next()
usage_descriptions = $$eval(QT_PLUGIN.$${plugin}.usage_descriptions)
+
+ found_usage_description = false
for(usage_description_key, usage_descriptions) {
usage_description = $$system("/usr/libexec/PlistBuddy" \
- "-c 'print $$usage_description_key' $$QMAKE_INFO_PLIST 2>/dev/null")
- !isEmpty(usage_description): \
+ "-c 'print $$usage_description_key' $$QMAKE_INFO_PLIST 2>/dev/null", \
+ singleLine, exit_code)
+
+ !equals(exit_code, 0): \
+ next()
+
+ !isEmpty(usage_description) {
+ found_usage_description = true
break()
+ }
}
- isEmpty(usage_description): \
+ !$$found_usage_description: \
next()
request_flag = $$eval(QT_PLUGIN.$${plugin}.request_flag)