diff options
author | Leander Beernaert <leander.beernaert@qt.io> | 2019-10-10 15:28:12 +0200 |
---|---|---|
committer | Leander Beernaert <leander.beernaert@qt.io> | 2019-10-10 13:37:23 +0000 |
commit | ec706c05e1766e266b3c655c4ecac68d3be0bda7 (patch) | |
tree | 2cbd50deda87d39d41c777ee7719d68e4d37a14d /util | |
parent | a5060e9f995de9d5a8f755a1837f0200e464e4af (diff) |
Set STATIC argument for plugins
Set the STATIC argument when we have 'static' in the qmake
configuration.
Change-Id: Ia8369bbd5ec4cfce0be51f36c61a811d53522729
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'util')
-rwxr-xr-x | util/cmake/pro2cmake.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/util/cmake/pro2cmake.py b/util/cmake/pro2cmake.py index 5b7c02a739..475ff6affa 100755 --- a/util/cmake/pro2cmake.py +++ b/util/cmake/pro2cmake.py @@ -2775,6 +2775,9 @@ def write_plugin(cm_fh, scope, *, indent: int = 0) -> str: if plugin_class_name: extra.append(f"CLASS_NAME {plugin_class_name}") + if 'static' in scope.get('CONFIG'): + extra.append('STATIC') + write_main_part( cm_fh, plugin_name, |