Skip to content
Snippets Groups Projects
Commit b07938fa authored by David Garcia Quintas's avatar David Garcia Quintas
Browse files

added missing initializer for global proto_serializer holder to codegen lib

parent a9d06296
No related branches found
No related tags found
No related merge requests found
...@@ -3153,6 +3153,7 @@ endif ...@@ -3153,6 +3153,7 @@ endif
   
   
LIBGRPC++_CODEGEN_LIB_SRC = \ LIBGRPC++_CODEGEN_LIB_SRC = \
include/grpc++/impl/codegen/proto_serializer.cc \
   
PUBLIC_HEADERS_CXX += \ PUBLIC_HEADERS_CXX += \
include/grpc++/impl/codegen/async_stream.h \ include/grpc++/impl/codegen/async_stream.h \
......
...@@ -748,7 +748,8 @@ libs: ...@@ -748,7 +748,8 @@ libs:
- include/grpc++/impl/codegen/sync_stream.h - include/grpc++/impl/codegen/sync_stream.h
- include/grpc++/impl/codegen/time.h - include/grpc++/impl/codegen/time.h
headers: [] headers: []
src: [] src:
- include/grpc++/impl/codegen/proto_serializer.cc
deps: deps:
- grpc_codegen_lib - grpc_codegen_lib
filegroups: filegroups:
......
/*
*
* Copyright 2016, Google Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions and the following disclaimer
* in the documentation and/or other materials provided with the
* distribution.
* * Neither the name of Google Inc. nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
// TODO(dgq): This file is part of a temporary fix to work around codegen
// issues.
//
// This whole file will be removed in the future.
#include <grpc++/impl/codegen/proto_utils.h>
grpc::ProtoSerializerInterface* grpc::g_proto_serializer = nullptr;
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
// //
// This whole file will be removed in the future. // This whole file will be removed in the future.
#include <grpc++/impl/proto_utils.h> #include <grpc++/impl/codegen/proto_utils.h>
static grpc::ProtoSerializer proto_serializer; static grpc::ProtoSerializer proto_serializer;
grpc::ProtoSerializerInterface* grpc::g_proto_serializer = &proto_serializer; grpc::ProtoSerializerInterface* grpc::g_proto_serializer = &proto_serializer;
...@@ -5110,6 +5110,7 @@ ...@@ -5110,6 +5110,7 @@
"include/grpc++/impl/codegen/config_protobuf.h", "include/grpc++/impl/codegen/config_protobuf.h",
"include/grpc++/impl/codegen/grpc_library.h", "include/grpc++/impl/codegen/grpc_library.h",
"include/grpc++/impl/codegen/method_handler_impl.h", "include/grpc++/impl/codegen/method_handler_impl.h",
"include/grpc++/impl/codegen/proto_serializer.cc",
"include/grpc++/impl/codegen/proto_utils.h", "include/grpc++/impl/codegen/proto_utils.h",
"include/grpc++/impl/codegen/rpc_method.h", "include/grpc++/impl/codegen/rpc_method.h",
"include/grpc++/impl/codegen/rpc_service_method.h", "include/grpc++/impl/codegen/rpc_service_method.h",
......
...@@ -193,7 +193,7 @@ ...@@ -193,7 +193,7 @@
<ClInclude Include="$(SolutionDir)\..\include\grpc\impl\codegen\time.h" /> <ClInclude Include="$(SolutionDir)\..\include\grpc\impl\codegen\time.h" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ClCompile Include="$(SolutionDir)\..\vsprojects\dummy.c"> <ClCompile Include="$(SolutionDir)\..\include\grpc++\impl\codegen\proto_serializer.cc">
</ClCompile> </ClCompile>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<ClCompile Include="$(SolutionDir)\..\include\grpc++\impl\codegen\proto_serializer.cc">
<Filter>include\grpc++\impl\codegen</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup> <ItemGroup>
<ClInclude Include="$(SolutionDir)\..\include\grpc++\impl\codegen\async_stream.h"> <ClInclude Include="$(SolutionDir)\..\include\grpc++\impl\codegen\async_stream.h">
<Filter>include\grpc++\impl\codegen</Filter> <Filter>include\grpc++\impl\codegen</Filter>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment