<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
    <Target Name="Runtime ID" AfterTargets="Build">
        <Message Text="Runtime ID: $(RuntimeIdentifier)" Importance="high"/>
    </Target>

    <ItemGroup Condition="$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Windows)))">
        <Libs Include="..\Native\x64\**\*.*"/>
    </ItemGroup>
    <ItemGroup Condition="$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Linux)))">
        <Libs Include="..\Native\lib64\**\*.*"/>
    </ItemGroup>
    <ItemGroup Condition="$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::OSX)))">
        <Libs Include="..\Native\osx\**\*.*"/>
    </ItemGroup>

    <Target Name="CopyLibs" AfterTargets="Build">
        <Copy SourceFiles="@(Libs)" DestinationFolder="$(OutDir)" SkipUnchangedFiles="true" OverwriteReadOnlyFiles="true"/>
    </Target>

</Project>
