Skip to content

Commit

Permalink
encapp: generate python and swift code together
Browse files Browse the repository at this point in the history
Changed the Makefile in proto.
"make all"
generate both swift and python
"make realclean" removed both generated files

Signed-off-by: JohanBlome <[email protected]>
  • Loading branch information
JohanBlome committed Jun 21, 2024
1 parent 6b62de5 commit 1f2e528
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions proto/Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
all: none


tests_pb2.py: tests.proto
protoc -I=. --python_out=../scripts/proto/ tests.proto

python_path=../scripts/proto/
swift_path=../ios/Encapp/
# java will be generated when building with gradle
all: tests.proto
protoc -I=. --python_out=$(python_path) tests.proto
protoc -I=. --swift_out=$(swift_path) tests.proto
clean:
rm -f *pyc

realclean: clean
rm -f tests_pb2.py
rm -f $(python_path)tests_pb2.py
rm -f $(swift_path)tests.pb.swift

0 comments on commit 1f2e528

Please sign in to comment.