[Qbs] Failed 'PackageBuild' product on QBS 1.22
Карелин Павел
hkarel at yandex.ru
Tue May 3 21:44:33 CEST 2022
Hello, developers.
I have a small product "PackageBuild" in my projects, I use it to
generate the package_build_info file. The product code is shown below:
Product {
name: "PackageBuild"
Depends { name: "cpp" }
Depends { name: "lib.sodium" }
lib.sodium.version: project.sodiumVersion
lib.sodium.useSystem: project.useSystemSodium
Probe {
id: productProbe
property string projectBuildDirectory: project.buildDirectory
//property string cppstdlibPath: cppstdlib.path
property var libs: [
lib.sodium,
]
configure: {
var file = new TextFile(projectBuildDirectory +
"/package_build_info", TextFile.WriteOnly);
try {
for (var n in libs) {
var lib = libs[n];
for (var i in lib.dynamicLibraries) {
file.writeLine(lib.libraryPath +
("/lib{0}.so*").format(lib.dynamicLibraries[i]));
}
}
//if (!cppstdlibPath.startsWith("/usr/lib", 0)) {
// file.writeLine(cppstdlibPath + "/" +
"libstdc++.so*");
// file.writeLine(cppstdlibPath + "/" + "libgcc_s.so*");
//}
}
finally {
file.close();
}
}
}
}
When I open the project in QtC 7 the file package_build_info is
successfully created, but after the build process starts the file
package_build_info is deleted. How to make sure that file
package_build_info is not deleted?
--
BR, Pavel Karelin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qbs/attachments/20220503/8b39c134/attachment.htm>
More information about the Qbs
mailing list