summaryrefslogtreecommitdiffstats
path: root/mkspecs/features
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@theqtcompany.com>2015-05-11 18:43:47 +0200
committerTor Arne Vestbø <tor.arne.vestbo@theqtcompany.com>2015-05-24 11:46:14 +0000
commitdecd18536c1b021bc1f879a32be83372463a7f5b (patch)
tree8034ce8bf3b6b23f7242ce7242b835ebb066b6d9 /mkspecs/features
parent34adfc13722949f02d259251cd75c3ac77792ee7 (diff)
Ensure that CONFIG += plugin_bundle will create Mach-O bundles on OSX/iOS
The makespec inits QMAKE_LFLAGS_PLUGIN to the same as QMAKE_LFLAGS_SHLIB, which will create a dynamic library by passing -dynamiclib. The advantage of creating a proper bundle (MH_BUNDLE) instead of a dynamic library (MH_DYLIB) is that bundles can be unloaded completely by the host application. Change-Id: I03b39b704c09213f40a4cb84f5794bf6b3669fc0 Reviewed-by: Jake Petroules <jake.petroules@petroules.com>
Diffstat (limited to 'mkspecs/features')
-rw-r--r--mkspecs/features/plugin_bundle.prf2
1 files changed, 2 insertions, 0 deletions
diff --git a/mkspecs/features/plugin_bundle.prf b/mkspecs/features/plugin_bundle.prf
new file mode 100644
index 0000000000..f3e7294c90
--- /dev/null
+++ b/mkspecs/features/plugin_bundle.prf
@@ -0,0 +1,2 @@
+# Override mkspec default which creates a shared library
+mac: QMAKE_LFLAGS_PLUGIN = -bundle