diff options
author | Jake Petroules <jake.petroules@qt.io> | 2016-11-29 00:18:16 -0800 |
---|---|---|
committer | Jake Petroules <jake.petroules@qt.io> | 2016-12-16 20:59:01 +0000 |
commit | 383b073e6c9284bea18f2bf6af0d7240c69c12ff (patch) | |
tree | 561404a7bc95e98313ab411836bfbe2f1238f183 /src/plugins/plugins.pri | |
parent | 7ebdd6ef8002e949469ed4dad4be8414dd0b2aab (diff) |
Allow scanner plugins to be built statically
Scanner plugins will now also be built statically when Qbs is built
against a static Qt, enabling single-binary distributions.
Change-Id: Id2587b79815bcc6d9ec569f5b168445fe7e843d3
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/plugins.pri')
-rw-r--r-- | src/plugins/plugins.pri | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/plugins/plugins.pri b/src/plugins/plugins.pri index ca07aa083..050d1ceb5 100644 --- a/src/plugins/plugins.pri +++ b/src/plugins/plugins.pri @@ -7,11 +7,16 @@ include(../install_prefix.pri) destdirPrefix = $$shadowed($$PWD)/../../$${QBS_LIBRARY_DIRNAME} } DESTDIR = $${destdirPrefix}/qbs/plugins +CONFIG(static, static|shared) { + DEFINES += QBS_STATIC_LIB +} else { + DEFINES += QBS_LIBRARY +} TEMPLATE = lib CONFIG += depend_includepath -CONFIG += shared CONFIG += c++11 +CONFIG += create_prl unix: CONFIG += plugin !isEmpty(QBS_PLUGINS_INSTALL_DIR): \ |