aboutsummaryrefslogtreecommitdiffstats
path: root/share/qbs/modules/qt/qtfunctions.js
diff options
context:
space:
mode:
Diffstat (limited to 'share/qbs/modules/qt/qtfunctions.js')
-rw-r--r--share/qbs/modules/qt/qtfunctions.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/share/qbs/modules/qt/qtfunctions.js b/share/qbs/modules/qt/qtfunctions.js
new file mode 100644
index 000000000..c6dbf4de5
--- /dev/null
+++ b/share/qbs/modules/qt/qtfunctions.js
@@ -0,0 +1,12 @@
+// helper functions for the Qt modules
+
+function getLibraryName(qtModule, targetOS, debugInfo)
+{
+ var isUnix = (targetOS == 'linux' || targetOS == 'mac')
+ var libName
+ if (isUnix)
+ libName = qtModule
+ else if (targetOS == 'windows')
+ libName = qtModule + (debugInfo ? 'd' : '') + '4.lib'
+ return libName
+}