123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 |
- <?xml version="1.0" encoding="utf-8"?>
- <!-- Copyright (c) 2009-2017 ZeroC, Inc. All rights reserved. -->
- <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <!-- This file is imported when using Ice 3.6.0 with C++ projects -->
- <!-- If using a source distribution try to locate the matching third part distribution-->
- <PropertyGroup Condition="$(IceSourceHome) != '' And $(THIRDPARTY_HOME) == ''">
- <IceThirdPartyHome>$([MSBuild]::GetRegistryValue("HKEY_LOCAL_MACHINE\SOFTWARE\ZeroC\Ice $(IceVersion) Third Party Packages", "InstallDir"))</IceThirdPartyHome>
- </PropertyGroup>
- <PropertyGroup Condition="$(IceSourceHome) != '' And $(THIRDPARTY_HOME) != ''">
- <IceThirdPartyHome>$(THIRDPARTY_HOME)</IceThirdPartyHome>
- </PropertyGroup>
- <!-- platform toolset suffix -->
- <PropertyGroup Condition="'$(Platform)' != 'Win32'">
- <IcePlatformSuffix>$(Platform)\</IcePlatformSuffix>
- </PropertyGroup>
- <PropertyGroup Condition="'$(PlatformToolset)' == 'v110'">
- <IceToolsetSuffix>vc110\</IceToolsetSuffix>
- </PropertyGroup>
- <PropertyGroup Condition="'$(PlatformToolset)' == 'v140'">
- <IceToolsetSuffix>vc140\</IceToolsetSuffix>
- </PropertyGroup>
- <PropertyGroup Condition="'$(IceThirdPartyHome)' != ''">
- <IceThirdPartyLib>$(IceThirdPartyHome)\lib\$(IceToolsetSuffix)$(IcePlatformSuffix)</IceThirdPartyLib>
- <IceThirdPartyBin>$(IceThirdPartyHome)\bin\$(IceToolsetSuffix)$(IcePlatformSuffix)</IceThirdPartyBin>
- </PropertyGroup>
- <Choose>
- <!-- Windows store application settings -->
- <When Condition="'$(ApplicationType)' == 'Windows Store'">
- <!-- Set Include, Library and SDK search paths for the given platform and configuration -->
- <PropertyGroup Condition="'$(TargetPlatformIdentifier)' == 'Windows'">
- <IceSDKPrefix>8.1</IceSDKPrefix>
- </PropertyGroup>
- <PropertyGroup Condition="'$(TargetPlatformIdentifier)' == 'UAP'">
- <IceSDKPrefix>10</IceSDKPrefix>
- </PropertyGroup>
- <PropertyGroup Condition="!Exists('$(IceSourceHome)')">
- <IceSDKDirectoryRoot>$(IceHome)\SDKs\</IceSDKDirectoryRoot>
- </PropertyGroup>
- <PropertyGroup Condition="Exists('$(IceSourceHome)')">
- <IceSDKDirectoryRoot>$(IceHome)\cpp\SDKs\$(IceSDKPrefix)\</IceSDKDirectoryRoot>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)' == 'Debug'">
- <ConfigurationPrefix>Debug</ConfigurationPrefix>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)' == 'Release'">
- <ConfigurationPrefix>Retail</ConfigurationPrefix>
- </PropertyGroup>
- <!-- Set Include, Library and SDK search paths for the given platform and configuration -->
- <PropertyGroup>
- <IceExtensionSDKsDirectory>$(IceSDKDirectoryRoot)\$(TargetPlatformIdentifier)\v$(TargetPlatformVersion)\ExtensionSDKs</IceExtensionSDKsDirectory>
- <IceSDKDirectory>$(IceExtensionSDKsDirectory)\Ice\$(IceVersionMM)</IceSDKDirectory>
- <IceInclude>$(IceSDKDirectory)\Designtime\CommonConfiguration\Neutral\include</IceInclude>
- <IceLib>$(IceSDKDirectory)\Designtime\$(ConfigurationPrefix)\$(PlatformTarget)</IceLib>
- <IncludePath>$(IceInclude);$(IncludePath)</IncludePath>
- <LibraryPath>$(IceLib);$(LibraryPath)</LibraryPath>
- <SDKReferenceDirectoryRoot>$(IceSDKDirectoryRoot);$(SDKReferenceDirectoryRoot);$(ExtensionSDKDirectoryRoot)</SDKReferenceDirectoryRoot>
- </PropertyGroup>
- <!-- Add a reference to the Ice SDK -->
- <ItemGroup>
- <SDKReference Include="Ice, Version=$(IceVersionMM)"/>
- </ItemGroup>
- </When>
- <!-- Windows C++ application settings-->
- <Otherwise>
- <!-- Ice binary distribution -->
- <PropertyGroup Condition="!Exists('$(IceSourceHome)')">
- <IceLib>$(IceHome)\lib\$(IceToolsetSuffix)$(IcePlatformSuffix)</IceLib>
- <IceBin>$(IceHome)\bin\$(IceToolsetSuffix)$(IcePlatformSuffix)</IceBin>
- <IceToolsPath>$(IceHome)\bin</IceToolsPath>
- <IceInclude>$(IceHome)\include\</IceInclude>
- </PropertyGroup>
- <!-- Source distributions library, binary and include paths -->
- <PropertyGroup Condition="Exists('$(IceSourceHome)')">
- <IceInclude>$(IceHome)\cpp\include\</IceInclude>
- <IceBin>$(IceHome)\cpp\bin\</IceBin>
- <IceToolsPath>$(IceHome)\cpp\bin</IceToolsPath>
- <IceLib>$(IceHome)\cpp\lib\</IceLib>
- </PropertyGroup>
- <!-- Preprend our settings to C++ configuration settings -->
- <PropertyGroup>
- <IncludePath>$(IceInclude);$(IncludePath)</IncludePath>
- <LibraryPath>$(IceLib);$(LibraryPath)</LibraryPath>
- </PropertyGroup>
- <!-- Setup build macros -->
- <ItemGroup>
- <BuildMacro Include="IceInclude">
- <Value>$(IceInclude)</Value>
- <EnvironmentVariable>true</EnvironmentVariable>
- </BuildMacro>
- <BuildMacro Include="IceLib">
- <Value>$(IceLib)</Value>
- <EnvironmentVariable>true</EnvironmentVariable>
- </BuildMacro>
- <BuildMacro Include="IceBin">
- <Value>$(IceBin)</Value>
- <EnvironmentVariable>true</EnvironmentVariable>
- </BuildMacro>
- </ItemGroup>
- </Otherwise>
- </Choose>
- <!-- Debugger environment settings -->
- <PropertyGroup Condition="$(IceThirdPartyHome) != ''">
- <Path>$(IceThirdPartyBin);$(Path)</Path>
- </PropertyGroup>
- <PropertyGroup>
- <Path>$(IceBin);$(Path)</Path>
- </PropertyGroup>
- <PropertyGroup>
- <IceToolsPath Condition="'$(IceToolsPath)' == '' and Exists('$(IceHome)\bin')">$(IceHome)\bin</IceToolsPath>
- <IceToolsBin Condition="'$(IceToolsBin)' == ''">$(IceToolsPath)</IceToolsBin>
- </PropertyGroup>
- </Project>
|