| 1 |
<Project Sdk="Microsoft.NET.Sdk"> |
| 2 |
|
| 3 |
<PropertyGroup> |
| 4 |
<TargetFramework>net8.0</TargetFramework> |
| 5 |
<ImplicitUsings>enable</ImplicitUsings> |
| 6 |
<Nullable>enable</Nullable> |
| 7 |
<OutputType>WinExe</OutputType> |
| 8 |
<StartupObject>FrankenDrift.GlkRunner.Gargoyle.GarGlkRunner</StartupObject> |
| 9 |
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> |
| 10 |
</PropertyGroup> |
| 11 |
|
| 12 |
<ItemGroup> |
| 13 |
<ProjectReference Include="..\FrankenDrift.GlkRunner\FrankenDrift.GlkRunner.csproj" /> |
| 14 |
</ItemGroup> |
| 15 |
|
| 16 |
<PropertyGroup Condition="'$(FdAotEnabled)' != 'false'"> |
| 17 |
<PublishAot>true</PublishAot> |
| 18 |
<TrimmerSingleWarn>false</TrimmerSingleWarn> |
| 19 |
</PropertyGroup> |
| 20 |
|
| 21 |
<PropertyGroup Condition="'$(GarglkMode)' == '' And '$(FdAotEnabled)' != 'false'"> |
| 22 |
<GarglkMode>runtime</GarglkMode> |
| 23 |
</PropertyGroup> |
| 24 |
|
| 25 |
<PropertyGroup Condition="'$(GarglkMode)' == 'dynamic' Or '$(GarglkMode)' == 'static'"> |
| 26 |
<DefineConstants>GarglkStatic</DefineConstants> |
| 27 |
</PropertyGroup> |
| 28 |
|
| 29 |
<ItemGroup Condition="$(RuntimeIdentifier.StartsWith('win')) And ('$(GarglkMode)' == 'dynamic' Or '$(GarglkMode)' == 'static')"> |
| 30 |
<DirectPInvoke Include="garglk" /> |
| 31 |
<NativeLibrary Include="garglk.lib" /> |
| 32 |
</ItemGroup> |
| 33 |
|
| 34 |
<ItemGroup Condition="$(RuntimeIdentifier.StartsWith('osx')) And '$(GarglkMode)' == 'dynamic'"> |
| 35 |
<DirectPInvoke Include="garglk" /> |
| 36 |
<NativeLibrary Include="libgarglk.dylib" /> |
| 37 |
</ItemGroup> |
| 38 |
|
| 39 |
<ItemGroup Condition="$(RuntimeIdentifier.StartsWith('linux')) And '$(GarglkMode)' == 'dynamic'"> |
| 40 |
<DirectPInvoke Include="garglk" /> |
| 41 |
<NativeLibrary Include="libgarglk.so" /> |
| 42 |
</ItemGroup> |
| 43 |
|
| 44 |
<ItemGroup Condition="($(RuntimeIdentifier.StartsWith('osx')) Or $(RuntimeIdentifier.StartsWith('linux'))) And '$(GarglkMode)' == 'static'"> |
| 45 |
<DirectPInvoke Include="garglk" /> |
| 46 |
<NativeLibrary Include="libgarglk.a" /> <!-- for static linking, specify libgarglk's dependencies here --> |
| 47 |
</ItemGroup> |
| 48 |
|
| 49 |
</Project> |