94 lines
3.6 KiB
Diff
94 lines
3.6 KiB
Diff
|
From: Jan Engelhardt <jengelh@inai.de>
|
||
|
Date: 2017-04-19 10:07:43.563879307 +0200
|
||
|
|
||
|
Unversioned libraries are an ABI nightmare, so work around that in short order.
|
||
|
|
||
|
---
|
||
|
CMakeLists.txt | 10 ++++++++++
|
||
|
1 file changed, 10 insertions(+)
|
||
|
|
||
|
Index: grpc-1.2.3/CMakeLists.txt
|
||
|
===================================================================
|
||
|
--- grpc-1.2.3.orig/CMakeLists.txt
|
||
|
+++ grpc-1.2.3/CMakeLists.txt
|
||
|
@@ -735,6 +735,7 @@ add_library(gpr
|
||
|
src/core/lib/support/tmpfile_windows.c
|
||
|
src/core/lib/support/wrap_memcpy.c
|
||
|
)
|
||
|
+set_target_properties(gpr PROPERTIES OUTPUT_NAME "gpr-${PACKAGE_VERSION}")
|
||
|
|
||
|
if(WIN32 AND MSVC)
|
||
|
set_target_properties(gpr PROPERTIES COMPILE_PDB_NAME "gpr"
|
||
|
@@ -1083,6 +1084,7 @@ add_library(grpc
|
||
|
src/core/ext/census/tracing.c
|
||
|
src/core/plugin_registry/grpc_plugin_registry.c
|
||
|
)
|
||
|
+set_target_properties(grpc PROPERTIES OUTPUT_NAME "grpc-${PACKAGE_VERSION}")
|
||
|
|
||
|
if(WIN32 AND MSVC)
|
||
|
set_target_properties(grpc PROPERTIES COMPILE_PDB_NAME "grpc"
|
||
|
@@ -1364,6 +1366,7 @@ add_library(grpc_cronet
|
||
|
src/core/ext/load_reporting/load_reporting_filter.c
|
||
|
src/core/plugin_registry/grpc_cronet_plugin_registry.c
|
||
|
)
|
||
|
+set_target_properties(grpc_cronet PROPERTIES OUTPUT_NAME "grpc_cronet-${PACKAGE_VERSION}")
|
||
|
|
||
|
if(WIN32 AND MSVC)
|
||
|
set_target_properties(grpc_cronet PROPERTIES COMPILE_PDB_NAME "grpc_cronet"
|
||
|
@@ -1909,6 +1912,7 @@ add_library(grpc_unsecure
|
||
|
src/core/ext/census/tracing.c
|
||
|
src/core/plugin_registry/grpc_unsecure_plugin_registry.c
|
||
|
)
|
||
|
+set_target_properties(grpc_unsecure PROPERTIES OUTPUT_NAME "grpc_unsecure-${PACKAGE_VERSION}")
|
||
|
|
||
|
if(WIN32 AND MSVC)
|
||
|
set_target_properties(grpc_unsecure PROPERTIES COMPILE_PDB_NAME "grpc_unsecure"
|
||
|
@@ -2110,6 +2114,7 @@ add_library(grpc++
|
||
|
src/cpp/util/time_cc.cc
|
||
|
src/cpp/codegen/codegen_init.cc
|
||
|
)
|
||
|
+set_target_properties(grpc++ PROPERTIES OUTPUT_NAME "grpc++-${PACKAGE_VERSION}")
|
||
|
|
||
|
if(WIN32 AND MSVC)
|
||
|
set_target_properties(grpc++ PROPERTIES COMPILE_PDB_NAME "grpc++"
|
||
|
@@ -2479,6 +2484,7 @@ add_library(grpc++_cronet
|
||
|
third_party/nanopb/pb_decode.c
|
||
|
third_party/nanopb/pb_encode.c
|
||
|
)
|
||
|
+set_target_properties(grpc++_cronet PROPERTIES OUTPUT_NAME "grpc++_cronet-${PACKAGE_VERSION}")
|
||
|
|
||
|
if(WIN32 AND MSVC)
|
||
|
set_target_properties(grpc++_cronet PROPERTIES COMPILE_PDB_NAME "grpc++_cronet"
|
||
|
@@ -2700,6 +2706,7 @@ add_library(grpc++_reflection
|
||
|
${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.pb.h
|
||
|
${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.grpc.pb.h
|
||
|
)
|
||
|
+set_target_properties(grpc++_reflection PROPERTIES OUTPUT_NAME "grpc++_reflection-${PACKAGE_VERSION}")
|
||
|
|
||
|
if(WIN32 AND MSVC)
|
||
|
set_target_properties(grpc++_reflection PROPERTIES COMPILE_PDB_NAME "grpc++_reflection"
|
||
|
@@ -2967,6 +2974,7 @@ add_library(grpc++_unsecure
|
||
|
src/cpp/util/time_cc.cc
|
||
|
src/cpp/codegen/codegen_init.cc
|
||
|
)
|
||
|
+set_target_properties(grpc++_unsecure PROPERTIES OUTPUT_NAME "grpc++_unsecure-${PACKAGE_VERSION}")
|
||
|
|
||
|
if(WIN32 AND MSVC)
|
||
|
set_target_properties(grpc++_unsecure PROPERTIES COMPILE_PDB_NAME "grpc++_unsecure"
|
||
|
@@ -3226,6 +3234,7 @@ add_library(grpc_plugin_support
|
||
|
src/compiler/python_generator.cc
|
||
|
src/compiler/ruby_generator.cc
|
||
|
)
|
||
|
+set_target_properties(grpc_plugin_support PROPERTIES OUTPUT_NAME "grpc_plugin_support-${PACKAGE_VERSION}")
|
||
|
|
||
|
if(WIN32 AND MSVC)
|
||
|
set_target_properties(grpc_plugin_support PROPERTIES COMPILE_PDB_NAME "grpc_plugin_support"
|
||
|
@@ -3703,6 +3712,7 @@ endif (gRPC_BUILD_TESTS)
|
||
|
add_library(grpc_csharp_ext SHARED
|
||
|
src/csharp/ext/grpc_csharp_ext.c
|
||
|
)
|
||
|
+set_target_properties(grpc_csharp_ext PROPERTIES OUTPUT_NAME "grpc_csharp_ext-${PACKAGE_VERSION}")
|
||
|
|
||
|
if(WIN32 AND MSVC)
|
||
|
set_target_properties(grpc_csharp_ext PROPERTIES COMPILE_PDB_NAME "grpc_csharp_ext"
|