Re: [Qbs] Improving qbs resolve performance

2019-08-30 Thread Jochen Ulrich
ecuted, 0 re-used from current run, 5355 re-used from earlier run. Property checking took 409ms. I would have expected that "Running Probes" is way faster in the re-resolve case. Best Jochen Am 30.08.19, 02:07 schrieb "Christian Gagneraud" : On Fri, 30 Aug 2019 at

Re: [Qbs] Improving qbs resolve performance

2019-08-29 Thread Jochen Ulrich
I want to follow up on this topic: I created scripts to generate a Qbs project of a specified size. Then, I created a few projects and measured the resolve time. Bottom line: Exporting dependencies significantly slows down the resolving. It is better to explicitly depend on the needed modules

Re: [Qbs] avoid RPATH pointing to Qt installation folder

2019-10-08 Thread Jochen Ulrich
irectory structure first. Also note that there are certain security issues with RPATHs. See for example https://security.stackexchange.com/a/165762/125269 Kind regards Jochen Ulrich ___ Qbs mailing list Qbs@qt-project.org https://lists.qt-project.org/listinfo/qbs

Re: [Qbs] Interfacing Qbs to Conan

2020-02-06 Thread Jochen Ulrich
Hi Richard! > I hope this gives you some ideas how to move forward Thanks Richard! We really appreciate your help! > There might be different solutions to this, but what I think would be simple > and straight forward Basically, we are doing it the way you described. However, we decided not

Re: [Qbs] Depending on a library that is both shared and static

2020-02-20 Thread Jochen Ulrich
Hi Uwe! I would probably create two products: one for the static library and one for the dynamic library and I would make the dynamic library depend on the static library: StaticLibrary { name: "mylibrary-static" targetName: "mylibrary" // ... } DynamicLibrary { name:

Re: [Qbs] Interfacing Qbs to Conan

2020-02-19 Thread Jochen Ulrich
> It would be great if Qbs 1.16 could offer a complete Conan story. We have > roughly a month until feature freeze. The ticket(s) I will create are not a requirement for the Conan ModuleProvider we implemented. So we should not have a problem with this deadline. The things from the ticket(s)

Re: [Qbs] Error after running tests

2020-01-14 Thread Jochen Ulrich
the "check" product is not an application but the AutotestRunner. The AutotestRunner runs the tests during the build step. That's a bit confusing... So instead of $ qbs run -p check you should do $ qbs build -p check Kind regards Jochen Ulrich Am 14.01.20, 22:18 schrieb "Qbs im Auftr

Re: [Qbs] building android aab package help

2020-04-15 Thread Jochen Ulrich
Hi Raphael! What doesn’t work as expected? Is there any error message or what output is missing? > As a fall back solution I can create a new AndroidAab Product that will > depend on the android application and implement all rules using > inputsFromDependencies property. And this works? You

[Qbs] Undocumented SubProject.condition property

2020-04-16 Thread Jochen Ulrich
Hi! We found that there is an undocumented `condition` property on SubProject items. It seems to have the same effect as setting the `condition` property inside the Properties block. However, I find it more readable to have the condition on the SubProject instead of inside the Properties block.

Re: [Qbs] Building a product's files into another product

2020-07-30 Thread Jochen Ulrich
Hi Alberto! Did you try using a Module instead of a Product? https://doc.qt.io/qbs/qml-qbslanguageitems-module.html https://doc.qt.io/qbs/custom-modules.html Module { Depends { name: "cpp" } Group { name: "a" files: [ "one.cpp" ] } } Or export from a Product (which

Re: [Qbs] How to get the full dependency name in a ModuleProvider?

2020-07-31 Thread Jochen Ulrich
or on that Package mechanism. Best Jochen Am 31.07.20, 13:27 schrieb "Alberto Mardegan" : Il 31.07.2020 11:28, Jochen Ulrich ha scritto: > We also stumbled over this and a few more shortcomings of ModuleProviders when writing a ModuleProvider to integrate the Conan package manager with Q

Re: [Qbs] QBS script parsing speed

2020-06-30 Thread Jochen Ulrich
My analysis back then was: > Well [the time] goes into "Handling Products". So it is > ModuleLoader::handleProduct(). > And there, it could be the ModuleMerger. But speculation is dangerous when > discussing about performance. See

Re: [Qbs] QBS script parsing speed

2020-06-30 Thread Jochen Ulrich
<<<<<<<<<<<<<<<<<<< Of course it is ugly because you have to maintain the transitive dependencies manually. However, if you have cases where a dependency is needed in many places, you can create custom products that include it. For example: >>>>

Re: [Qbs] QBS script parsing speed

2020-06-30 Thread Jochen Ulrich
Nice! It brings a ~44% speed improvement in the problematic case according to your numbers: > Resolving withLeafExports/9-2-implicit real0m43.592s real0m24.494s Thanks, Richard! So for "medium" projects in terms of depth of the dependency tree, it's sensible to use transitive

Re: [Qbs] Conditionally adding a file tag

2020-07-29 Thread Jochen Ulrich
ject.relativePluginDir qbs.installSourceBase: "../" files: [ "file1.qml", "file2.qml", "file3..png", "file4.gif", ] } Best Jochen Ulrich ___ Qbs mailing list Qbs@qt-project.org https://lists.qt-project.org/listinfo/qbs

Re: [Qbs] How to get the full dependency name in a ModuleProvider?

2020-07-31 Thread Jochen Ulrich
Hi! > it does not look like there is any way to get the full dependency name We also stumbled over this and a few more shortcomings of ModuleProviders when writing a ModuleProvider to integrate the Conan package manager with Qbs. See this thread:

Re: [Qbs] (no subject)

2020-07-31 Thread Jochen Ulrich
Hi! > Is qbs supposed to work with Qt WebAssembly (I cannot get it to work)? No, at the moment Qbs does not provide support for WebAssembly. However, since you can do anything with Qbs, it should be possible to get it to work as well. __ In the end, it boils down to writing a Module that

Re: [Qbs] How to use texttemplate module?

2020-09-10 Thread Jochen Ulrich
> wouldn't it be a good idea to add > > additionalProductTypes: [product.texttemplate.outputTag] > > to the texttemplate module? I think that's wrong. Because if the output of the text template should be processed further (for example, it creates a .cpp file which should be compiled into

Re: [Qbs] dependency tracking

2020-09-14 Thread Jochen Ulrich
But it will only scan for dependent header files if the product using the code generator depends on the `cpp` module and if the `cpp.includePaths` are set up correctly, right? Is this the case? Best Jochen ___ Qbs mailing list Qbs@qt-project.org

Re: [Qbs] How to use texttemplate module?

2020-09-09 Thread Jochen Ulrich
Hi Alberto > But if I modify that file and change the Product type from "text" to > "application", then the rule is no longer run. Yeah, this is how the rules in Qbs work: they are only executed if there is a Product or another Rule which "requests" them to be run. Meaning: There must be a