-
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor Benchmarks to work with AOT (#433)
- Loading branch information
1 parent
2a096ba
commit a71a0ff
Showing
25 changed files
with
1,634 additions
and
1,676 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
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,23 +1,66 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<TargetFrameworks>net8.0</TargetFrameworks> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<DelaySign>false</DelaySign> | ||
<SignAssembly>false</SignAssembly> | ||
<DefineConstants>$(DefineContants);CURRENT_VERSION_ONLY;RUN_COMPARISON_BENCHMARKS;FLATSHARP_7_0_0_OR_GREATER</DefineConstants> | ||
<FlatSharpCompilerPath>$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)\..\..\FlatSharp.Compiler\bin\Release\net8.0\FlatSharp.Compiler.dll'))</FlatSharpCompilerPath> | ||
<FlatSharpNameNormalization>true</FlatSharpNameNormalization> | ||
<RunAnalyzersDuringLiveAnalysis>False</RunAnalyzersDuringLiveAnalysis> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition=" '$(BuildAot)' == 'true' "> | ||
<DefineConstants>$(DefineConstants);AOT</DefineConstants> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="BenchmarkDotNet" /> | ||
<PackageReference Include="BenchmarkDotNet.Diagnostics.Windows" /> | ||
<PackageReference Include="Google.Protobuf" /> | ||
<PackageReference Include="Grpc.Tools"> | ||
<PrivateAssets>all</PrivateAssets> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
</PackageReference> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition=" '$(BuildAot)' != 'true' "> | ||
<PackageReference Include="MessagePack" /> | ||
<PackageReference Include="Newtonsoft.Json" /> | ||
<PackageReference Include="protobuf-net" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\..\FlatSharp\FlatSharp.csproj" /> | ||
<ProjectReference Include="..\..\FlatSharp.Runtime\FlatSharp.Runtime.csproj" /> | ||
<ProjectReference Include="..\..\Google.FlatBuffers\Google.FlatBuffers.csproj" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<None Include="BenchmarkUtilities.cs"> | ||
<DesignTime>True</DesignTime> | ||
<AutoGen>True</AutoGen> | ||
<DependentUpon>BenchmarkUtilities.tt</DependentUpon> | ||
</None> | ||
<Compile Update="BenchmarkUtilities.cs"> | ||
<DesignTime>True</DesignTime> | ||
<AutoGen>True</AutoGen> | ||
<DependentUpon>BenchmarkUtilities.tt</DependentUpon> | ||
</Compile> | ||
<None Update="BenchmarkUtilities.tt"> | ||
<Generator>TextTemplatingFileGenerator</Generator> | ||
<LastGenOutput>BenchmarkUtilities.cs</LastGenOutput> | ||
</None> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<FlatSharpSchema Include="FBBench/FlatSharp.fbs" /> | ||
<Protobuf Include="FBBench/Benchmark.proto" /> | ||
</ItemGroup> | ||
|
||
<Import Project="..\..\FlatSharp.Compiler\FlatSharp.Compiler.targets" /> | ||
|
||
<Target Name="BuildCompiler" BeforeTargets="FlatSharpFbsCompile"> | ||
<MSBuild Projects="..\..\FlatSharp.Compiler\FlatSharp.Compiler.csproj" Properties="Configuration=Release;TargetFramework=net8.0" /> | ||
</Target> | ||
|
||
</Project> |
Oops, something went wrong.