-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #56 from Layr-Labs/sm-sidecarApis
Move protos to sidecar-apis module
- Loading branch information
Showing
14 changed files
with
9 additions
and
2,899 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
.PHONY: deps proto | ||
.PHONY: deps | ||
|
||
PROJECT_ROOT = $(shell pwd) | ||
CGO_CFLAGS = "-I$(PROJECT_ROOT)/sqlite-extensions" | ||
|
@@ -8,44 +8,20 @@ CGO_ENABLED = 1 | |
GO=$(shell which go) | ||
ALL_FLAGS=CGO_CFLAGS=$(CGO_CFLAGS) CGO_LDFLAGS=$(CGO_LDFLAGS) PYTHONPATH=$(PYTHONPATH) CGO_ENABLED=$(CGO_ENABLED) | ||
|
||
PROTO_OPTS=--proto_path=protos --go_out=paths=source_relative:protos | ||
|
||
deps/dev: | ||
${GO} install github.com/golangci/golangci-lint/cmd/[email protected] | ||
${GO} install honnef.co/go/tools/cmd/staticcheck@latest | ||
${GO} install github.com/google/yamlfmt/cmd/yamlfmt@latest | ||
|
||
deps/go: | ||
${GO} install google.golang.org/protobuf/cmd/[email protected] | ||
${GO} install google.golang.org/grpc/cmd/[email protected] | ||
${GO} get \ | ||
github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway \ | ||
github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2 \ | ||
google.golang.org/protobuf/cmd/protoc-gen-go \ | ||
google.golang.org/grpc/cmd/protoc-gen-go-grpc | ||
${GO} install \ | ||
github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway \ | ||
github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2 \ | ||
google.golang.org/protobuf/cmd/protoc-gen-go \ | ||
google.golang.org/grpc/cmd/protoc-gen-go-grpc | ||
${GO} mod tidy | ||
|
||
|
||
deps-buf: | ||
GOROOT=$(go env GOROOT) | ||
BIN="${GOROOT}/bin" VERSION="1.32.2" && \ | ||
curl -sSL "https://github.com/bufbuild/buf/releases/download/v${VERSION}/buf-$(uname -s)-$(uname -m)" -o "${BIN}/buf" && \ | ||
chmod +x "${BIN}/buf" | ||
|
||
deps-system: | ||
./scripts/installDeps.sh | ||
|
||
deps: deps-system deps-buf deps/go deps/dev | ||
|
||
deps: deps-system deps/go deps/dev | ||
|
||
# Build targets | ||
proto: | ||
buf generate protos | ||
|
||
.PHONY: clean | ||
clean: | ||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.