I've never made a custom task. The developers at my company provide me a
makefile and I launch make against that.
________________________________
From: ptr [mailto:ptrajku...@gmail.com]
Sent: Thursday, February 19, 2009 4:01 PM
To: Michael Pento
Cc: nant-users@lists.sourceforge.net
Subject: Re: [NAnt-users] Nant and cpp files
I would need to include a whole set of source files for compiling
and link them all into a shared library.
Is there preferred way to use an external makefile and fire nant with
exec or write a custom task ?
Raj
On Thu, Feb 19, 2009 at 3:58 PM, Michael Pento <mpe...@metratech.com>
wrote:
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:ptrajku...@gmail.com]
Sent: Thursday, February 19, 2009 2:44 PM
To: nant-users@lists.sourceforge.net
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
NAnt-users@lists.sourceforge.net
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
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users