this adds support for generating pkgconfig files for c#. The difference to c and cpp is that the -I flag is not known to the c# compiler, but rather the -r flag which is used to link a .dll file into the compiled library. However this opens the question of validating which pkgconfig files can be generated (depending on the language). This implements 4409.pull/4543/head
parent
5e91eb3d0c
commit
443a4a8c78
4 changed files with 45 additions and 5 deletions
@ -0,0 +1,10 @@ |
|||||||
|
project('pkgformat', 'cs', |
||||||
|
version : '1.0') |
||||||
|
|
||||||
|
pkgg = import('pkgconfig') |
||||||
|
|
||||||
|
l = library('libsomething', 'somelib.cs') |
||||||
|
|
||||||
|
pkgg.generate(l, |
||||||
|
version: '1.0', |
||||||
|
description: 'A library that does something') |
@ -0,0 +1,12 @@ |
|||||||
|
using System; |
||||||
|
|
||||||
|
namespace Abc |
||||||
|
{ |
||||||
|
public static class Something |
||||||
|
{ |
||||||
|
public static bool Api1(this String str) |
||||||
|
{ |
||||||
|
return str == "foo"; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue