2023-10-31 10:19:38 +00:00
|
|
|
.PHONY: requirements common gw api integration streams
|
2022-04-06 20:18:32 +00:00
|
|
|
|
|
|
|
PROTOC_ARGS := -I=/googleapis -I=../proto --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative
|
|
|
|
|
2023-10-31 10:19:38 +00:00
|
|
|
all: requirements common gw api integration streams
|
2022-04-06 20:18:32 +00:00
|
|
|
|
|
|
|
requirements:
|
|
|
|
go mod download
|
|
|
|
go install google.golang.org/protobuf/cmd/protoc-gen-go
|
|
|
|
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc
|
|
|
|
|
|
|
|
common:
|
|
|
|
protoc ${PROTOC_ARGS} common/common.proto
|
|
|
|
|
|
|
|
gw:
|
|
|
|
protoc ${PROTOC_ARGS} gw/gw.proto
|
|
|
|
|
|
|
|
api:
|
|
|
|
protoc ${PROTOC_ARGS} api/internal.proto
|
|
|
|
protoc ${PROTOC_ARGS} api/user.proto
|
|
|
|
protoc ${PROTOC_ARGS} api/tenant.proto
|
|
|
|
protoc ${PROTOC_ARGS} api/application.proto
|
|
|
|
protoc ${PROTOC_ARGS} api/device_profile.proto
|
2022-06-07 18:28:41 +00:00
|
|
|
protoc ${PROTOC_ARGS} api/device_profile_template.proto
|
2022-04-06 20:18:32 +00:00
|
|
|
protoc ${PROTOC_ARGS} api/device.proto
|
|
|
|
protoc ${PROTOC_ARGS} api/gateway.proto
|
|
|
|
protoc ${PROTOC_ARGS} api/multicast_group.proto
|
2023-05-22 10:04:13 +00:00
|
|
|
protoc ${PROTOC_ARGS} api/relay.proto
|
2022-04-06 20:18:32 +00:00
|
|
|
|
|
|
|
integration:
|
|
|
|
protoc ${PROTOC_ARGS} integration/integration.proto
|
|
|
|
|
2023-10-31 10:19:38 +00:00
|
|
|
streams:
|
|
|
|
protoc ${PROTOC_ARGS} streams/meta.proto
|
2023-10-31 11:21:43 +00:00
|
|
|
protoc ${PROTOC_ARGS} streams/frames.proto
|
2023-10-31 11:59:07 +00:00
|
|
|
protoc ${PROTOC_ARGS} streams/api_requests.proto
|