[Qbs] Concatenating include paths with Qbs
Timur Kristóf
timur.kristof at gmail.com
Wed May 24 09:10:24 CEST 2017
Hi,
I have a Qbs project that contains a static library and an executable
that depends on the static library. The static library has some
features which can be enabled or disabled through a couple of bool
properties. It has a "myIncludes" property which contains the pathList
of the include paths of its currently enabled features, and the
executable needs to use these among its include paths.
What is the correct way to do this with Qbs?
Here is what I've tried so far.
(I'm not sure if it's OK to attach or paste code snippets on this
mailing list, so I'll just use pastebin - I hope that's okay.)
This is a dumbed-down example of what I'm trying to do:
https://pastebin.com/2YF4d76y
However, this fails with the following error:
untitled4.qbs:37: error: TypeError: untitled4.qbs:37:27 Element at
index 2 of list property 'includePaths' is undefined. String expected.
This even simpler version still results in the same error:
https://pastebin.com/BQLhQrJL
This one almost seems to work, but the include paths are still not
added:
https://pastebin.com/BEgKRGJu
It looks like "ex.myIncludePaths" is undefined at the time when the
CppApplication item is evaluated.
What am I doing wrong here?
Thanks in advance for your answers!
Cheers,
Timur
More information about the Qbs
mailing list