On Tue, Oct 20, 2009 at 9:58 AM, Helge Fredriksen <[email protected]> wrote:
[...]
>
> That's one of my nitpicks: version is hardcoded in Version.java.
>
> I still don't have a clear plan for it :( Suggestions welcome.
>
> Should be some way to pick up this info from the Qt binaries, maybe parse
> qmake -v?
>

There is better: qmake -query QT_VERSION. In fact, qmake -query tells
a lot that is useful. But it should be compared to the version of
qt-jambi, imho. Something like:

<property file="version.properties"/>

<property name="qtjambi.fullversion"
value="${version.major}.${version.minor}.${version.patch}"/>

<!-- Note that qmake -query outputs to stderr, but outputproperty will
capture stderr by default -->
<exec executable="qmake" outputproperty="qt.fullversion">
    <arg value="-query"/>
    <arg value="QT_VERSION"/>
</exec>

<fail message="VERSION MISMATCH: Qt is ${qt.fullversion}, but this is
Qt Jambi ${qtjambi.fullversion}">
    <condition>
        <not>
            <equals arg1="${qt.fullversion}" arg2="${qtjambi.fullversion}"/>
        </not>
    </condition>
</fail>

> > Getting
> > rid of a lot of Ant custom task also turns out to be a very hard job
> > without ant-contrib: I need <var> badly for <juic> and <generator>.
>
> Can't see any reason why not using it? As long as we don't modify it, but
> only use
> it for comping the project? If this was a problem, gcc would also be
> impossible to
> use for building Qt, right?
>

Indeed. I initially planned to stabilise the build branch first before
starting to use it (and require it to build), but I think I have no
choice. I just cannot use plain ant if I want to get rid of these
tasks. Immutable properties are a "feature" of ant that I could do
without :(

-- 
Francis Galiegue, [email protected]
"It seems obvious [...] that at least some 'business intelligence'
tools invest so much intelligence on the business side that they have
nothing left for generating SQL queries" (Stéphane Faroult, in "The
Art of SQL", ISBN 0-596-00894-5)

_______________________________________________
Qt-jambi-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest

Reply via email to