summaryrefslogtreecommitdiff
path: root/tests/auto/blackbox/testdata-providers/qbspkgconfig-module-provider/libs/libs.qbs
diff options
context:
space:
mode:
authorIvan Komissarov <abbapoh@gmail.com>2023-04-23 15:36:17 +0500
committerIvan Komissarov <ABBAPOH@gmail.com>2023-04-30 19:49:00 +0000
commit53a476fbcd9601f5cab5329c385f6c39a82ff038 (patch)
tree330ce6d83b1f579701ddff9bae6b2a058ec497ab /tests/auto/blackbox/testdata-providers/qbspkgconfig-module-provider/libs/libs.qbs
parente71325baf7f5da4ac06623558170b1d6cf4ce4dc (diff)
downloadqbs-53a476fbcd9601f5cab5329c385f6c39a82ff038.tar.gz
Move providers tests to a dedicated test suite
We have quite a few test cases and will probably have more for new providers and/or Packages. Change-Id: Ia3685b47b6a533020f1696827381e8d48fa8c4d1 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'tests/auto/blackbox/testdata-providers/qbspkgconfig-module-provider/libs/libs.qbs')
-rw-r--r--tests/auto/blackbox/testdata-providers/qbspkgconfig-module-provider/libs/libs.qbs42
1 files changed, 42 insertions, 0 deletions
diff --git a/tests/auto/blackbox/testdata-providers/qbspkgconfig-module-provider/libs/libs.qbs b/tests/auto/blackbox/testdata-providers/qbspkgconfig-module-provider/libs/libs.qbs
new file mode 100644
index 000000000..b473083c6
--- /dev/null
+++ b/tests/auto/blackbox/testdata-providers/qbspkgconfig-module-provider/libs/libs.qbs
@@ -0,0 +1,42 @@
+import qbs.FileInfo
+
+Project {
+ property bool isBundle: false
+
+ DynamicLibrary {
+ Depends { name: "cpp" }
+ Depends { name: "bundle" }
+ Depends { name: "Exporter.pkgconfig" }
+ Exporter.pkgconfig.versionEntry: "1.0"
+ name: "libA"
+ bundle.isBundle: project.isBundle
+ bundle.publicHeaders: ["libA.h"]
+ files: "libA.cpp"
+ cpp.defines: {
+ var result = [];
+ if (project.isBundle)
+ result.push("MYLIB_FRAMEWORK");
+ return result;
+ }
+ qbs.installPrefix: "/usr"
+ install: true
+ installImportLib: true
+ installDir: "lib"
+ Group {
+ files: ["libA.h"]
+ qbs.install: !project.isBundle
+ qbs.installDir: FileInfo.joinPaths("include", product.name)
+ }
+ Group {
+ fileTagsFilter: ["Exporter.pkgconfig.pc"]
+ qbs.install: !project.isBundle
+ qbs.installDir: FileInfo.joinPaths("share", "pkgconfig")
+ }
+ Export {
+ Depends { name: "cpp" }
+ cpp.defines: ["THE_MAGIC_DEFINE"]
+ cpp.includePaths: [FileInfo.joinPaths(exportingProduct.qbs.installPrefix, "include")]
+ cpp.libraryPaths: [FileInfo.joinPaths(exportingProduct.qbs.installPrefix, "lib")]
+ }
+ }
+}