aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/csharp/Grpc.Tools/build/_protobuf/Google.Protobuf.Tools.props
blob: 9f2d8bb4b5cac60413fb98c86d3fc5824ae19e54 (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
<?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 one "../" when separating packages. -->
    <!-- TODO(kkm): Do not place non-tools under tools/, use build/native/bin/. -->
    <Protobuf_PackagedToolsPath>$( [System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)../../tools) )</Protobuf_PackagedToolsPath>
    <Protobuf_StandardImportsPath>$( [System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)../native/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>