[QBS] Depends and cpp.includePaths
Ruslan Nigmatullin
EuroElessar at yandex.ru
Fri Feb 24 20:51:46 CET 2012
Modules and Products have different behaviour in context of Depends, i.e Module sets all needed variables like cpp.includePath automatically, but Product doesn't. Should user worry if he uses currently external library or built-in one? Is there any possibility to explicitly set for every dependant Product all needed variables?
For example there are lots of cpp.includePaths in every QtCreator's plugin with hard-coded relative path to core libraries, so it's quietly impossible to build them as standalone package. Also all this qbs files have to be fixed in case of moving plugins' directory somewhere to other place.
May be library products should be available to be implemented in such way:
DynamicLibrary {
name: "mylib"
// Some additional data to be set for dependant products
// Suggest that path to library is already set automatically
ProductModule {
Depends { "name": "cpp" }
cpp.includePath: [ product.path ]
}
}
Any ideas?
More information about the Qbs
mailing list