[cc65] Assembler Option --listing in ant

From: David Schmidt <david46021gmail.com>
Date: 2011-02-16 22:31:43
Hi, Uz, Oliver and all -

I appreciate that the old '-l' listing option was grotty.  The trouble
is - now that it's changed, I'm unable to generate listings for my
project in ant when I'm assembling things as part of a fileset.  In
ant, I have this production:
<apply executable="${assemblerPath}/ca65"
dir="${projdir}/client/src/ip65/drivers">
	<arg line="-l -t c64" />
	<fileset dir="${projdir}/client/src/ip65/drivers" includes="**/*.s"/>
</apply>
So for all files in a directory matching *.s, we call ca65 and get an
object file and a listing file.  So far, so good.  Well, in the new
scheme of things, I need to specify a filename for -l.  But ant's
"apply" task (http://ant.apache.org/manual/Tasks/apply.html), you can
only make one substitution at a time... they call it a mapper:
<apply executable="${assemblerPath}/ca65"
dir="${projdir}/client/src/ip65/drivers">
	<arg value="-t c64"/>
	<arg value="-l "/>
	<targetfile/>
	<srcfile/>
	<fileset dir="${projdir}/client/src/ip65/drivers" includes="**/*.s"/>
	<mapper type="glob" from="*.s" to="*.o"/>
</apply>

I don't have the opportunity to make another mapper that would
transform .s to .lst in the same step.  My options in this case are:
1) stay on the old toolchain
2) call apply twice for every .s file, first producing a .lst file and
second producing a .o file.

Is there an ant expert out there that can help me do something smarter
with ant, or alternatively, is there a new/reverted option (i.e.
--listForDummies) that can still behave the old way?

- David
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Wed Feb 16 22:31:53 2011

This archive was generated by hypermail 2.1.8 : 2011-02-16 22:31:58 CET