forked from viamrobotics/viam-java-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
25 lines (21 loc) · 836 Bytes
/
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
.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
.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"