[ Home | Forums | About | Sponsors ]
  Welcome, Guest. Please Login or Register
Google
 
Web gotmono.com
  Signup for free on our forum and benefit from new features!
  HomeHelpSearchLoginRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
(Read 613 times)
dwright-unidesk
YaBB Newbies
*
Offline

I love YaBB 1G - SP1!

Posts: 1

Building C and C# code
Aug 1st, 2008, 6:04am
 
We're trying to create a build process that will be cross-platform and target .NET on Windows and Mono on Linux.  It seems that NANT is a good fit to do this.  I have been able to write NANT build scripts that are identical for these two platforms.

But now I've run into a situation where we need to build some C++ and C libraries from source, and link them into the assembly as "unsafe" code and use PInvoke to call them.  Then I'd use .config files and the "dllmap" feature to allow the C# code to DllImport a .DLL and have it actually load the .so file on Linux.  This appears to work fine on Mono.

But the problem is I don't think NANT has a built-in way of invoking the "standard platform C++ compiler" to do this.  Am I correct about this limitation of NANT?  If so, does anyone have a good solution to this problem you can share?  What about using ANT instead of NANT to build the C++ portions?

Thanks in advance!
Back to top
 
 
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print
 

Copyright © 2003-2008, The Mono Community
Website Design donated by IdeaZone.ca