forked from mesonbuild/meson
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request mesonbuild#3132 from mesonbuild/csc
Visual Studio C# compiler support and some fixes
- Loading branch information
Showing
17 changed files
with
123 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
## Visual Studio C# compiler support | ||
|
||
In addition to the Mono C# compiler we also support Visual Studio's C# | ||
compiler. Currently this is only supported on the Ninja backend. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
project('simple c#', 'cs') | ||
|
||
e = executable('prog', 'prog.cs', install : true) | ||
e = executable('prog', 'prog.cs', 'text.cs', install : true) | ||
test('basic', e) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
using System; | ||
|
||
public class Prog { | ||
static public void Main () { | ||
Console.WriteLine("C# is working."); | ||
TextGetter tg = new TextGetter(); | ||
Console.WriteLine(tg.getText()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
using System; | ||
|
||
public class TextGetter { | ||
public String getText() { | ||
return "C# is working."; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
project('C# external library', 'cs') | ||
glib_sharp_2 = dependency('glib-sharp-2.0') | ||
glib_sharp_2 = dependency('glib-sharp-2.0', required : false) | ||
|
||
if not glib_sharp_2.found() | ||
error('MESON_SKIP_TEST glib# not found.') | ||
endif | ||
|
||
e = executable('prog', 'prog.cs', dependencies: glib_sharp_2, install : true) | ||
test('libtest', e, args: [join_paths(meson.current_source_dir(), 'hello.txt')]) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.