[QBS] Export cpp.defines
Stéphane Fabry
sf at xris.eu
Sun Jun 28 10:33:46 CEST 2015
Oh thanks,
To resume, here is what is wrong and what is good
Export{
Depends { name: "cpp" }
cpp.includePaths: "src"
cpp.defines: base.concat(["QWT_DLL"]) <---- Good
cpp.defines: base.concat("QWT_DLL") <---- Wrong
cpp.defines: "QWT_DLL" <---- Wrong
}
Export{
Depends { name: "cpp" }
cpp.defines: qbs.buildVariant == "debug" ? base : base.concat(["QSLOG_NO_DEBUG_OUTPUT"]) <---- Good
cpp.defines: base.concat(qbs.buildVariant == "debug" ? [""] : ["QSLOG_NO_DEBUG_OUTPUT"]) <---- Wrong
}
Thanks again, you saved me from headache !!
:)
Le 28-06-15 07:08, Andrii Anpilogov a écrit :
> Export {
> Depends { name: "cpp" }
> cpp.defines: base.concat(/["QWT_DLL"]/)
> }
>
> 2015-06-28 5:40 GMT+08:00 Stéphane Fabry <sf at xris.eu <mailto:sf at xris.eu>>:
>
>
> Hi,
>
> I just ran into problem by upgrading to QtCreator 3.4.1 and Qt 5.4.2
>
> I have different libraries which exports some cpp defines this way:
>
> Export{
>
> Depends { name: "cpp" }
>
> cpp.includePaths: "src"
>
> cpp.defines: "QWT_DLL"
>
> }
>
> Then I have a product that depends on those libraries, and now depending on the order of the Depends statement in the product,
> the defines of the first are hidden by the defines of the next one...
>
>
>
>
> Any suggestions, ideas ?
>
>
> Thanks !
>
>
>
>
> Stéphane
>
> _______________________________________________
> QBS mailing list
> QBS at qt-project.org <mailto:QBS at qt-project.org>
> http://lists.qt-project.org/mailman/listinfo/qbs
>
>
>
>
> --
> --
> WBR,
> Andrii Anpilogov
> Phone: +86 186-1660-3720
> Skype: anpilogov.andrey
> mailto:anpilog at gmail.com <mailto:anpilog at gmail.com>,
> andrii.anpilogov at mesheven.com <mailto:andrii.anpilogov at mesheven.com>
>
--
*Stéphane Fabry*, Project & IT Manager
+32 (0)4 367 07 92
*X-RIS* | /X-Ray Imaging Solutions/
www.xris.eu/contact.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qbs/attachments/20150628/a58fe400/attachment.html>
More information about the Qbs
mailing list