mirror of
https://github.com/microsoft/regorus.git
synced 2026-08-05 02:16:11 +00:00
* FFI bindings Generate C FFI as well as C# FFI Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com> * Regorus C binding Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com> * C# binding Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com> * Golang binding Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com> --------- Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com>
25 lines
729 B
XML
25 lines
729 B
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<Target Name="BuildRegorusFFI">
|
|
<Exec Command="cargo build -r --manifest-path ../ffi/Cargo.toml" />
|
|
<Copy SourceFiles="../ffi/RegorusFFI.g.cs" DestinationFolder="." />
|
|
<ItemGroup>
|
|
<RegorusDylib Include="..\..\target\release\*regorus_ffi*" />
|
|
</ItemGroup>
|
|
<Copy SourceFiles="@(RegorusDylib)" DestinationFolder="." />
|
|
</Target>
|
|
|
|
|
|
<PropertyGroup>
|
|
<OutputType>Exe</OutputType>
|
|
<TargetFramework>net8.0</TargetFramework>
|
|
<RootNamespace>regorus_test</RootNamespace>
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
<Nullable>enable</Nullable>
|
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
</Project>
|