<div dir="ltr"><div>Hi,</div><div><br></div><div>I was using it at the project level which was obviously wrong.</div><div>I managed to change all the occurrences of the test by moving them in the condition of the different products.</div><div><br></div><div>Except in this case:</div><div>Depends {<br>        name: "Qt";<br>        submodules: ["widgets"]<br>        condition: !qbs.architecture.contains("arm")<br>    }</div><div>Is there a way to use the qbs.architecture to select the depend?<br></div><div><br></div><div>QtCreator regularly overwrites the profile config file. I used to add the qbs.architecture property in the file and it gets wiped out from time to time.</div><div><br></div><div>Raphael<br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le lun. 3 févr. 2020 à 13:41, Christian Kandeler <<a href="mailto:Christian.Kandeler@qt.io">Christian.Kandeler@qt.io</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Sun, 2 Feb 2020 11:57:20 +0100<br>
Raphael Cotty <<a href="mailto:raphael.cotty@gmail.com" target="_blank">raphael.cotty@gmail.com</a>> wrote:<br>
<br>
> I see that the qbs.architecture property is set for the android platform by<br>
> the different qbs tools.<br>
> But it's not set by qbs-setup-qt or qbs-setup-toolchains for gcc.<br>
<br>
That's because the cpp module sets it automatically using information retrieved from the toolchain.<br>
<br>
> Although the doc says: "undefined indicates that the target platform is<br>
> architecture-independent (for example the CLR or JVM)."<br>
<br>
Yes, but it's not undefined anymore after the cpp Probe has run.<br>
<br>
> Anyway, I am using it in my profile to distinguish between x86_64 and arm<br>
> builds.<br>
> <br>
> But when using qtc, this property is regularly deleted in the profile.<br>
<br>
What do you mean by that?<br>
<br>
<br>
Christian<br>
_______________________________________________<br>
Qbs mailing list<br>
<a href="mailto:Qbs@qt-project.org" target="_blank">Qbs@qt-project.org</a><br>
<a href="https://lists.qt-project.org/listinfo/qbs" rel="noreferrer" target="_blank">https://lists.qt-project.org/listinfo/qbs</a><br>
</blockquote></div>