diff options
Diffstat (limited to 'matlab/msbuild/ice.tests.props')
-rw-r--r-- | matlab/msbuild/ice.tests.props | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/matlab/msbuild/ice.tests.props b/matlab/msbuild/ice.tests.props new file mode 100644 index 00000000000..cca8af8c427 --- /dev/null +++ b/matlab/msbuild/ice.tests.props @@ -0,0 +1,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> |