mirror of
https://github.com/microsoft/regorus.git
synced 2026-08-05 02:16:11 +00:00
Also update binding versions and lock files. Note: - Ruby binding is not updated - C# binding is v0.7.0. We will make it match Regorus version later. Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com>
52 lines
2.9 KiB
XML
52 lines
2.9 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<OutputType>Library</OutputType>
|
|
<RootNamespace>Microsoft.Regorus</RootNamespace>
|
|
<TargetFrameworks>netstandard2.0;netstandard2.1</TargetFrameworks>
|
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
|
<LangVersion>10.0</LangVersion>
|
|
|
|
<!-- See https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-pack -->
|
|
<VersionPrefix>0.7.0</VersionPrefix>
|
|
<VersionSuffix>$(VersionSuffix)</VersionSuffix>
|
|
<PackageReadmeFile>README.md</PackageReadmeFile>
|
|
</PropertyGroup>
|
|
|
|
<!--
|
|
$(RegorusFFIArtifactsDir) is the location where regorus shared libraries have been
|
|
built for various platforms and copied to. RegorusFFIArtifactsDir is passed in
|
|
by the publishing pipeline.
|
|
|
|
For each target triple, `Pack` expects the regorus ffi shared library
|
|
to be found in $(RegorusFFIArtifactsDir)/<target-triple>/release.
|
|
-->
|
|
<Target Name="ChecksRegorusFFIArtifactsDir" BeforeTargets="Pack">
|
|
<Error Text="RegorusFFIArtifactsDir must be supplied." Condition="$(RegorusFFIArtifactsDir) == ''" />
|
|
|
|
<!-- Ensure that the binaries for officially supported platforms exists. -->
|
|
<Error Text="$(RegorusFFIArtifactsDir)/x86_64-pc-windows-msvc/release/regorus_ffi.dll missing."
|
|
Condition="!Exists('$(RegorusFFIArtifactsDir)/x86_64-pc-windows-msvc/release/regorus_ffi.dll')" />
|
|
<Error Text="$(RegorusFFIArtifactsDir)/x86_64-pc-windows-msvc/release/regorus_ffi.pdb missing."
|
|
Condition="!Exists('$(RegorusFFIArtifactsDir)/x86_64-pc-windows-msvc/release/regorus_ffi.pdb')" />
|
|
|
|
<Error Text="$(RegorusFFIArtifactsDir)/x86_64-unknown-linux-gnu/release/libregorus_ffi.so missing."
|
|
Condition="!Exists('$(RegorusFFIArtifactsDir)/x86_64-unknown-linux-gnu/release/libregorus_ffi.so')" />
|
|
</Target>
|
|
|
|
<ItemGroup>
|
|
<None Include="docs/README.md" Pack="true" PackagePath="/" />
|
|
|
|
<!-- Copy each binary to expected location within the package -->
|
|
<None Include="$(RegorusFFIArtifactsDir)/x86_64-pc-windows-msvc/release/*.dll" Pack="true" PackagePath="runtimes/win-x64/native/" />
|
|
<None Include="$(RegorusFFIArtifactsDir)/x86_64-pc-windows-msvc/release/*.pdb" Pack="true" PackagePath="runtimes/win-x64/native/" />
|
|
|
|
<None Include="$(RegorusFFIArtifactsDir)/aarch64-pc-windows-msvc/release/*.dll" Pack="true" PackagePath="runtimes/win-arm64/native/" />
|
|
<None Include="$(RegorusFFIArtifactsDir)/aarch64-pc-windows-msvc/release/*.pdb" Pack="true" PackagePath="runtimes/win-arm64/native/" />
|
|
|
|
<None Include="$(RegorusFFIArtifactsDir)/x86_64-unknown-linux-gnu/release/lib*.so" Pack="true" PackagePath="runtimes/linux-x64/native/" />
|
|
|
|
<None Include="$(RegorusFFIArtifactsDir)/aarch64-apple-darwin/release/lib*.dylib" Pack="true" PackagePath="runtimes/osx-arm64/native/" />
|
|
</ItemGroup>
|
|
</Project>
|