Ice.3.6.0.Cpp.props 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright (c) 2009-2017 ZeroC, Inc. All rights reserved. -->
  3. <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  4. <!-- This file is imported when using Ice 3.6.0 with C++ projects -->
  5. <!-- If using a source distribution try to locate the matching third part distribution-->
  6. <PropertyGroup Condition="$(IceSourceHome) != '' And $(THIRDPARTY_HOME) == ''">
  7. <IceThirdPartyHome>$([MSBuild]::GetRegistryValue("HKEY_LOCAL_MACHINE\SOFTWARE\ZeroC\Ice $(IceVersion) Third Party Packages", "InstallDir"))</IceThirdPartyHome>
  8. </PropertyGroup>
  9. <PropertyGroup Condition="$(IceSourceHome) != '' And $(THIRDPARTY_HOME) != ''">
  10. <IceThirdPartyHome>$(THIRDPARTY_HOME)</IceThirdPartyHome>
  11. </PropertyGroup>
  12. <!-- platform toolset suffix -->
  13. <PropertyGroup Condition="'$(Platform)' != 'Win32'">
  14. <IcePlatformSuffix>$(Platform)\</IcePlatformSuffix>
  15. </PropertyGroup>
  16. <PropertyGroup Condition="'$(PlatformToolset)' == 'v110'">
  17. <IceToolsetSuffix>vc110\</IceToolsetSuffix>
  18. </PropertyGroup>
  19. <PropertyGroup Condition="'$(PlatformToolset)' == 'v140'">
  20. <IceToolsetSuffix>vc140\</IceToolsetSuffix>
  21. </PropertyGroup>
  22. <PropertyGroup Condition="'$(IceThirdPartyHome)' != ''">
  23. <IceThirdPartyLib>$(IceThirdPartyHome)\lib\$(IceToolsetSuffix)$(IcePlatformSuffix)</IceThirdPartyLib>
  24. <IceThirdPartyBin>$(IceThirdPartyHome)\bin\$(IceToolsetSuffix)$(IcePlatformSuffix)</IceThirdPartyBin>
  25. </PropertyGroup>
  26. <Choose>
  27. <!-- Windows store application settings -->
  28. <When Condition="'$(ApplicationType)' == 'Windows Store'">
  29. <!-- Set Include, Library and SDK search paths for the given platform and configuration -->
  30. <PropertyGroup Condition="'$(TargetPlatformIdentifier)' == 'Windows'">
  31. <IceSDKPrefix>8.1</IceSDKPrefix>
  32. </PropertyGroup>
  33. <PropertyGroup Condition="'$(TargetPlatformIdentifier)' == 'UAP'">
  34. <IceSDKPrefix>10</IceSDKPrefix>
  35. </PropertyGroup>
  36. <PropertyGroup Condition="!Exists('$(IceSourceHome)')">
  37. <IceSDKDirectoryRoot>$(IceHome)\SDKs\</IceSDKDirectoryRoot>
  38. </PropertyGroup>
  39. <PropertyGroup Condition="Exists('$(IceSourceHome)')">
  40. <IceSDKDirectoryRoot>$(IceHome)\cpp\SDKs\$(IceSDKPrefix)\</IceSDKDirectoryRoot>
  41. </PropertyGroup>
  42. <PropertyGroup Condition="'$(Configuration)' == 'Debug'">
  43. <ConfigurationPrefix>Debug</ConfigurationPrefix>
  44. </PropertyGroup>
  45. <PropertyGroup Condition="'$(Configuration)' == 'Release'">
  46. <ConfigurationPrefix>Retail</ConfigurationPrefix>
  47. </PropertyGroup>
  48. <!-- Set Include, Library and SDK search paths for the given platform and configuration -->
  49. <PropertyGroup>
  50. <IceExtensionSDKsDirectory>$(IceSDKDirectoryRoot)\$(TargetPlatformIdentifier)\v$(TargetPlatformVersion)\ExtensionSDKs</IceExtensionSDKsDirectory>
  51. <IceSDKDirectory>$(IceExtensionSDKsDirectory)\Ice\$(IceVersionMM)</IceSDKDirectory>
  52. <IceInclude>$(IceSDKDirectory)\Designtime\CommonConfiguration\Neutral\include</IceInclude>
  53. <IceLib>$(IceSDKDirectory)\Designtime\$(ConfigurationPrefix)\$(PlatformTarget)</IceLib>
  54. <IncludePath>$(IceInclude);$(IncludePath)</IncludePath>
  55. <LibraryPath>$(IceLib);$(LibraryPath)</LibraryPath>
  56. <SDKReferenceDirectoryRoot>$(IceSDKDirectoryRoot);$(SDKReferenceDirectoryRoot);$(ExtensionSDKDirectoryRoot)</SDKReferenceDirectoryRoot>
  57. </PropertyGroup>
  58. <!-- Add a reference to the Ice SDK -->
  59. <ItemGroup>
  60. <SDKReference Include="Ice, Version=$(IceVersionMM)"/>
  61. </ItemGroup>
  62. </When>
  63. <!-- Windows C++ application settings-->
  64. <Otherwise>
  65. <!-- Ice binary distribution -->
  66. <PropertyGroup Condition="!Exists('$(IceSourceHome)')">
  67. <IceLib>$(IceHome)\lib\$(IceToolsetSuffix)$(IcePlatformSuffix)</IceLib>
  68. <IceBin>$(IceHome)\bin\$(IceToolsetSuffix)$(IcePlatformSuffix)</IceBin>
  69. <IceToolsPath>$(IceHome)\bin</IceToolsPath>
  70. <IceInclude>$(IceHome)\include\</IceInclude>
  71. </PropertyGroup>
  72. <!-- Source distributions library, binary and include paths -->
  73. <PropertyGroup Condition="Exists('$(IceSourceHome)')">
  74. <IceInclude>$(IceHome)\cpp\include\</IceInclude>
  75. <IceBin>$(IceHome)\cpp\bin\</IceBin>
  76. <IceToolsPath>$(IceHome)\cpp\bin</IceToolsPath>
  77. <IceLib>$(IceHome)\cpp\lib\</IceLib>
  78. </PropertyGroup>
  79. <!-- Preprend our settings to C++ configuration settings -->
  80. <PropertyGroup>
  81. <IncludePath>$(IceInclude);$(IncludePath)</IncludePath>
  82. <LibraryPath>$(IceLib);$(LibraryPath)</LibraryPath>
  83. </PropertyGroup>
  84. <!-- Setup build macros -->
  85. <ItemGroup>
  86. <BuildMacro Include="IceInclude">
  87. <Value>$(IceInclude)</Value>
  88. <EnvironmentVariable>true</EnvironmentVariable>
  89. </BuildMacro>
  90. <BuildMacro Include="IceLib">
  91. <Value>$(IceLib)</Value>
  92. <EnvironmentVariable>true</EnvironmentVariable>
  93. </BuildMacro>
  94. <BuildMacro Include="IceBin">
  95. <Value>$(IceBin)</Value>
  96. <EnvironmentVariable>true</EnvironmentVariable>
  97. </BuildMacro>
  98. </ItemGroup>
  99. </Otherwise>
  100. </Choose>
  101. <!-- Debugger environment settings -->
  102. <PropertyGroup Condition="$(IceThirdPartyHome) != ''">
  103. <Path>$(IceThirdPartyBin);$(Path)</Path>
  104. </PropertyGroup>
  105. <PropertyGroup>
  106. <Path>$(IceBin);$(Path)</Path>
  107. </PropertyGroup>
  108. <PropertyGroup>
  109. <IceToolsPath Condition="'$(IceToolsPath)' == '' and Exists('$(IceHome)\bin')">$(IceHome)\bin</IceToolsPath>
  110. <IceToolsBin Condition="'$(IceToolsBin)' == ''">$(IceToolsPath)</IceToolsBin>
  111. </PropertyGroup>
  112. </Project>