summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2019-05-17 17:41:59 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2019-05-20 09:15:31 +0000
commitc454e622a1d50f4e6a879390241034b910e5ee90 (patch)
tree08973f3f22694c09d2d35669dca6ec1aa108d447 /util
parente0a6e9f3aa66da3018b8362d949e288a2c801daa (diff)
Don't exclude QtCore from dependencies when generating modules
and plugins. src/network/network.pro for instance depends on core-private, but because we ignore adding QtCore as a public dependency, the exported Config file for Network doesn't depend on QtCore anymore, so if a user only links against Network, they won't automatically link against Core. Change-Id: I4a60ffae7e071927360b8ccf6b1b7479ab391060 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Diffstat (limited to 'util')
-rwxr-xr-xutil/cmake/pro2cmake.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/cmake/pro2cmake.py b/util/cmake/pro2cmake.py
index 71053d288b..ddfa7d05c3 100755
--- a/util/cmake/pro2cmake.py
+++ b/util/cmake/pro2cmake.py
@@ -1482,7 +1482,7 @@ def write_module(cm_fh: typing.IO[str], scope: Scope, *,
write_main_part(cm_fh, module_name[2:], 'Module', 'add_qt_module', scope,
extra_lines=extra, indent=indent,
- known_libraries={'Qt::Core', }, extra_keys=[])
+ known_libraries={}, extra_keys=[])
if 'qt_tracepoints' in scope.get('CONFIG'):
tracepoints = scope.get_files('TRACEPOINT_PROVIDER')
@@ -1596,7 +1596,7 @@ def write_plugin(cm_fh, scope, *, indent: int = 0):
assert plugin_name
write_main_part(cm_fh, plugin_name, 'Plugin', 'add_qt_plugin', scope,
- indent=indent, known_libraries={'QtCore', }, extra_keys=[])
+ indent=indent, known_libraries={}, extra_keys=[])
def handle_app_or_lib(scope: Scope, cm_fh: typing.IO[str], *,