[QBS] Link static libraries with shared library.

Sergei Lopatin magist3r at gmail.com
Wed Sep 19 12:53:42 CEST 2012

Hi there!

I have a library (lib.so) and some plugins depends on this library.
So all plugins build as shared libraries and link with lib.so.

But for now I need to build all plugins as static libraries and put
them in lib.so
There is some trouble. I could write Depends { name: "plugin1", name:
"plugin2", ...} in lib.qbs, but lib.so really not depends on plugins.
Btw make all plugins as dependencies is ugly.

Maybe we can create a property for staticLibrary in Depends:


StaticLibrary {
   Depends {name "lib"; link: true} // put plugin1.a in lib.so

Any ideas?

Regards, Sergei
e-mail: magist3r at gmail.com

More information about the Qbs mailing list