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

  <PropertyGroup>
    <TargetFramework>netcoreapp2.1</TargetFramework>
    <RuntimeIdentifiers>win-x64;osx-x64;linux-x64</RuntimeIdentifiers>
    <OutputType>Exe</OutputType>
    <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
    <Configurations>Debug;Release;Profile Debug;Profile Release</Configurations>
  </PropertyGroup>

  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Profile Release|AnyCPU'">
    <DefineConstants>TRACE;USE_PROFILING</DefineConstants>
    <Optimize>true</Optimize>
  </PropertyGroup>

  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Profile Debug|AnyCPU'">
    <DefineConstants>TRACE;USE_PROFILING</DefineConstants>
    <Optimize>false</Optimize>
  </PropertyGroup>

  <ItemGroup>
    <EmbeddedResource Include="Ui\AboutWindow.glade" />
    <EmbeddedResource Include="Ui\assets\ryujinxNCAIcon.png" />
    <EmbeddedResource Include="Ui\assets\ryujinxNROIcon.png" />
    <EmbeddedResource Include="Ui\assets\ryujinxNSOIcon.png" />
    <EmbeddedResource Include="Ui\assets\ryujinxNSPIcon.png" />
    <EmbeddedResource Include="Ui\assets\ryujinxXCIIcon.png" />
    <EmbeddedResource Include="Ui\assets\DiscordLogo.png" />
    <EmbeddedResource Include="Ui\assets\GitHubLogo.png" />
    <EmbeddedResource Include="Ui\assets\JoyCon.png" />
    <EmbeddedResource Include="Ui\assets\PatreonLogo.png" />
    <EmbeddedResource Include="Ui\assets\ryujinxIcon.png" />
    <EmbeddedResource Include="Ui\assets\TwitterLogo.png" />
    <EmbeddedResource Include="Ui\MainWindow.glade" />
    <EmbeddedResource Include="Ui\SwitchSettings.glade" />
  </ItemGroup>

  <ItemGroup>
    <PackageReference Include="DiscordRichPresence" Version="1.0.108" />
    <PackageReference Include="GtkSharp" Version="3.22.24.37" />
    <PackageReference Include="GtkSharp.Dependencies" Version="1.0.1" />
    <PackageReference Include="JsonPrettyPrinter" Version="1.0.1.1" />
    <PackageReference Include="OpenTK.NetStandard" Version="1.0.4" />
  </ItemGroup>

  <ItemGroup>
    <ProjectReference Include="..\Ryujinx.Audio\Ryujinx.Audio.csproj" />
    <ProjectReference Include="..\Ryujinx.Common\Ryujinx.Common.csproj" />
    <ProjectReference Include="..\Ryujinx.Graphics\Ryujinx.Graphics.csproj" />
    <ProjectReference Include="..\Ryujinx.HLE\Ryujinx.HLE.csproj" />
    <ProjectReference Include="..\Ryujinx.Profiler\Ryujinx.Profiler.csproj" />
    <ProjectReference Include="..\ARMeilleure\ARMeilleure.csproj" />
  </ItemGroup>

  <ItemGroup>
    <None Update="Config.json">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </None>
    <None Update="Theme.css">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </None>
    <None Update="RPsupported.dat">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </None>
  </ItemGroup>

</Project>
