Debian Codegraph @

examples/python/Makefile

raw
1 # Copyright 2022 The gRPC Authors
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 # Regenerates all generated files in the Python examples directory.
16
17 ARTIFACTS=
18
19 ARTIFACTS += helloworld/helloworld_pb2.py
20 ARTIFACTS += helloworld/helloworld_pb2_grpc.py
21 ARTIFACTS += helloworld/helloworld_pb2.pyi
22
23 ARTIFACTS += async_streaming/phone_pb2.py
24 ARTIFACTS += async_streaming/phone_pb2_grpc.py
25 ARTIFACTS += async_streaming/phone_pb2.pyi
26
27 ARTIFACTS += hellostreamingworld/hellostreamingworld_pb2.py
28 ARTIFACTS += hellostreamingworld/hellostreamingworld_pb2_grpc.py
29 ARTIFACTS += hellostreamingworld/hellostreamingworld_pb2.pyi
30
31 ARTIFACTS += uds/helloworld_pb2.py
32 ARTIFACTS += uds/helloworld_pb2_grpc.py
33 ARTIFACTS += uds/helloworld_pb2.pyi
34
35 ARTIFACTS += xds/helloworld_pb2.py
36 ARTIFACTS += xds/helloworld_pb2_grpc.py
37 ARTIFACTS += xds/helloworld_pb2.pyi
38
39 ARTIFACTS += multiplex/helloworld_pb2.py
40 ARTIFACTS += multiplex/helloworld_pb2_grpc.py
41 ARTIFACTS += multiplex/helloworld_pb2.pyi
42
43 ARTIFACTS += multiplex/route_guide_pb2.py
44 ARTIFACTS += multiplex/route_guide_pb2_grpc.py
45 ARTIFACTS += multiplex/route_guide_pb2.pyi
46
47 ARTIFACTS += route_guide/route_guide_pb2.py
48 ARTIFACTS += route_guide/route_guide_pb2_grpc.py
49 ARTIFACTS += route_guide/route_guide_pb2.pyi
50
51 ARTIFACTS += interceptors/default_value/helloworld_pb2.py
52 ARTIFACTS += interceptors/default_value/helloworld_pb2_grpc.py
53 ARTIFACTS += interceptors/default_value/helloworld_pb2.pyi
54
55 ARTIFACTS += interceptors/headers/helloworld_pb2.py
56 ARTIFACTS += interceptors/headers/helloworld_pb2_grpc.py
57 ARTIFACTS += interceptors/headers/helloworld_pb2.pyi
58
59 ARTIFACTS += metadata/helloworld_pb2.py
60 ARTIFACTS += metadata/helloworld_pb2_grpc.py
61 ARTIFACTS += metadata/helloworld_pb2.pyi
62
63 ARTIFACTS += data_transmission/demo_pb2.py
64 ARTIFACTS += data_transmission/demo_pb2_grpc.py
65 ARTIFACTS += data_transmission/demo_pb2.pyi
66
67 .PHONY: all
68 all: ${ARTIFACTS}
69
70 helloworld/helloworld_pb2.py helloworld/helloworld_pb2_grpc.py helloworld/helloworld_pb2.pyi: ../protos/helloworld.proto
71 python3 -m grpc_tools.protoc --python_out=helloworld --grpc_python_out=helloworld --pyi_out=helloworld -I ../protos ../protos/helloworld.proto
72
73 async_streaming/phone_pb2.py async_streaming/phone_pb2_grpc.py async_streaming/phone_pb2.pyi: async_streaming/phone.proto
74 python3 -m grpc_tools.protoc --python_out=async_streaming --grpc_python_out=async_streaming --pyi_out=async_streaming -I async_streaming async_streaming/phone.proto
75
76 hellostreamingworld/hellostreamingworld_pb2.py hellostreamingworld/hellostreamingworld_pb2_grpc.py hellostreamingworld/hellostreamingworld_pb2.pyi: ../protos/hellostreamingworld.proto
77 python3 -m grpc_tools.protoc --python_out=hellostreamingworld --grpc_python_out=hellostreamingworld --pyi_out=hellostreamingworld -I ../protos ../protos/hellostreamingworld.proto
78
79 uds/helloworld_pb2.py uds/helloworld_pb2_grpc.py uds/helloworld_pb2.pyi: ../protos/helloworld.proto
80 python3 -m grpc_tools.protoc --python_out=uds --grpc_python_out=uds --pyi_out=uds -I ../protos ../protos/helloworld.proto
81
82 xds/helloworld_pb2.py xds/helloworld_pb2_grpc.py xds/helloworld_pb2.pyi: ../protos/helloworld.proto
83 python3 -m grpc_tools.protoc --python_out=xds --grpc_python_out=xds --pyi_out=xds -I ../protos ../protos/helloworld.proto
84
85 multiplex/helloworld_pb2.py multiplex/helloworld_pb2_grpc.py multiplex/helloworld_pb2.pyi: ../protos/helloworld.proto
86 python3 -m grpc_tools.protoc --python_out=multiplex --grpc_python_out=multiplex --pyi_out=multiplex -I ../protos ../protos/helloworld.proto
87
88 multiplex/route_guide_pb2.py multiplex/route_guide_pb2_grpc.py multiplex/route_guide_pb2.pyi: ../protos/route_guide.proto
89 python3 -m grpc_tools.protoc --python_out=multiplex --grpc_python_out=multiplex --pyi_out=multiplex -I ../protos ../protos/route_guide.proto
90
91 route_guide/route_guide_pb2.py route_guide/route_guide_pb2_grpc.py route_guide/route_guide_pb2.pyi: ../protos/route_guide.proto
92 python3 -m grpc_tools.protoc --python_out=route_guide --grpc_python_out=route_guide --pyi_out=route_guide -I ../protos ../protos/route_guide.proto
93
94
95 interceptors/default_value/helloworld_pb2.py interceptors/default_value/helloworld_pb2_grpc.py interceptors/default_value/helloworld_pb2.pyi: ../protos/helloworld.proto
96 python3 -m grpc_tools.protoc --python_out=interceptors/default_value --grpc_python_out=interceptors/default_value --pyi_out=interceptors/default_value -I ../protos ../protos/helloworld.proto
97
98 interceptors/headers/helloworld_pb2.py interceptors/headers/helloworld_pb2_grpc.py interceptors/headers/helloworld_pb2.pyi: ../protos/helloworld.proto
99 python3 -m grpc_tools.protoc --python_out=interceptors/headers --grpc_python_out=interceptors/headers --pyi_out=interceptors/headers -I ../protos ../protos/helloworld.proto
100
101 metadata/helloworld_pb2.py metadata/helloworld_pb2_grpc.py metadata/helloworld_pb2.pyi: ../protos/helloworld.proto
102 python3 -m grpc_tools.protoc --python_out=metadata --grpc_python_out=metadata --pyi_out=metadata -I ../protos ../protos/helloworld.proto
103
104 data_transmission/demo_pb2.py data_transmission/demo_pb2_grpc.py data_transmission/demo_pb2.pyi: data_transmission/demo.proto
105 python3 -m grpc_tools.protoc --python_out=data_transmission --grpc_python_out=data_transmission --pyi_out=data_transmission -I data_transmission data_transmission/demo.proto
106
107 .PHONY: clean
108 clean:
109 rm -f ${ARTIFACTS}