Skip to content

Commit

Permalink
Align protobuf version and proto options with kvproto (#347)
Browse files Browse the repository at this point in the history
Signed-off-by: Neil Shen <[email protected]>
  • Loading branch information
overvenus authored Nov 5, 2024
1 parent 0607513 commit f91fdb8
Show file tree
Hide file tree
Showing 33 changed files with 17,542 additions and 6,382 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ target
cpp/tipb/*.h
cpp/tipb/*.cc
cpp/build/
bin
26 changes: 16 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,23 +1,29 @@
GOGO_PROTOBUF := `go list -f "{{.Dir}}" -m github.com/gogo/protobuf`
.PHONY: all go rust c++

.PHONY: all go rust binlog c++
CURDIR := $(shell pwd)

all: go rust binlog c++
export GOBIN=$(CURDIR)/bin
export PATH := $(CURDIR)/bin/:$(PATH)

all: go rust c++

dependence:
go mod download

go: dependence
GOGO_PROTOBUF=${GOGO_PROTOBUF} ./generate-go.sh
check: dependence
./scripts/check.sh

rust:
cargo build
go: dependence check
./scripts/generate-go.sh
GO111MODULE=on go mod tidy
GO111MODULE=on go build ./go-tipb/...

binlog: dependence
GOGO_PROTOBUF=${GOGO_PROTOBUF} ./generate-binlog.sh
rust: check
cargo check && \
cargo check --no-default-features --features prost-codec

c++: dependence
./generate-cpp.sh
./scripts/generate-cpp.sh

tipb.a:
mkdir -p cpp/build && cd cpp/build && cmake -DCMAKE_BUILD_TYPE=Release .. && make tipb
15 changes: 0 additions & 15 deletions generate-go.sh

This file was deleted.

Loading

0 comments on commit f91fdb8

Please sign in to comment.