Discussion:
[Interest] Deployement/Installation with QBS
Xavier Bigand
2018-10-25 09:01:00 UTC
Permalink
Hello,


I have a DynamicLibrary project and I want that QtCreator copy the dll in
an other directory than the shadow build one before running the custom run
command I set.

So in my qbs file I put:

Group {

files: "*.dll"

qbs.install: true

qbs.installRoot: project.path

qbs.installDir: "tests/Direct3D Tutorials/C++/Debug"

}


In the DynamicLibrary block and added a "Qbs Install" deployement
step, but it doesn't works. There is few log so I can't figure out
what is wrong.

If possible I am looking for a solution that doesn't request a user
configuration.
--
Xavier
Christian Kandeler
2018-10-25 09:26:27 UTC
Permalink
On Thu, 25 Oct 2018 11:01:00 +0200
Post by Xavier Bigand
I have a DynamicLibrary project and I want that QtCreator copy the dll in
an other directory than the shadow build one before running the custom run
command I set.
Group {
files: "*.dll"
qbs.install: true
qbs.installRoot: project.path
qbs.installRoot is a global property of the build, typically set from the command line. Setting it inside a group will not do what you want. It is not recommended to set this property inside project files at all, but if you insist, it must be on the product level and it must be the same value in all products.
Post by Xavier Bigand
In the DynamicLibrary block and added a "Qbs Install" deployement
step, but it doesn't works. There is few log so I can't figure out
what is wrong.
Note that you do not need the install step, as the build step does deployment by default


Christian
Xavier Bigand
2018-10-25 17:31:38 UTC
Permalink
Post by Christian Kandeler
On Thu, 25 Oct 2018 11:01:00 +0200
Post by Xavier Bigand
I have a DynamicLibrary project and I want that QtCreator copy the dll in
an other directory than the shadow build one before running the custom
run
Post by Xavier Bigand
command I set.
Group {
files: "*.dll"
qbs.install: true
qbs.installRoot: project.path
qbs.installRoot is a global property of the build, typically set from the
command line. Setting it inside a group will not do what you want. It is
not recommended to set this property inside project files at all, but if
you insist, it must be on the product level and it must be the same value
in all products.
In my case it is exactly what I want to do, the dll should go in an other
directory that is versioned, so the path is deterministic.
It seems to work with a binary product but not with a DynamicLibrary. And
the project.path seems to be empty is there an other property to get a full
path to the qbs location?

Putting the qbs.installRoot in the Project element doesn't work.
Post by Christian Kandeler
Post by Xavier Bigand
In the DynamicLibrary block and added a "Qbs Install" deployement
step, but it doesn't works. There is few log so I can't figure out
what is wrong.
Note that you do not need the install step, as the build step does deployment by default
Nice
Post by Christian Kandeler
Christian
_______________________________________________
Interest mailing list
http://lists.qt-project.org/mailman/listinfo/interest
Thank you for help
--
Xavier
Loading...