summaryrefslogtreecommitdiff
path: root/php/msbuild/ice.tests.props
blob: 1c575363c45f7c0dd68d5ece8ff7a1104a8fe46a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <Import Project="$(MSBuildThisFileDirectory)..\..\config\icebuilder.props" />
  <Import Project="$(MSBuildThisFileDirectory)packages\zeroc.ice.php.$(IceJSONVersion)\build\native\zeroc.ice.php.props" Condition="Exists('$(MSBuildThisFileDirectory)packages\zeroc.ice.php.$(IceJSONVersion)\build\native\zeroc.ice.php.props') and '$(UseBinDist)' == 'yes'" />
  <PropertyGroup Condition="'$(UseBinDist)' != 'yes'">
    <IceHome>$(MSBuildThisFileDirectory)..\..</IceHome>
  </PropertyGroup>
  <PropertyGroup Label="IceBuilder">
    <IceBuilderOutputDir>..</IceBuilderOutputDir>
  </PropertyGroup>
  <PropertyGroup Condition="'$(PhpUseNamespaces)' == 'no'">
    <IceBuilderAdditionalOptions>--no-namespace</IceBuilderAdditionalOptions>
  </PropertyGroup>
  <PropertyGroup>
    <IceBuilderInstallDir>$([MSBuild]::GetRegistryValue('HKEY_CURRENT_USER\SOFTWARE\ZeroC\IceBuilder', 'InstallDir.$(VisualStudioVersion)'))</IceBuilderInstallDir>
    <IceBuilderPhpProps>$(IceBuilderInstallDir)\Resources\IceBuilder.Php.props</IceBuilderPhpProps>
    <IceBuilderPhpTargets>$(IceBuilderInstallDir)\Resources\IceBuilder.Php.targets</IceBuilderPhpTargets>
    <IceToolsPath Condition="'$(ICE_BIN_DIST)' == 'cpp'">$(MSBuildThisFileDirectory)/packages/zeroc.ice.v140.3.7.2/tools</IceToolsPath>
  </PropertyGroup>
  <Target Name="Build"/>
  <Target Name="Clean"/>
  <Target Name="EnsureIceBuilderImports" BeforeTargets="Build">
    <PropertyGroup>
      <ErrorText>This project requires the Ice Builder for Visual Studio extension. Use "Tools &amp;gt; Extensions and Updates" to install it. For more information, see https://visualstudiogallery.msdn.microsoft.com/1a64e701-63f2-4740-8004-290e6c682ce0.</ErrorText>
    </PropertyGroup>
    <Error Condition="!Exists('$(IceBuilderPhpProps)')" Text="$(ErrorText)" />
  </Target>
  <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="Build" Condition="'$(UseBinDist)' == 'yes'">
    <PropertyGroup>
      <ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them.  For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
    </PropertyGroup>
    <Error Condition="!Exists('$(MSBuildThisFileDirectory)..\..\config\icebuilder.props')" Text="$([System.String]::Format('$(ErrorText)', '$(MSBuildThisFileDirectory)..\..\config\icebuilder.props'))" />
  </Target>
</Project>