Skip to content

Commit

Permalink
update flatc command
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonwang371 committed Jan 26, 2025
1 parent 27158ff commit 1a1ae6a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@ format: format_python format_golang

pkg/spear:
allfiles=`find ${REPO_ROOT}/proto -name "*.fbs"`; \
flatc -o $(REPO_ROOT)/pkg/ -I ${REPO_ROOT}/proto --go-module-name "github.com/lfedgeai/spear/pkg" --go $${allfiles}
flatc -o $(REPO_ROOT)/pkg/ -I ${REPO_ROOT}/proto --go-module-name "github.com/lfedgeai/spear/pkg" --go --gen-all $${allfiles}

.PHONY: all spearlet test workload clean format_python format
2 changes: 1 addition & 1 deletion sdk/cpp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ all: include/proto

include/proto:
allfiles=`find ${REPO_ROOT}/proto -name "*.fbs"`; \
flatc -o ${CURRENT_DIR}/include/proto -I ${REPO_ROOT}/proto --cpp $${allfiles}
flatc -o ${CURRENT_DIR}/include/proto -I ${REPO_ROOT}/proto --cpp --gen-all $${allfiles}

clean:
rm -rf ${CURRENT_DIR}/include/proto;
Expand Down
2 changes: 1 addition & 1 deletion sdk/python/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ build: spear/proto

spear/proto:
allfiles=`find ${REPO_ROOT}/proto -name "*.fbs"`; \
flatc -o ${CURRENT_DIR}/ -I ${REPO_ROOT}/proto --python --python-typing $${allfiles}
flatc -o ${CURRENT_DIR}/ -I ${REPO_ROOT}/proto --python --python-typing --gen-all $${allfiles}

clean:
rm -rf ${CURRENT_DIR}/spear/proto && \
Expand Down

0 comments on commit 1a1ae6a

Please sign in to comment.