<Project>
  <!-- 编完拷到 Simple3/plugins -->
  <Target Name="CopyPluginToHosts" AfterTargets="Build" Condition="'$(OutputType)' == 'Library' And '$(IsPackable)' != 'false'">
    <MakeDir Directories="$(Simple3PluginsDir)" Condition="!Exists('$(Simple3PluginsDir)')" />
    <ItemGroup>
      <_PluginCopy Include="$(TargetPath)" />
      <_PluginCopy Include="$(TargetDir)$(TargetName).pdb" Condition="Exists('$(TargetDir)$(TargetName).pdb')" />
      <_PluginCopy Include="$(TargetDir)$(TargetName).scene.json" Condition="Exists('$(TargetDir)$(TargetName).scene.json')" />
      <_PluginCopy Include="$(TargetDir)leegKeys-sdk.dll" Condition="Exists('$(TargetDir)leegKeys-sdk.dll')" />
    </ItemGroup>
    <Copy SourceFiles="@(_PluginCopy)" DestinationFolder="$(Simple3PluginsDir)" SkipUnchangedFiles="true"
          ContinueOnError="true"
          Condition="Exists('$(Simple3PluginsDir)')" />
  </Target>
</Project>
