-
Notifications
You must be signed in to change notification settings - Fork 0
/
grpc_release.props
31 lines (31 loc) · 1.36 KB
/
grpc_release.props
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">
<ImportGroup Label="PropertySheets" />
<PropertyGroup Label="UserMacros">
<GRPC_HOME>C:\grpc-windows\grpc</GRPC_HOME>
</PropertyGroup>
<PropertyGroup>
<IncludePath>$(GRPC_HOME)\include;$(GRPC_HOME)\third_party\protobuf\src;$(IncludePath)</IncludePath>
<LibraryPath>$(GRPC_HOME)\bin\protobuf\release;$(GRPC_HOME)\bin\grpc\release;$(LibraryPath)</LibraryPath>
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
<PreprocessorDefinitions>_WIN32_WINNT=0x600;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
</ClCompile>
<Link>
<AdditionalDependencies>libprotobuf.lib;gpr.lib;grpc.lib;grpc++.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
<PreBuildEvent>
<Command>for %%f in (*.proto) do (
$(GRPC_HOME)\bin\protobuf\release\protoc.exe -I . --grpc_out=. --plugin=protoc-gen-grpc=$(GRPC_HOME)\bin\grpc_protoc_plugins\grpc_cpp_plugin.exe %%f
$(GRPC_HOME)\bin\protobuf\release\protoc.exe -I . --cpp_out=. %%f
)</Command>
</PreBuildEvent>
</ItemDefinitionGroup>
<ItemGroup>
<BuildMacro Include="GRPC_HOME">
<Value>$(GRPC_HOME)</Value>
</BuildMacro>
</ItemGroup>
</Project>