summaryrefslogtreecommitdiffstats
path: root/build/qmake/mkspecs/features/functions.prf
diff options
context:
space:
mode:
Diffstat (limited to 'build/qmake/mkspecs/features/functions.prf')
-rw-r--r--build/qmake/mkspecs/features/functions.prf9
1 files changed, 9 insertions, 0 deletions
diff --git a/build/qmake/mkspecs/features/functions.prf b/build/qmake/mkspecs/features/functions.prf
new file mode 100644
index 000000000..8d0df1a4e
--- /dev/null
+++ b/build/qmake/mkspecs/features/functions.prf
@@ -0,0 +1,9 @@
+# Map to the correct target type for gyp
+defineReplace(toGypTargetType) {
+ equals(TEMPLATE, "app"):return("executable")
+ equals(TEMPLATE, "lib") {
+ CONFIG(static): return("static_library")
+ return("shared_library")
+ }
+ return("none")
+}