-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (40 loc) · 1.76 KB
/
Makefile
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
36
37
38
39
40
41
42
43
generate_single:
mkdir -p ./generated/Sources/ModuleA
mkdir -p ./generated/Sources/ModuleB
protoc -I ./ -I ./third_party --swift_opt=Visibility=Public \
--swift_opt=FileNaming=DropPath \
--swift_opt=ProtoPathModuleMappings="swift_module_mapping" \
--swift_out="./generated/Sources" \
--grpc-swift_opt=Visibility=Public \
--grpc-swift_opt=FileNaming=DropPath \
--grpc-swift_opt=Client=true \
--grpc-swift_opt=Server=false \
--grpc-swift_opt=ProtoPathModuleMappings="swift_module_mapping" \
--grpc-swift_out="./generated/Sources" a.proto b.proto
mv ./generated/Sources/a.*.swift ./generated/Sources/ModuleA
mv ./generated/Sources/b.*.swift ./generated/Sources/ModuleB
generate:
mkdir -p ./generated/Sources/ModuleA
mkdir -p ./generated/Sources/ModuleB
protoc -I ./ -I ./third_party --swift_opt=Visibility=Public \
--swift_opt=FileNaming=DropPath \
--swift_opt=ProtoPathModuleMappings="swift_module_mapping" \
--swift_out="./generated/Sources/ModuleA" \
--grpc-swift_opt=Visibility=Public \
--grpc-swift_opt=FileNaming=DropPath \
--grpc-swift_opt=Client=true \
--grpc-swift_opt=Server=false \
--grpc-swift_opt=ProtoPathModuleMappings="swift_module_mapping" \
--grpc-swift_out="./generated/Sources/ModuleA" a.proto
protoc -I ./ -I ./third_party --swift_opt=Visibility=Public \
--swift_opt=FileNaming=DropPath \
--swift_opt=ProtoPathModuleMappings="swift_module_mapping" \
--swift_out="./generated/Sources/ModuleB" \
--grpc-swift_opt=Visibility=Public \
--grpc-swift_opt=FileNaming=DropPath \
--grpc-swift_opt=Client=true \
--grpc-swift_opt=Server=false \
--grpc-swift_opt=ProtoPathModuleMappings="swift_module_mapping" \
--grpc-swift_out="./generated/Sources/ModuleB" b.proto
build:
cd ./generated; swift build;