summaryrefslogtreecommitdiff
path: root/matlab/msbuild/ice.tests.props
blob: cca8af8c427781623a7292babcc0d9ec1528ea2c (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
<?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" />

  <PropertyGroup Condition="'$(ICE_BIN_DIST)' == ''">
    <Configuration Condition="'$(Configuration)' == ''">Release</Configuration>
    <Platform Condition="'$(Platform)' == ''">x64</Platform>
    <IceHome>$(MSBuildThisFileDirectory)..\..</IceHome>
    <IceToolsDir>$(IceHome)\cpp\bin\$(Platform)\$(Configuration)</IceToolsDir>
  </PropertyGroup>

  <PropertyGroup Condition="'$(ICE_BIN_DIST)' == 'cpp'">
    <IceHome>$(MSBuildThisFileDirectory)packages\zeroc.ice.v140.$(IceJSOnVersion)</IceHome>
    <IceToolsDir>$(IceHome)\tools</IceToolsDir>
  </PropertyGroup>

  <PropertyGroup>
    <SliceDir>$(IceHome)\slice</SliceDir>
  </PropertyGroup>

  <Target Name="Build">
    <RemoveDir Directories="$(SliceOutputDir)" Condition="Exists('$(SliceOutputDir)')"/>
    <MakeDir Directories="$(SliceOutputDir)"/>
    <Exec Command="$(IceToolsDir)\slice2matlab.exe -I$(SliceDir) --output-dir $(SliceOutputDir) $(SliceArgs) %(Slice.FullPath)"/>
  </Target>

  <Target Name="Clean">
    <RemoveDir Directories="$(SliceOutputDir)" Condition="Exists('$(SliceOutputDir)')"/>
  </Target>

</Project>