Re: Build.xml for VC++ project
Ron Hough <[email protected]>
| Newsgroups | gmane.comp.java.cruise-control.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, Amit...
It's been a while since I did this, but it *is* possible. ;-) You
can use MSBuild for building from your .sln file from the command
line, which should come in your VS installation. (If not, you should
be able to download it from Microsoft... it's a free download, I
believe.) Then, you get the ant .Net lib <http://ant.apache.org/
antlibs/dotnet/> which gives you an ant task for running MSBuild.
While you *can* do a build by just using the <exec/> task, I found
that the <msbuild/> task provides better integration with ant
(logging, results, etc.) which in turn makes it play more nicely with
CruiseControl.
Then again, you might also be able to do this more easily with
CruiseControl.NET. I've never tried it... I was already using the
Java version for other platforms/projects and wanted to stay consistent.
Here's a simple build.xml that should get you started...
<project name="build-yourproject"
default="build"
basedir="yourproject/src">
<taskdef resource="org/apache/ant/dotnet/antlib.xml"/>
<target name="build">
<!-- Get the latest from SVN or wherever -->
<exec executable="svn">
<arg line="update ../.."/>
</exec>
<!-- Call the target that does everything -->
<msbuild buildfile="yourproject.sln">
<target name="Build"/>
<property name="Platform" value="Win32"/>
<property name="Configuration"
value="Release"/>
<property name="VCBuildAdditionalOptions"
value="/useenv"/>
</msbuild>
</target>
</project>
On Feb 20, 2009, at 1:31 AM, Amit Kulkarni wrote:
> Hello all,
>
>
>
> I am new to Cruise Control and all the ant issue.
>
>
>
> Does any one have experience building c++ programs (developed in
> visual
>
> studio - dsp and dsw configuration)?
>
>
>
> Can you please tell me how to write a task that compiles visual studio
>
> project (dsp or dsw)?
>
>
>
> A sample build.xml is to much to ask?
>
>
>
> Thanks
>
>
>
> Amit
>
>
>
>
>
>
> http://www.patni.com
> World-Wide Partnerships. World-Class Solutions.
> _____________________________________________________________________
>
> This e-mail message may contain proprietary, confidential or
> legally privileged information for the sole use of the person or
> entity to whom this message was originally addressed. Any review, e-
> transmission dissemination or other use of or taking of any action
> in reliance upon this information by persons or entities other than
> the intended recipient is prohibited. If you have received this e-
> mail in error kindly delete this e-mail from your records. If it
> appears that this mail has been forwarded to you without proper
> authority, please notify us immediately at [email protected] and
> delete this mail.
> _____________________________________________________________________
> ----------------------------------------------------------------------
> --------
> 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_______________________________________________
> Cruisecontrol-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user
------------------------------------------------------------------------------
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
_______________________________________________
Cruisecontrol-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user