[Qbs] passing values for stringList properties on commandline?

Christian Kandeler christian.kandeler at qt.io
Fri Jun 9 10:30:14 CEST 2023


On 6/9/23 10:15, Heiko Nardmann wrote:
> Hi together,
>
> I'm currently analyzing the usage of ccache and would like to pass 
> "-v" to ccache. Which means that I have to change
>
>    modules.cpp.compilerWrapper:ccache
>
> to sth like
>
>    modules.cpp.compilerWrapper:'[ccache,-v]'
>
> which does not work.
>
Because it's not a string list, i.e. an array of JS strings:

   modules.cpp.compilerWrapper:'["ccache","-v"]'


Christian



More information about the Qbs mailing list