aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/csharp/Grpc.Tools/build/_protobuf/Google.Protobuf.Tools.props
blob: 06ee9bcda8a633accbb8f5140d8da0c463eff1e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?xml version="1.0"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>

    <!-- Revision number of this package conventions (as if "API" version). -->
    <Protobuf_ToolingRevision>1</Protobuf_ToolingRevision>

    <!-- TODO(kkm): Remove "../" when separating packages. -->
    <Protobuf_PackagedToolsPath>$( [System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)../native/) )</Protobuf_PackagedToolsPath>
    <Protobuf_StandardImportsPath>$(Protobuf_PackagedToolsPath)include</Protobuf_StandardImportsPath>
  </PropertyGroup>

  <!-- NET SDK projects only: include proto files by default. Other project
       types are not setting or using $(EnableDefaultItems).
       Note that MSBuild evaluates all ItemGroups and their conditions in the
       final pass over the build script, so properties like EnableDefaultProtoBufItems
       here can be changed later in the project. -->
  <ItemGroup Condition=" '$(Protobuf_ProjectSupported)' == 'true' ">
    <ProtoBuf Include="**/*.proto"
              Condition=" '$(EnableDefaultItems)' == 'true' and '$(EnableDefaultProtoBufItems)' == 'true' " />
  </ItemGroup>
</Project>