aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlberto Mardegan <mardy@users.sourceforge.net>2019-11-11 21:57:38 +0300
committerAlberto Mardegan <mardy@users.sourceforge.net>2019-11-12 08:40:55 +0000
commitd40aa9ac595ad85d667f7a303c5cca097665eb17 (patch)
tree6e34f6e12c1997c9a5563bc8e08f8d6b7d2408fa
parent7a0be7e8cd8df5ee971a3594922838e8a2f1d3a2 (diff)
Set right dependencies for static qmake build
When building statically, it's important that plugins are built before the application which is going to use them. Change-Id: I0e32650b96a2e18c82a884501e7b478f7febc528 Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
-rw-r--r--qbs.pro5
1 files changed, 4 insertions, 1 deletions
diff --git a/qbs.pro b/qbs.pro
index 3a716c7d3..b8faa2ab0 100644
--- a/qbs.pro
+++ b/qbs.pro
@@ -35,7 +35,10 @@ src_app.subdir = src/app
src_app.depends = corelib
src_libexec.subdir = src/libexec
src_plugins.subdir = src/plugins
-CONFIG(shared, static|shared): src_plugins.depends = corelib
+CONFIG(shared, static|shared) {
+ src_plugins.depends = corelib
+ src_app.depends += src_plugins
+}
tests.depends = static_res
static_res.file = static-res.pro
static_res.depends = src_app src_libexec src_plugins static.pro