File: build-plugin.patch

package info (click to toggle)
grpc-java 1.26.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 11,852 kB
  • sloc: java: 146,813; cpp: 1,174; xml: 1,037; sh: 662; makefile: 40; python: 40
file content (35 lines) | stat: -rw-r--r-- 936 bytes parent folder | download
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
32
33
34
35
Description: Use autotools to build C++ plugin since Gradle is a hot mess
Author: Olek Wojnar <olek@debian.org>
Forwarded: not-needed
Last-Update: 2020-06-19

--- /dev/null
+++ b/Makefile.am
@@ -0,0 +1 @@
+SUBDIRS = compiler/
--- /dev/null
+++ b/compiler/Makefile.am
@@ -0,0 +1,2 @@
+SUBDIRS = src/java_plugin/cpp/
+dist_doc_DATA = README.md
--- /dev/null
+++ b/configure.ac
@@ -0,0 +1,11 @@
+AC_INIT([protobuf-compiler-grpc-java-plugin], [1.20.0], [grpc-io@googlegroups.com])
+AM_INIT_AUTOMAKE([-Wall -Werror foreign])
+AC_PROG_CXX
+AC_CONFIG_HEADERS([config.h])
+AC_CONFIG_FILES([
+ Makefile
+ compiler/Makefile
+ compiler/src/java_plugin/cpp/Makefile
+])
+AC_OUTPUT
+
--- /dev/null
+++ b/compiler/src/java_plugin/cpp/Makefile.am
@@ -0,0 +1,4 @@
+bin_PROGRAMS = grpc_java_plugin
+include_HEADERS = java_generator.h
+grpc_java_plugin_SOURCES = java_plugin.cpp java_generator.cpp
+grpc_java_plugin_LDADD = -lprotobuf -lprotoc -lpthread