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 <[email protected] <mailto:[email protected]>>:


    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
    [email protected] <mailto:[email protected]>
    http://lists.qt-project.org/mailman/listinfo/qbs




--
--
WBR,
  Andrii Anpilogov
  Phone: +86 186-1660-3720
  Skype: anpilogov.andrey
mailto:[email protected] <mailto:[email protected]>, [email protected] <mailto:[email protected]>


--
*Stéphane Fabry*, Project & IT Manager
+32 (0)4 367 07 92
*X-RIS* | /X-Ray Imaging Solutions/
www.xris.eu/contact.html
_______________________________________________
QBS mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/qbs

Reply via email to