-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
27 lines (23 loc) · 1.04 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
.PHONY: buf
buf:
rm -rf core/sdk/src/main/gen
rm -rf core/sdk/src/main/resources/protofds
mkdir -p core/sdk/src/main/resources/protofds
buf build --as-file-descriptor-set=true -o core/sdk/src/main/resources/protofds/viam.api buf.build/viamrobotics/api:$$(cat api_version.lock)
buf generate --template buf.gen.yaml buf.build/viamrobotics/api:$$(cat api_version.lock)
buf generate --template buf.gen.yaml buf.build/viamrobotics/goutils
buf generate --template buf.gen.yaml buf.build/googleapis/googleapis
mv core/sdk/src/main/gen/com/viam/component/switch core/sdk/src/main/gen/com/viam/component/nswitch
find . -type f -name '*.java' -exec sed -i '' -e 's/com\.viam\.component\.switch\.v1/com\.viam\.component\.nswitch\.v1/g' {} \;
.PHONY: run_client
run_client:
./gradlew runExample1Client --args="localhost:8080"
.PHONY: run_client_webrtc_auth
run_client_webrtc_auth:
./gradlew runExample2Client
.PHONY: run_client_grpc_auth
run_client_grpc_auth:
./gradlew runExample3Client
.PHONY: run_server
run_server:
./gradlew runExample1Server --args="8080"