|
1 | 1 | <Project Sdk="Microsoft.NET.Sdk"> |
2 | | - |
3 | 2 | <PropertyGroup> |
4 | 3 | <OutputType>Exe</OutputType> |
5 | 4 | <TargetFramework>net8.0</TargetFramework> |
|
14 | 13 | <PublishWmiLightStaticallyLinked>true</PublishWmiLightStaticallyLinked> |
15 | 14 | <SelfContained>true</SelfContained> |
16 | 15 | <StaticExecutable>true</StaticExecutable> |
17 | | - <LinkerFlavor Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Linux)))'">lld</LinkerFlavor> |
| 16 | + <LinkerFlavor |
| 17 | + Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Linux)))'" |
| 18 | + >lld</LinkerFlavor |
| 19 | + > |
18 | 20 | <InvariantGlobalization>true</InvariantGlobalization> |
19 | 21 | </PropertyGroup> |
20 | | - |
21 | 22 | <ItemGroup> |
22 | | - <PackageReference Include="Tomlyn" Version="0.18.0" /> |
| 23 | + <PackageReference Include="Tomlyn" Version="0.19.0" /> |
23 | 24 | <PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.1" /> |
24 | 25 | </ItemGroup> |
25 | | - |
26 | 26 | <PropertyGroup Condition="'$(OS)' == 'Windows_NT'"> |
27 | 27 | <DefineConstants>WINDOWS</DefineConstants> |
28 | 28 | </PropertyGroup> |
29 | | - |
30 | 29 | <ItemGroup> |
31 | 30 | <PackageReference Include="Google.FlatBuffers" Version="25.2.10" /> |
32 | 31 | </ItemGroup> |
33 | 32 | <ItemGroup> |
34 | 33 | <Folder Include="FlatBuffer\" /> |
35 | 34 | </ItemGroup> |
36 | | - |
37 | 35 | <ItemGroup> |
38 | 36 | <DirectPInvoke Include="rl_ball_sym" /> |
39 | | - |
40 | 37 | <!-- Statically linked for publishing --> |
41 | | - <NativeLibrary Include=".\lib\rl_ball_sym\win-x86_64\rl_ball_sym.lib" Condition="'$(OS)' == 'Windows_NT'" /> |
42 | | - <NativeLibrary Include="./lib/rl_ball_sym/linux-x86_64/librl_ball_sym.a" Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Linux)))'" /> |
43 | | - <NativeLibrary Include="./lib/rl_ball_sym/mac-aarch64/librl_ball_sym.a" Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::OSX)))'" /> |
44 | | - |
| 38 | + <NativeLibrary |
| 39 | + Include=".\lib\rl_ball_sym\win-x86_64\rl_ball_sym.lib" |
| 40 | + Condition="'$(OS)' == 'Windows_NT'" |
| 41 | + /> |
| 42 | + <NativeLibrary |
| 43 | + Include="./lib/rl_ball_sym/linux-x86_64/librl_ball_sym.a" |
| 44 | + Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Linux)))'" |
| 45 | + /> |
| 46 | + <NativeLibrary |
| 47 | + Include="./lib/rl_ball_sym/mac-aarch64/librl_ball_sym.a" |
| 48 | + Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::OSX)))'" |
| 49 | + /> |
45 | 50 | <!-- Dynamically linked for development --> |
46 | | - <ContentWithTargetPath Include=".\lib\rl_ball_sym\win-x86_64\rl_ball_sym.dll" Condition="'$(OS)' == 'Windows_NT'"> |
| 51 | + <ContentWithTargetPath |
| 52 | + Include=".\lib\rl_ball_sym\win-x86_64\rl_ball_sym.dll" |
| 53 | + Condition="'$(OS)' == 'Windows_NT'" |
| 54 | + > |
47 | 55 | <CopyToPublishDirectory>Never</CopyToPublishDirectory> |
48 | 56 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
49 | 57 | <TargetPath>rl_ball_sym.dll</TargetPath> |
50 | 58 | </ContentWithTargetPath> |
51 | | - |
52 | | - <ContentWithTargetPath Include="./lib/rl_ball_sym/linux-x86_64/librl_ball_sym.so" Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Linux)))'"> |
| 59 | + <ContentWithTargetPath |
| 60 | + Include="./lib/rl_ball_sym/linux-x86_64/librl_ball_sym.so" |
| 61 | + Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Linux)))'" |
| 62 | + > |
53 | 63 | <CopyToPublishDirectory>Never</CopyToPublishDirectory> |
54 | 64 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
55 | 65 | <TargetPath>rl_ball_sym.so</TargetPath> |
56 | 66 | </ContentWithTargetPath> |
57 | | - |
58 | | - <ContentWithTargetPath Include="./lib/rl_ball_sym/mac-aarch64/librl_ball_sym.dylib" Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::OSX)))'"> |
59 | | - <CopyToPublishDirectory>Never</CopyToPublishDirectory> |
60 | | - <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
61 | | - <TargetPath>rl_ball_sym.dylib</TargetPath> |
| 67 | + <ContentWithTargetPath |
| 68 | + Include="./lib/rl_ball_sym/mac-aarch64/librl_ball_sym.dylib" |
| 69 | + Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::OSX)))'" |
| 70 | + > |
| 71 | + <CopyToPublishDirectory>Never</CopyToPublishDirectory> |
| 72 | + <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
| 73 | + <TargetPath>rl_ball_sym.dylib</TargetPath> |
62 | 74 | </ContentWithTargetPath> |
63 | 75 | </ItemGroup> |
64 | | - |
65 | | - <Target Name="GenerateFlatBuffersWindows" BeforeTargets="PreBuildEvent" Condition=" '$(OS)' == 'Windows_NT' "> |
| 76 | + <Target |
| 77 | + Name="GenerateFlatBuffersWindows" |
| 78 | + BeforeTargets="PreBuildEvent" |
| 79 | + Condition=" '$(OS)' == 'Windows_NT' " |
| 80 | + > |
66 | 81 | <Exec Command="call ../generate-flatbuffers.bat" /> |
67 | 82 | </Target> |
68 | | - |
69 | | - <Target Name="GenerateFlatBuffersLinux" BeforeTargets="PreBuildEvent" Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Linux)))'"> |
| 83 | + <Target |
| 84 | + Name="GenerateFlatBuffersLinux" |
| 85 | + BeforeTargets="PreBuildEvent" |
| 86 | + Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Linux)))'" |
| 87 | + > |
70 | 88 | <Exec Command="../generate-flatbuffers.sh" /> |
71 | 89 | </Target> |
72 | | - |
73 | 90 | <ItemGroup> |
74 | 91 | <Compile Include="..\FlatBuffer\RLBot.cs" /> |
75 | 92 | </ItemGroup> |
76 | | - |
77 | 93 | <ItemGroup> |
78 | 94 | <Reference Include="Bridge"> |
79 | 95 | <HintPath>lib\Bridge.dll</HintPath> |
80 | 96 | </Reference> |
81 | 97 | </ItemGroup> |
82 | | - |
83 | 98 | </Project> |
0 commit comments