Re: Re: geant/gexace question

Eric Bezault <ericb-D6Qt/9opevxWk0Htik3J/[email protected]> Fri, 13 Jun 2008 02:45:17 +0200
Newsgroups gmane.comp.lang.eiffel.gobo.general
Message-ID <[email protected]>
render_dude wrote:
> --- In [email protected], Eric Bezault <ericb@...> wrote:
>> render_dude wrote:
>>> I need a finer switch in my library.xace files then the "windows/unix"
>>> GOBO_OS variable.
>>>
>>> I have code like the following in my .xace files:
>>>    <option unless="${ARCH}=macosx-ppc">
>>> where ARCH is defined in the environment. The paths/libraries/library
>>> flags change with the different architectures I support. Obviously,
>>> this doesn't work, the code is always executed no matter what ${ARCH}
>>> is set to.
>>>
>>> So, how do I make this work, or what is the right way to achieve this
>>> effect?
>> You have to call gexace with the following option:
>>
>>    gexace --define="ARCH=macosx-ppc" ....
>>
> 
> That's what I thought, but how do you get geant then to pass that info
> on to gexace, and, get geant to pick up the values from the
> environment? Or can you?

    <gexace system="..." output="..." format="..." xace="...">
       <define name="ARCH" value="${ARCH}" if="${ARCH}"/>
    </gexace>

-- 
Eric Bezault
mailto:ericb-D6Qt/9opevxWk0Htik3J/[email protected]
http://www.gobosoft.com