﻿<!--
***********************************************************************************************
Microsoft.Cpp.Props

WARNING:  DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
          created a backup copy.  Incorrect changes to this file will make it
          impossible to load or build your projects from the command-line or the IDE.

Copyright (C) Microsoft Corporation. All rights reserved.
***********************************************************************************************
-->

<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <PlatformPropsFound Condition="Exists('$(_PlatformFolder)\Platform.props')">true</PlatformPropsFound>
    <_ToolsetPropsPath>$(_PlatformFolder)PlatformToolsets\$(PlatformToolset)\Toolset.props</_ToolsetPropsPath>
    <ToolsetPropsFound Condition="Exists('$(_ToolsetPropsPath)')">true</ToolsetPropsFound>
    <PlatformTargetsFound Condition="Exists('$(_PlatformFolder)\Platform.targets')">true</PlatformTargetsFound>
    <_ToolsetTargetsPath>$(_PlatformFolder)PlatformToolsets\$(PlatformToolset)\Toolset.targets</_ToolsetTargetsPath>
    <ToolsetTargetsFound Condition="Exists('$(_ToolsetTargetsPath)')">true</ToolsetTargetsFound>
    <_ToolsetFound Condition="'$(PlatformPropsFound)' == 'true' and '$(ToolsetPropsFound)' == 'true'
                              and '$(PlatformTargetsFound)' and '$(ToolsetTargetsFound)'">true</_ToolsetFound>
    <VCTargetsPathEffective>$(VCTargetsPath)</VCTargetsPathEffective>
  </PropertyGroup>

  <Import Condition="'$(_ToolsetFound)' == 'true'" Project="$(_PlatformFolder)\Platform.props" />
  <!-- If the platform or toolset props not found then try to redirect to older versions of VS -->
  <Import Condition="'$(_ToolsetFound)' != 'true' and '$(MinSupportedVCTargetsVersion)' != 'v150'" Project="$(VCTargetsPath)\Microsoft.Cpp.Redirect.props" />
  
  <!-- Import Makefile.props -->
  <Import Condition="'$(ConfigurationType)' == 'Makefile'" Project="$(VCTargetsPathActual)\Microsoft.Makefile.props" />
</Project>
