Re: [Qbs] Code Generator with shared library dependencies

2024-01-15 Thread Christian Kandeler via Qbs

On 1/12/24 11:10, Leon Buckel wrote:

So my question would be: Is there a way to run an executable that is a Product 
similar to how ‘qbs run’ does it so all dependencies are found?


There isn't, but there should be.


In the past I’ve solved this problem by deploying the tool and dlls first and 
running it from the install root.
That still works but doesn’t seem right. Especially since I don’t believe there 
is a way to tell whether the artifacts are already installed before running the 
Command.


If the tool is installable, then it's safe to assume is already has been 
installed when running it, as installation happens in lockstep with 
artifact creation. The user would have to actively sabotage you by 
disabling installation.



Christian
___
Qbs mailing list
Qbs@qt-project.org
https://lists.qt-project.org/listinfo/qbs


Re: [Qbs] Code Generator with shared library dependencies

2024-01-15 Thread Иван Комиссаров
I think, this is the official way to do so.

You are not supposed to run binaries from build dir. 
If Qbs does not ensure that files are installed prior to usage, this should be 
fixed.
 
Ivan

> 12 янв. 2024 г., в 13:10, Leon Buckel  написал(а):
> 
> In the past I’ve solved this problem by deploying the tool and dlls first and 
> running it from the install root.
> That still works but doesn’t seem right.
___
Qbs mailing list
Qbs@qt-project.org
https://lists.qt-project.org/listinfo/qbs