[QBS] Export cpp.defines

2015-06-27 Thread Stéphane Fabry


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@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qbs


Re: [QBS] Export cpp.defines

2015-06-27 Thread Andrii Anpilogov
Export {

Depends { name: cpp }

cpp.defines: base.concat(*[QWT_DLL]*)

}



2015-06-28 5:40 GMT+08:00 Stéphane Fabry s...@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@qt-project.org
 http://lists.qt-project.org/mailman/listinfo/qbs




-- 
-- 
WBR,
  Andrii Anpilogov
  Phone: +86 186-1660-3720
  Skype: anpilogov.andrey
  mailto:anpi...@gmail.com, andrii.anpilo...@mesheven.com
___
QBS mailing list
QBS@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qbs