blob: dcdab87d72f23e155d9cfe04026c006a69caa7a0 [file] [log] [blame]
<Project>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<PropertyGroup>
<AssemblyName>Org.Apache.REEF.Bridge.Client</AssemblyName>
<Description>Bridge CSharp Client for REEF.NET</Description>
<PackageTags>REEF Bridge CSharp Client</PackageTags>
</PropertyGroup>
<Import Project="..\build.DotNetApp.props" />
<ItemGroup>
<PackageReference Include="Grpc" Version="1.11.0-pre2" />
<PackageReference Include="Grpc.Tools" Version="1.11.0-pre2" />
<PackageReference Include="Google.Protobuf" Version="3.5.0.0" />
</ItemGroup>
<PropertyGroup>
<GrpcSchemaDirectory>..\..\common\proto\bridge</GrpcSchemaDirectory>
<GrpcToolsDirectory>$(PackagesDir)\grpc.tools\1.11.0-pre2\tools\windows_x64</GrpcToolsDirectory>
<GrpcToolsDirectory>$(PackagesDir)\grpc.tools\1.11.0-pre2\tools\windows_x64</GrpcToolsDirectory>
<GrpcLibraryDirectory>$(PackagesDir)\grpc.core\1.11.0-pre2\lib\net45</GrpcLibraryDirectory>
</PropertyGroup>
<!-- TODO[JIRA REEF-1888] This item group will not be needed when only .netcore is targeted. -->
<ItemGroup Condition="'$(TargetFramework)' == 'net452' Or '$(TargetFramework)' == 'net46'">
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Configuration" />
</ItemGroup>
<ItemGroup>
<Reference Include="Grpc.Core">
<HintPath>$(GRrpcLibraryDirectory)\Grpc.Core.dll</HintPath>
</Reference>
<Reference Include="Google.Protobuf">
<HintPath>$(PackagesDir)\Google.Protobuf.3.5.0\lib\net45\Google.Protobuf.dll</HintPath>
<Private>True</Private>
</Reference>
<ProjectReference Include="..\Org.Apache.REEF.Tang\Org.Apache.REEF.Tang.DotNet.csproj" />
<ProjectReference Include="..\Org.Apache.REEF.Utilities\Org.Apache.REEF.Utilities.DotNet.csproj" />
<ProjectReference Include="..\Org.Apache.REEF.Common\Org.Apache.REEF.Common.DotNet.csproj" />
<ProjectReference Include="..\Org.Apache.REEF.Driver\Org.Apache.REEF.Driver.DotNet.csproj" />
<ProjectReference Include="..\Org.Apache.REEF.Wake\Org.Apache.REEF.Wake.DotNet.csproj" />
</ItemGroup>
<Import Project="..\build.DotNet.targets" />
<Import Project="$(SolutionDir)\GrpcCodeGeneration.Targets" Condition="Exists('$(SolutionDir)\GrpcCodeGeneration.Targets')" />
<Target Name="CodeGeneration" DependsOnTargets="Restore" BeforeTargets="BeforeBuild">
<Message Text="Generating C# classes from gRPC proto files @(Compile)..." Importance="High" />
<GrpcToCSharp OUtputDirectory="$(ProjectDir)\GrpcGeneratedCode" SourceFileList="ClientProtocol.proto;DriverCommonProtocol.proto;DriverClientProtocol.proto" GrpcSchemaDirectory="$(GrpcSchemaDirectory)" GrpcBinaryDirectory="$(GrpcToolsDirectory)" />
</Target>
</Project>