diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2017-02-23 16:42:37 +0100 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2019-01-23 14:35:02 +0000 |
commit | c2833b1a009bc7c382b30d94109b9b7a25a404a6 (patch) | |
tree | 5b960940919310f8867e503234ca6d4f4295bfbe /tests/auto/blackbox/testdata/module-providers/main.cpp | |
parent | 1bfc30065371a3d28421e2e7af5653e1e78259f3 (diff) | |
download | qbs-c2833b1a009bc7c382b30d94109b9b7a25a404a6.tar.gz |
Introduce module providers
If a dependency is not found, we now search for a matching module
provider that can generate one for us.
We also provide a generic fall-back provider which uses pkg-config to
locate the dependency (but could be extended to incorporate other
methods in the future). This is the most important part of this change
for practical purposes, as it makes hundreds of popular libraries
available for use in qbs projects without users having to write any
boilerplate code.
In a future patch, a module provider could also be used to implement the
functionality of the qtprofilesetup library, relieving users of the need
to create a profile for building Qt applications.
[ChangeLog] The Depends item now falls back to pkg-config to locate
dependencies whose names do not correspond to a qbs module.
Fixes: QBS-1107
Change-Id: Ifd4f05c237cf58cd9fe707c3da648d3dbb33e82b
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'tests/auto/blackbox/testdata/module-providers/main.cpp')
-rw-r--r-- | tests/auto/blackbox/testdata/module-providers/main.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/blackbox/testdata/module-providers/main.cpp b/tests/auto/blackbox/testdata/module-providers/main.cpp new file mode 100644 index 000000000..9cd29b1fe --- /dev/null +++ b/tests/auto/blackbox/testdata/module-providers/main.cpp @@ -0,0 +1,6 @@ +#include <iostream> + +int main() +{ + std::cout << "The letters are " << LETTER1 << " and " << LETTER2 << std::endl; +} |