[cmake-developers] C# support?

J Decker d3ck0r at gmail.com
Mon Jun 29 13:42:53 EDT 2015


On Mon, Jun 29, 2015 at 10:05 AM, Brad King <brad.king at kitware.com> wrote:

> On 06/26/2015 10:47 AM, Stuermer, Michael SP/HZA-ZSEP wrote:
> > Does it have a realistic chance to be accepted for upstream
>
> Yes, so long as it comes with proper tests and is not too intrusive
> on the overall design/implementation of CMake.
>
> In order to enable use of C# sources we should get
>
>  enable_language(CSharp)
>
> to work.  This is likely straightforward with the VS generators.
>
> One question is how things should be done for the Makefile and
> Ninja generators.  For these we need to construct command line
> invocations of the compiler.  I'm not very familiar with C#.
> Does it need separate compilation with dependencies or should one
> simply invoke the compiler with the entire list of sources in
> a response file or something?
>
>
the command line tool is 'mcs' (mono)
http://linux.die.net/man/1/mcs

and csc for .NET (windows)
https://msdn.microsoft.com/en-us/library/78f4aasd.aspx
(does support response file with @<file>; from running csc /?)

it goes from source to .dll or .exe without .obj inbetween.

can compile with C# itself... but I guess there's no command line tool from
.NET itself (looks like it comes from visual studio)... something like
Power Shell can instance a compiler and build output.
(wonder if that was part of the sources includes in the .net source release)


Thanks,
> -Brad
>
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more
> information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/cmake-developers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20150629/041b2f94/attachment.html>


More information about the cmake-developers mailing list