-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Align protobuf version and proto options with kvproto (#347)
Signed-off-by: Neil Shen <[email protected]>
- Loading branch information
Showing
33 changed files
with
17,542 additions
and
6,382 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 |
---|---|---|
|
@@ -4,3 +4,4 @@ target | |
cpp/tipb/*.h | ||
cpp/tipb/*.cc | ||
cpp/build/ | ||
bin |
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,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 |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.