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

  <PropertyGroup>
    <RootNamespace>SDL</RootNamespace>
    <TargetFrameworks>net8.0;net8.0-android</TargetFrameworks>
    <SupportedOSPlatformVersion>21</SupportedOSPlatformVersion>
    <Nullable>enable</Nullable>
    <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
    <NoWarn>$(NoWarn);SYSLIB1054;CA1401</NoWarn>
    <DefineConstants>$(DefineConstants);JETBRAINS_ANNOTATIONS</DefineConstants>
  </PropertyGroup>

  <PropertyGroup Label="NuGet">
    <Authors>ppy Pty Ltd</Authors>
    <Company>ppy Pty Ltd</Company>
    <Copyright>Copyright (c) 2024 ppy Pty Ltd</Copyright>
    <Product>ppy.SDL3-CS</Product>
    <PackageId>ppy.SDL3-CS</PackageId>
    <PackageReleaseNotes>Automated release.</PackageReleaseNotes>
    <PackageLicenseExpression>MIT</PackageLicenseExpression>
    <PackageProjectUrl>https://github.com/ppy/SDL3-CS</PackageProjectUrl>
    <RepositoryUrl>https://github.com/ppy/SDL3-CS</RepositoryUrl>
  </PropertyGroup>

  <ItemGroup>
    <ProjectReference Include="..\SDL3-CS.SourceGeneration\SDL3-CS.SourceGeneration.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false"/>
  </ItemGroup>

  <ItemGroup>
    <PackageReference Include="JetBrains.Annotations" Version="2023.3.0"/>

    <PackageReference Include="libclang" Version="17.0.4">
      <PrivateAssets>all</PrivateAssets>
    </PackageReference>

    <PackageReference Include="libClangSharp" Version="17.0.4">
      <PrivateAssets>all</PrivateAssets>
    </PackageReference>
  </ItemGroup>

  <ItemGroup>
    <None Include="$(MSBuildThisFileDirectory)..\native\win-x64\SDL3.dll">
      <PackagePath>runtimes/win-x64/native</PackagePath>
      <Pack>true</Pack>
    </None>
    <None Include="$(MSBuildThisFileDirectory)..\native\win-arm64\SDL3.dll">
      <PackagePath>runtimes/win-arm64/native</PackagePath>
      <Pack>true</Pack>
    </None>
    <None Include="$(MSBuildThisFileDirectory)..\native\win-x86\SDL3.dll">
      <PackagePath>runtimes/win-x86/native</PackagePath>
      <Pack>true</Pack>
    </None>
    <None Include="$(MSBuildThisFileDirectory)..\native\osx-x64\libSDL3.dylib">
      <PackagePath>runtimes/osx-x64/native</PackagePath>
      <Pack>true</Pack>
    </None>
    <None Include="$(MSBuildThisFileDirectory)..\native\osx-arm64\libSDL3.dylib">
      <PackagePath>runtimes/osx-arm64/native</PackagePath>
      <Pack>true</Pack>
    </None>
    <None Include="$(MSBuildThisFileDirectory)..\native\linux-x64\libSDL3.so">
      <PackagePath>runtimes/linux-x64/native</PackagePath>
      <Pack>true</Pack>
    </None>
    <None Include="$(MSBuildThisFileDirectory)..\native\linux-x86\libSDL3.so">
      <PackagePath>runtimes/linux-x86/native</PackagePath>
      <Pack>true</Pack>
    </None>
    <None Include="$(MSBuildThisFileDirectory)..\native\linux-arm64\libSDL3.so">
      <PackagePath>runtimes/linux-arm64/native</PackagePath>
      <Pack>true</Pack>
    </None>
    <None Include="$(MSBuildThisFileDirectory)..\native\linux-arm\libSDL3.so">
      <PackagePath>runtimes/linux-arm/native</PackagePath>
      <Pack>true</Pack>
    </None>
    <None Include="$(MSBuildThisFileDirectory)..\native\ios\**\*">
      <PackagePath>runtimes/ios/native</PackagePath>
      <Pack>true</Pack>
    </None>
    <None Include="$(MSBuildThisFileDirectory)..\native\android\armeabi-v7a\libSDL3.so">
      <PackagePath>runtimes/android-arm/native</PackagePath>
      <Pack>true</Pack>
    </None>
    <None Include="$(MSBuildThisFileDirectory)..\native\android\arm64-v8a\libSDL3.so">
      <PackagePath>runtimes/android-arm64/native</PackagePath>
      <Pack>true</Pack>
    </None>
    <None Include="$(MSBuildThisFileDirectory)..\native\android\x86_64\libSDL3.so">
      <PackagePath>runtimes/android-x64/native</PackagePath>
      <Pack>true</Pack>
    </None>
    <None Include="$(MSBuildThisFileDirectory)..\native\android\x86\libSDL3.so">
      <PackagePath>runtimes/android-x86/native</PackagePath>
      <Pack>true</Pack>
    </None>
    <EmbeddedJar Include="Jars\SDL3AndroidBridge.jar" />
  </ItemGroup>

</Project>
