<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!--=============================================================================================-->
<Import Project="user_rtx.internal.props" Condition=" '$(UserRtxInternalProps_Imported)' != 'true' " />
<Import Project="user_rtx.common.targets" Condition=" '$(UserRtxCommonTargets_Imported)' != 'true' " />
<!--=============================================================================================-->

<Target Name="_VerifyBuildParameters_">
   <Error Condition=" '$(Platform)' == '' "
          Text="Project property was not specified: &quot;Platform&quot;." />
   <Error Condition=" '$(Configuration)' == '' "
          Text="Project property was not specified: &quot;Configuration&quot;." />
</Target>

<!--=============================================================================================-->

<Target Name="_CleanAll_">
   <RemoveDir
      Directories="@(_CleanAll_Folders_)" />
   <Delete
      Files="@(_CleanAll_Files_)" />
</Target>

<Target Name="_CleanIntermediate_">
   <RemoveDir
      Directories="@(_CleanIntermediate_Folders_)" />
   <Delete
      Files="@(_CleanIntermediate_Files_)" />
</Target>

<Target
   Name="_CleanAssemblyReferences_"
   Condition=" '@(_CleanAssemblyReferences_Files_)' != '' ">
   <Message
      Text="* Removing files from assembly reference folder ..."
      Importance="high" />
   <Delete
      Files="@(_CleanAssemblyReferences_Files_)" />
</Target>

<Target
   Name="_CleanTargetFilesInDestination_"
   Condition=" '@(_CleanTargetFilesInDestination_Files_)' != '' ">
   <Message
      Text="* Removing targer files from public destination ..."
      Importance="high" />
   <Delete
      Files="@(_CleanTargetFilesInDestination_Files_)" />
</Target>

<!--=============================================================================================-->

<Target
   Name="_CopyFilesToAssemblyReferenceFolder_"
   Condition=" '$(_AssemblyReferenceFolder_)' != '' AND
               '@(_CopyFilesToAssemblyReferenceFolder_Files_)' != '' ">
   <Error Condition=" !Exists( '$(_AssemblyReferenceFolder_)' ) "
          Text="Assembly reference folder not found: &quot;$(_AssemblyReferenceFolder_)&quot;." />
   <Message
      Text="* Copying output files into assembly reference folder ..."
      Importance="high" />
   <Copy
      SourceFiles='@(_CopyFilesToAssemblyReferenceFolder_Files_)'
      DestinationFolder='$(_AssemblyReferenceFolder_)' />
</Target>

<Target
   Name="_CopyFilesToDestination_"
   Condition=" '$(_DestinationOutputFolder_)' != '' AND
               '@(_CopyFilesToDestination_Files_)' != '' AND
               Exists( '$(_DestinationOutputFolder_)' ) ">
   <Message
      Text="* Copying files to public destination ..."
      Importance="high" />
   <Copy
      SourceFiles='@(_CopyFilesToDestination_Files_)'
      DestinationFolder='$(_DestinationOutputFolder_)' />
</Target>

<Target
   Name="_CopyFilesToMetaOutputFolder_"
   Condition=" '$(_MetaOutputFolder_)' != '' AND
               '@(_CopyFilesToMetaOutputFolder_Files_)' != '' ">
   <Message
      Text="* Copying files to meta output folder ..."
      Importance="high" />
   <Copy
      SourceFiles='@(_CopyFilesToMetaOutputFolder_Files_)'
      DestinationFolder='$(_MetaOutputFolder_)' />
</Target>

<!--=============================================================================================-->

<Target
   Name="_GenerateFile_PropertiesInfo_CS_"
   Condition=" '$(_OutputFile_PropertiesInfo_CS_)' != '' ">
   <Message
      Text="* Generating file: &quot;$(_OutputFile_PropertiesInfo_CS_)&quot; ..."
      Importance="high" />
   <WriteLinesToFile
      File="$(_OutputFile_PropertiesInfo_CS_)"
      Lines="@(_PropertiesInfo_CS_->'%(Text)')"
      Encoding="UTF-8"
      Overwrite="True" />
</Target>

<!--=============================================================================================-->
<PropertyGroup>
   <UserRtxInternalTargets_Imported>true</UserRtxInternalTargets_Imported>
</PropertyGroup>
<!--=============================================================================================-->
</Project>
