diff options
author | Clemens Gruber <clemens.gruber@pqgruber.com> | 2018-12-10 14:56:51 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2018-12-15 19:54:05 +0100 |
commit | 966b193a3e4f7ccd0c0c1c42df5e9eee4c0b75d6 (patch) | |
tree | 2124297fe922a72d3eebfe276afaaaefa6fc899c /patches | |
parent | 2537429397c46f4c027e105a8af3150c8525462b (diff) | |
download | ptxdist-966b193a3e4f7ccd0c0c1c42df5e9eee4c0b75d6.tar.gz ptxdist-966b193a3e4f7ccd0c0c1c42df5e9eee4c0b75d6.tar.xz |
grpc: add pkg-config files
The grpc cmake build process does not produce .pc files.
To ease reuse of grpc from other packages, patch them in.
The pkg-config files are based on those created by the grpc Makefile
build. (gpr.pc merged into grpc.pc to avoid adding a third .pc file)
The library version numbers are extracted from the Makefile.
Signed-off-by: Clemens Gruber <clemens.gruber@pqgruber.com>
[mol: simplify version parsing]
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'patches')
-rw-r--r-- | patches/grpc-1.17.0/0002-Add-pkg-config-files.patch | 47 | ||||
-rw-r--r-- | patches/grpc-1.17.0/series | 3 |
2 files changed, 49 insertions, 1 deletions
diff --git a/patches/grpc-1.17.0/0002-Add-pkg-config-files.patch b/patches/grpc-1.17.0/0002-Add-pkg-config-files.patch new file mode 100644 index 000000000..713419bd9 --- /dev/null +++ b/patches/grpc-1.17.0/0002-Add-pkg-config-files.patch @@ -0,0 +1,47 @@ +From: Clemens Gruber <clemens.gruber@pqgruber.com> +Date: Mon, 10 Dec 2018 13:44:53 +0100 +Subject: [PATCH] Add pkg-config files + +--- + grpc++.pc.in | 12 ++++++++++++ + grpc.pc.in | 12 ++++++++++++ + 2 files changed, 24 insertions(+) + create mode 100644 grpc++.pc.in + create mode 100644 grpc.pc.in + +diff --git a/grpc++.pc.in b/grpc++.pc.in +new file mode 100644 +index 000000000000..c2677831a9c7 +--- /dev/null ++++ b/grpc++.pc.in +@@ -0,0 +1,12 @@ ++prefix=${pcfiledir}/../.. ++exec_prefix=${prefix} ++libdir=${prefix}/lib ++includedir=${prefix}/include ++ ++Name: gRPC++ ++Description: C++ wrapper for gRPC ++Version: @VERSION@ ++Cflags: -I${includedir} ++Requires.private: grpc protobuf ++Libs: -L${libdir} -lgrpc++ ++Libs.private: +diff --git a/grpc.pc.in b/grpc.pc.in +new file mode 100644 +index 000000000000..917c57a5e074 +--- /dev/null ++++ b/grpc.pc.in +@@ -0,0 +1,12 @@ ++prefix=${pcfiledir}/../.. ++exec_prefix=${prefix} ++libdir=${prefix}/lib ++includedir=${prefix}/include ++ ++Name: gRPC ++Description: high performance general RPC framework ++Version: @VERSION@ ++Cflags: -I${includedir} ++Requires.private: zlib libcares openssl ++Libs: -L{libdir} -lgrpc ++Libs.private: -lgpr diff --git a/patches/grpc-1.17.0/series b/patches/grpc-1.17.0/series index 767460cac..9683c0e9d 100644 --- a/patches/grpc-1.17.0/series +++ b/patches/grpc-1.17.0/series @@ -1,6 +1,7 @@ # generated by git-ptx-patches #tag:base --start-number 1 0001-CMakeLists.txt-allow-passing-a-pre-existing-grpc_cpp.patch +0002-Add-pkg-config-files.patch #tag:upstream --start-number 100 0100-Cancel-still-active-c-ares-queries-after-10-seconds-.patch -# c405f5a2e885b4d6ee8e68fb8ef11483 - git-ptx-patches magic +# 2ec60af54d62c846f3125aae9358fc16 - git-ptx-patches magic |