I would assume that you would have to <exec> a call to g++ or something
like that. Should be pretty easy, I think.
<target name="compile">
<property name="src.cpp" value="source_file.cpp" />
<property name="g++.cmd" value="g++ ${src.cpp} -o some-file-name-here"
/>
<exec program="${g++.cmd}" output="build.log" failonerror="true"
verbose="true" />
</target>
That's rough, but, you get the idea.
Hope this helps,
Mike
-----Original Message-----
From: ptr2009 [mailto:[email protected]]
Sent: Thursday, February 19, 2009 2:44 PM
To: [email protected]
Subject: [NAnt-users] Nant and cpp files
hey all
There are cl and linker tasks for compiling C++ files. But these seem
to be
using Microsoft compiler. Can one use nant to compile C++ files on
another
platform like linux/mac ?
Is there a recommended way of doing this ?
Thanks
Raj
--
View this message in context:
http://www.nabble.com/Nant-and-cpp-files-tp22108239p22108239.html
Sent from the NAnt - Users mailing list archive at Nabble.com.
------------------------------------------------------------------------
------
Open Source Business Conference (OSBC), March 24-25, 2009, San
Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source code:
SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
NAnt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
NAnt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users