<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <AssemblyName>EosInterface.Implementation.Linux</AssemblyName>
    <TargetFramework>net8.0</TargetFramework>
    <RootNamespace>EosInterfacePrivate</RootNamespace>
    <ImplicitUsings>false</ImplicitUsings>
    <Nullable>disable</Nullable>
    <DefineConstants>EOS_PLATFORM_LINUX</DefineConstants>
  </PropertyGroup>

  <PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
    <WarningsAsErrors>;NU1605;CS0114;CS0108;CS8597;CS8600;CS8601;CS8602;CS8603;CS8604;CS8605;CS8606;CS8607;CS8608;CS8609;CS8610;CS8611;CS8612;CS8613;CS8614;CS8615;CS8616;CS8617;CS8618;CS8619;CS8620;CS8621;CS8622;CS8624;CS8625;CS8626;CS8629;CS8631;CS8632;CS8633;CS8634;CS8638;CS8643;CS8644;CS8645;CS8653;CS8654;CS8655;CS8667;CS8669;CS8670;CS8714;CS8717;CS8765</WarningsAsErrors>
    <PlatformTarget>x64</PlatformTarget>
  </PropertyGroup>

  <PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
    <WarningsAsErrors>;NU1605;CS0114;CS0108;CS8597;CS8600;CS8601;CS8602;CS8603;CS8604;CS8605;CS8606;CS8607;CS8608;CS8609;CS8610;CS8611;CS8612;CS8613;CS8614;CS8615;CS8616;CS8617;CS8618;CS8619;CS8620;CS8621;CS8622;CS8624;CS8625;CS8626;CS8629;CS8631;CS8632;CS8633;CS8634;CS8638;CS8643;CS8644;CS8645;CS8653;CS8654;CS8655;CS8667;CS8669;CS8670;CS8714;CS8717;CS8765</WarningsAsErrors>
    <PlatformTarget>x64</PlatformTarget>
  </PropertyGroup>

  <ItemGroup>
    <Compile Remove="EOS-SDK/Source/Generated/Android/**/*" />
    <Compile Remove="EOS-SDK/Source/Generated/IOS/**/*" />
    <Compile Remove="EOS-SDK/Source/Generated/Windows/**/*" />

    <ContentWithTargetPath Include="EOS-SDK/Redist/libEOSSDK-Linux-Shipping.so">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
      <TargetPath>libEOSSDK-Linux-Shipping.so</TargetPath>
    </ContentWithTargetPath>

  </ItemGroup>

  <ItemGroup>
    <ProjectReference Include="..\..\Facepunch.Steamworks\Facepunch.Steamworks.Posix.csproj" />
    <ProjectReference Include="..\BarotraumaCore\BarotraumaCore.csproj" />
    <ProjectReference Include="..\EosInterface\EosInterface.csproj" />
  </ItemGroup>

</Project>
