Hi Delicia,
The GnuMakefileGenerator generates pattern rules when
possible. That is why make auto variables are passed to the command line
generator, and the generator is expected to generate the command suitable for
the pattern rule as well.
You might want to raise an enhancement request in
bugzilla if your integration requires more flexible command line generation
processing.
As a work-around I suggest you to use make functions
for extracting the file extension from the given string in case the “$<”
is passed as inputResources.
The get the extension string you might use:
$(suffix $(notdir $<))
Regards,
Mikhail
From:
cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Delicia
Sent: Friday, September 01, 2006
4:24 PM
To: cdt-dev@xxxxxxxxxxx
Subject: [cdt-dev]
generateCommandLineInfo() of IManagedCommandLineGenerator
One of the tools in my toolchain has a
more complicated build step.
Since it involves 4-5 steps to get the final output, I have
written a class that implements
the "IManagedCommandLineGenerator" interface.
[This class is supplied to the
'commandLineGenerator' attribute of the 'tool'].
In my generateCommandLineInfo() method, I have
'String[] inputResources', which contains $<
But what I need, is the input filename (sans the extension),
which I then use in subsequent build steps.
Could someone please tell me where/how to get this
information.