diff options
author | Ivan Komissarov <abbapoh@gmail.com> | 2021-10-10 16:08:29 +0300 |
---|---|---|
committer | Ivan Komissarov <ABBAPOH@gmail.com> | 2021-10-25 12:26:51 +0000 |
commit | 0b19a266963a91b1eaa17ed5c835b662a8d29135 (patch) | |
tree | 5ee40ad071b4eecde9f1207a270048435b435f2f /share | |
parent | bf8d0f9710d507b047e73cb8da60b1c25ffee1ec (diff) | |
download | qbs-0b19a266963a91b1eaa17ed5c835b662a8d29135.tar.gz |
pkgconfig: Implement early dependency merging
Due to performance reasons, we have to do the dependency resolution
on the qbspkg-config side, like original pkg-config does.
Otherwise, it is not possible to use GRPC module as it depends on a
bunch of ABSEIL libraries which has a lot of cross-dependencies and
QBS cannot handle them (resolving takes > 10 minutes for a simple
dependency on GRPC).
Change-Id: Ice25f6cea09fe731a511d91891936ba746e5b697
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'share')
-rw-r--r-- | share/qbs/module-providers/qbspkgconfig.qbs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/share/qbs/module-providers/qbspkgconfig.qbs b/share/qbs/module-providers/qbspkgconfig.qbs index 40f0526ed..5309610e1 100644 --- a/share/qbs/module-providers/qbspkgconfig.qbs +++ b/share/qbs/module-providers/qbspkgconfig.qbs @@ -54,6 +54,7 @@ ModuleProvider { return ""; return qbs.sysroot; } + property bool mergeDependencies: true relativeSearchPaths: { @@ -143,6 +144,8 @@ ModuleProvider { var options = {}; options.searchPaths = libDirs; options.sysroot = sysroot; + options.staticMode = staticMode; + options.mergeDependencies = mergeDependencies; if (options.sysroot && !options.searchPaths) { options.searchPaths = [ sysroot + "/usr/lib/pkgconfig", |