Merge pull request #2248 from thiblahute/csharp
Make cs_args a known argument and handle c# external dependenciespull/2252/head
commit
1cd037b578
6 changed files with 21 additions and 1 deletions
@ -0,0 +1 @@ |
||||
Hello World! |
@ -0,0 +1,4 @@ |
||||
project('C# external library', 'cs') |
||||
glib_sharp_2 = dependency('glib-sharp-2.0') |
||||
e = executable('prog', 'prog.cs', dependencies: glib_sharp_2, install : true) |
||||
test('libtest', e, args: [join_paths(meson.current_source_dir(), 'hello.txt')]) |
@ -0,0 +1,8 @@ |
||||
using System; |
||||
using GLib; |
||||
|
||||
public class Prog { |
||||
static public void Main (string[] args) { |
||||
Console.WriteLine(GLib.FileUtils.GetFileContents(args[0])); |
||||
} |
||||
} |
Loading…
Reference in new issue