[QBS] Properties item are broken in qbs 1.2
Aleksey Sidorov
gorthauer87 at yandex.ru
Mon Apr 7 11:13:33 CEST 2014
Qbs from QtCreator 3.1RC falls in this code:
import qbs 1.0
Project {
property string binPath: "/usr/bin"
property string libPath: "/usr/lib"
Properties {
condition: qbs.targetOS.contains("osx")
binPath: "/Users/boo"
libPath: "/Libraries/foo"
}
}
Also on this code snippet
import qbs 1.0
import qbs.FileInfo
Product {
property string bisonPath: "bison" //TODO rewrite on binary probe
property string flexPath: "flex"
Properties {
condition: qbs.targetOS.contains("osx")
bisonPath: "/usr/local/bin/bison"
flexPath: "/usr/local/bin/flex"
}
}
QtCreator displays an error: ReferenceError: Can't find variable: qbs
In the qbs 1.1 these problems were not observed.
More information about the Qbs
mailing list