Re: [QBS] Export cpp.defines

2015-06-29 Thread Christian Kandeler
On 06/28/2015 10:33 AM, Stéphane Fabry wrote:
> 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

Hm, that looks a bit strage. If you can provide a minimal complete 
example that shows this behavior, I'd appreciate a bug report.


Thanks,
Christian
___
QBS mailing list
QBS@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qbs


Re: [QBS] Export cpp.defines

2015-06-28 Thread Stéphane Fabry

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 mailto: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 




--
*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
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 :

>
> 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


[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