[Qbs] Relative paths in custom modules

Christian Kandeler Christian.Kandeler at qt.io
Thu Oct 11 15:44:07 CEST 2018

On Thu, 11 Oct 2018 15:35:30 +0200
Christian Gudrian <christian.gudrian at aucos.de> wrote:

> I am currently trying to wrap a 3rd party libray in a Qbs module 
> following the example at 
> https://doc.qt.io/qbs/howtos.html#how-do-i-create-a-module-for-a-third-party-library.
> I would like to use relative paths to the include and lib directories 
> rather than absolute ones to make distribution easier. Is there a way to 
> get the path the Qbs module file resides in?

Yes, in every qbs file the file-scope variables "filePath" and "path" are available to get the path to the current file and its parent directory, respectively.


More information about the Qbs mailing list