Skip to content

Commit

Permalink
Set STATIC argument for plugins
Browse files Browse the repository at this point in the history
Set the STATIC argument when we have 'static' in the qmake
configuration.

Change-Id: Ia8369bbd5ec4cfce0be51f36c61a811d53522729
Reviewed-by: Alexandru Croitor <[email protected]>
  • Loading branch information
Leander Beernaert committed Oct 10, 2019
1 parent a5060e9 commit ec706c0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions util/cmake/pro2cmake.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ec706c0

Please sign in to comment.