You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Srivani Ausula <sa...@seebeyond.com> on 2004/11/24 05:46:50 UTC

c / c++ compilation with ant

Hi all
 
I am new to ant
 
I need to compile C / C++ applications using ant. I found only ccTask
description. But with no examples.
 
Can any one please help me ? 
 
At least provide me links (or urls ) which could help me
 
Thanks in advance
Regards
A Srivani
 

Re: c / c++ compilation with ant

Posted by Stefan Bodewig <bo...@apache.org>.
On Tue, 23 Nov 2004, Jeff Davidson <je...@shaw.ca> wrote:

> I'm not at work, so I don't have a concrete example in front of me
> but, basically, you just want to look at the docs for the <exec/>
> task, and call your command line compiler.

<apply> probably is more appropriate.

For more complex situations with cross platform builds I'd reccommend
that you look into the <cc> task and friends over at the Ant-Contrib
project at Sourceforge.  <http://ant-contrib.sf.net/>

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


RE: c / c++ compilation with ant

Posted by Jeff Davidson <je...@shaw.ca>.
I'm not at work, so I don't have a concrete example in front of me but,
basically, you just want to look at the docs for the <exec/> task, and call
your command line compiler.  Myself, I'm not even compiling any Java classes
with Ant; I'm compiling Delphi and Visual C++ projects by executing
dcc32.exe and/or devenv.com, as appropriate.  I don't know what compiler
you're using, but it almost assuredly has a command-line compiler.

http://ant.apache.org/manual/index.html
Ant Tasks | Core Tasks | Exec

Cheers,
~Jeff D.


-----Original Message-----
From: Srivani Ausula [mailto:sausula@seebeyond.com] 
Sent: Tuesday, November 23, 2004 8:47 PM
To: Ant Users List
Subject: c / c++ compilation with ant


Hi all
 
I am new to ant
 
I need to compile C / C++ applications using ant. I found only ccTask
description. But with no examples.
 
Can any one please help me ? 
 
At least provide me links (or urls ) which could help me
 
Thanks in advance
Regards
A Srivani
 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org