Re: [QBS] Error message when conditionally using string lists on project level

2014-06-12 Thread Epting, Thomas
Wow, great!

Many thanks!!
Thomas

-Urspruengliche Nachricht-
Von: qbs-bounces+thomas.epting=stryker@qt-project.org 
[mailto:qbs-bounces+thomas.epting=stryker@qt-project.org] Im Auftrag von 
Joerg Bornemann
Gesendet: Donnerstag, 12. Juni 2014 17:25
An: Thomas Epting
Cc: qbs@qt-project.org
Betreff: Re: [QBS] Error message when conditionally using string lists on 
project level

On 12-Jun-14 12:14, Thomas Epting wrote:
>  > That's a bug. I've created QBS-613 for that and added a comment  > 
> that shows a work-around.
>
> Thank you! Do you have any plans when this could be fixed?

There's now a link to the proposed fix in the issue.


BR,

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

Stryker Leibinger GmbH & Co. KG
Sitz: Freiburg - Handelsregister: AG Freiburg HRA 4375
Komplementaerin: Stryker Beteiligungs GmbH
Geschaeftsfuehrer: Oliver Baertl
Sitz: Freiburg - Handelsregister: AG Freiburg HRB 5441, EAR Nr. 92587730
Bankverbindung: Bank of America N.A. Frankfurt 17 362 010 - BLZ 500 109 00, 
IBAN: DE04 5001 0900 0017 3620 10

 

Diese Nachricht und etwaige Dateianhaenge sind vertrauliche Informationen, die 
besonderen Geheimhaltungsvereinbarungen oder -vorschriften unterliegen koennen. 
Falls Sie nicht der beabsichtigte Empfaenger der Nachricht sind, werden Sie 
gebeten, den Absender telefonisch oder durch E-Mail zu unterrichten und die 
Nachricht und etwaige Dateianhaenge vollstaendig und endgueltig zu loeschen. 
Die Nachricht und ihr Inhalt duerfen in diesem Fall nicht kopiert, ausgedruckt 
oder weitergeleitet werden.

This message and any attachment are confidential and may be privileged or 
otherwise protected from disclosure.  If you are not the intended recipient, 
please telephone or e-mail the sender and delete this message and any 
attachment from your system.  If you are not the intended recipient you must 
not copy this message or attachment or disclose the contents to any other 
person.



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


Re: [QBS] Error message when conditionally using string lists on project level

2014-06-12 Thread Joerg Bornemann
On 12-Jun-14 12:14, Thomas Epting wrote:
>  > That's a bug. I've created QBS-613 for that and added a comment
>  > that shows a work-around.
>
> Thank you! Do you have any plans when this could be fixed?

There's now a link to the proposed fix in the issue.


BR,

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


Re: [QBS] Error message when conditionally using string lists on project level

2014-06-12 Thread Thomas Epting
> That's a bug. I've created QBS-613 for that and added a comment
> that shows a work-around.

Thank you! Do you have any plans when this could be fixed?

Cheers,
Thomas



2014-06-12 11:55 GMT+02:00 Joerg Bornemann :

> On 12-Jun-14 09:42, Thomas Epting wrote:
>
> > Any ideas?
>
> That's a bug. I've created QBS-613 for that and added a comment that
> shows a work-around.
>
>
> Cheers,
>
> Joerg
> ___
> QBS mailing list
> QBS@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qbs
>
___
QBS mailing list
QBS@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qbs


Re: [QBS] Error message when conditionally using string lists on project level

2014-06-12 Thread Joerg Bornemann
On 12-Jun-14 09:42, Thomas Epting wrote:

> Any ideas?

That's a bug. I've created QBS-613 for that and added a comment that 
shows a work-around.


Cheers,

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


[QBS] Error message when conditionally using string lists on project level

2014-06-12 Thread Thomas Epting
Hi all,

I'm running into troubles when trying to configure a product via a string
list defined on project level. Here is a stripped-down version of my code
that shows the problem:


import qbs.base 1.0
Project {

name: "projectProperties"

property stringList valueList: [ "v1", "v2" ]

Properties {

condition: qbs.targetOS.contains("windows")

valueList: [ "v1", "v3" ]

}

Project {

name: "A"

Product {

property var debugMe: {

for ( var i in project.valueList )

print(project.valueList[i]);

}

}

}

}


When running this with Qbs build from Git 1.2 branch (on Windows 7), I get
the message "ReferenceError: Can't find variable: qbs". However the code
works if I do one (or some) of the following:

 - Set the condition of the project-level Properties item to "true" or
"false"
 - Remove the project-Level Properties item entirely
 - Move the Product item out of the subproject

Any ideas?

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