-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
45 lines (33 loc) · 1.16 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
default: all
all: arc852 stubs bin
stubs: clean java-stubs python-stubs
bin: java-bin
# cleans and wipe the build dir
clean:
./gradlew clean
# dunno
java-bin:
./gradlew installDist
# generate java stubs for grpc
java-stubs:
./gradlew assemble build
# generate python stubs for grpc
python-stubs:
mkdir -p ./build/generated/source/python
touch ./build/generated/source/python/__init__.py
python3 -m grpc_tools.protoc -I. --python_out=./build/generated/source/python --grpc_python_out=./build/generated/source/python --proto_path=./src/main/proto CVData.proto
# initiate java server
java-server:
build/install/Deep-Space-Robot/bin/grpc-Server
# initiated python server, nonexistent as of now
python-server:
python3 src/main/python/greeter_server.py
# initiate python client, nonapplicable, the usage of client is different and can be found under src/main/python/grpc
python-client:
python3 src/main/python/visionClient.py
# initiate java client, not applicable
java-client:
build/install/Deep-Space-Robot/bin/grpc-Server
# install and update arc852 python library
arc852:
sudo -H pip3 install --upgrade arc852-robotics --extra-index-url https://pypi.fury.io/pambrose/