Advertisement
Guest User

Untitled

a guest
Apr 25th, 2017
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.87 KB | None | 0 0
  1. <!--
  2. ***********************************************************************************************
  3. Microsoft.Cpp.Platform.targets
  4.  
  5. WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
  6. created a backup copy. Incorrect changes to this file will make it
  7. impossible to load or build your projects from the command-line or the IDE.
  8.  
  9. This file defines the steps/targets required to build Visual C++ projects
  10. specifically on x86 platforms.
  11.  
  12. Copyright (C) Microsoft Corporation. All rights reserved.
  13. ***********************************************************************************************
  14. -->
  15.  
  16. <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  17.  
  18. <PropertyGroup>
  19. <!-- VCMessages could only print messages from the active task dll. Since the new message is only present in the current task dll,
  20. setting MinSupportedVCTargetsVersion prevents the redirection which will keep the task to current. -->
  21. <_Error64bitToolsNotInstalled Condition="'$(_Error64bitToolsNotInstalled)' == '' and '$(_CheckDev11ToolsInstalled)' == 'true' and '$(DefaultToolArchitecture)' == 'Native64bit'
  22. and (('$(PlatformToolset)' == 'v110' and '$(_IgnoreInstalledPlatformToolset_v110)' != 'true') or ('$(PlatformToolset)' == 'v110_xp' and '$(_IgnoreInstalledPlatformToolset_v110_xp)' != 'true'))">true</_Error64bitToolsNotInstalled>
  23. <MinSupportedVCTargetsVersion Condition="'$(_Error64bitToolsNotInstalled)' == 'true'">v120</MinSupportedVCTargetsVersion>
  24. </PropertyGroup>
  25.  
  26. <!-- Import Before -->
  27. <Import Condition="Exists('$(_PlatformFolder)ImportBefore')" Project="$(_PlatformFolder)ImportBefore\*.targets"/>
  28. <!-- Import platform toolset file if found in this version -->
  29. <Import Condition="'$(_ToolsetFound)' == 'true'" Project="$(_ToolsetTargetsPath)" />
  30. <!-- If _ToolsetFound still not found, then fallback to current Toolset so the project can still load. -->
  31. <Import Condition="'$(_ToolsetFound)' != 'true'" Project="$(_PlatformFolder)PlatformToolsets\$(DefaultPlatformToolset)\Toolset.targets" />
  32.  
  33. <PropertyGroup>
  34. <PrepareForBuildDependsOn>PlatformPrepareForBuild;$(PrepareForBuildDependsOn)</PrepareForBuildDependsOn>
  35. </PropertyGroup>
  36.  
  37. <Target Name="PlatformPrepareForBuild" DependsOnTargets="$(PlatformPrepareForBuildDependsOn)" Condition="'$(DesignTimeBuild)'!='true'">
  38. <PropertyGroup>
  39. <ConfigurationPlatformExists Condition="'%(ProjectConfiguration.Identity)' == '$(Configuration)|$(Platform)'">true</ConfigurationPlatformExists>
  40. <_CurrentPlatformToolsetShortName Condition="'$(PlatformToolset)' == 'v110'">$(_PlatformToolsetShortNameFor_v110)</_CurrentPlatformToolsetShortName>
  41. <_CurrentPlatformToolsetShortName Condition="'$(PlatformToolset)' == 'v110_xp'">$(_PlatformToolsetShortNameFor_v110_xp)</_CurrentPlatformToolsetShortName>
  42. <_CurrentPlatformToolsetShortName Condition="'$(PlatformToolset)' == 'v100'">$(_PlatformToolsetShortNameFor_v100)</_CurrentPlatformToolsetShortName>
  43. <_CurrentPlatformToolsetShortName Condition="'$(PlatformToolset)' == 'v90'">$(_PlatformToolsetShortNameFor_v90)</_CurrentPlatformToolsetShortName>
  44. <_CurrentPlatformToolsetShortName Condition="'$(_CurrentPlatformToolsetShortName)' == ''">$(PlatformToolset)</_CurrentPlatformToolsetShortName>
  45. </PropertyGroup>
  46.  
  47. <!--
  48. Error out if the toolset is from Express and the environment is 64bit tools and down targetting.
  49. MSB8032: The Platform or PlatformToolset is not available from a 64bit environment. Consider building from 32bit environment instead.
  50. -->
  51. <VCMessage Code="MSB8032" Type="Error" Condition="'$(_Error64bitToolsNotInstalled)' == 'true'" />
  52.  
  53. <!-- Error out if toolset does not exists in older versions of Visual Studio -->
  54. <VCMessage Code="MSB8020" Type="Error" Arguments="$(_PlatformToolsetShortNameFor_v110);$(PlatformToolset)" Condition="'$(DesignTimeBuild)'!='true' and '$(_ToolsetFound)' != 'true' and '$(PlatformToolset)' == 'v110'" />
  55. <VCMessage Code="MSB8020" Type="Error" Arguments="$(_PlatformToolsetShortNameFor_v100);$(PlatformToolset)" Condition="'$(DesignTimeBuild)'!='true' and '$(_ToolsetFound)' != 'true' and '$(PlatformToolset)' == 'v100'" />
  56. <VCMessage Code="MSB8020" Type="Error" Arguments="$(_PlatformToolsetShortNameFor_v90);$(PlatformToolset)" Condition="'$(DesignTimeBuild)'!='true' and '$(_ToolsetFound)' != 'true' and '$(PlatformToolset)' == 'v90'" />
  57. <VCMessage Code="MSB8020" Type="Error" Arguments="$(PlatformToolset);$(PlatformToolset)" Condition="'$(DesignTimeBuild)'!='true' and '$(_ToolsetFound)' != 'true' and '$(PlatformToolset)' != 'v90' and '$(PlatformToolset)' != 'v100' and '$(PlatformToolset)' != 'v110'" />
  58. </Target>
  59.  
  60. <!-- Import After -->
  61. <Import Condition="'$(_ToolsetFound)' == 'true' and Exists('$(_PlatformFolder)ImportAfter')" Project="$(_PlatformFolder)ImportAfter\*.targets"/>
  62. </Project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement