@@ -33,6 +33,7 @@ clean: clean-jar
33
33
rm -f ./* .so
34
34
rm -f ./* .dylib
35
35
rm -f ./* .dll
36
+ cd ./submodules/fubuki/ && cargo clean
36
37
37
38
.PHONY : clean-docker-plugin-rootfs
38
39
clean-docker-plugin-rootfs :
@@ -62,19 +63,21 @@ _add_linux_so_to_zip:
62
63
cp ./base/src/main/c/xdp/libbpf/src/libbpf.so.0.6.0 ./io/vproxy/libbpf-$(LINUX_ARCH ) .so
63
64
cp ./libmsquic.so ./io/vproxy/libmsquic-$(LINUX_ARCH ) .so
64
65
cp ./base/src/main/c/libmsquic-java.so ./io/vproxy/libmsquic-java-$(LINUX_ARCH ) .so
66
+ cp ./submodules/fubuki/target/release/libfubuki.so ./io/vproxy/libfubuki-$(LINUX_ARCH ) .so
65
67
zip build/libs/vproxy.jar \
66
68
./io/vproxy/libvfdposix-$(LINUX_ARCH ) .so \
67
69
./io/vproxy/libvpxdp-$(LINUX_ARCH ) .so \
68
70
./io/vproxy/libbpf-$(LINUX_ARCH ) .so \
69
71
./io/vproxy/libmsquic-$(LINUX_ARCH ) .so \
70
- ./io/vproxy/libmsquic-java-$(LINUX_ARCH ) .so
72
+ ./io/vproxy/libmsquic-java-$(LINUX_ARCH ) .so \
73
+ ./io/vproxy/libfubuki-$(LINUX_ARCH ) .so
71
74
rm -r ./io
72
75
73
76
.PHONY : native
74
77
ifeq ($(OS ) ,Linux)
75
- native : vfdposix vpxdp quic
78
+ native : vfdposix vpxdp quic fubuki
76
79
else ifeq ($(OS),Darwin)
77
- native : vfdposix-linux vpxdp-linux quic-all vfdposix
80
+ native : vfdposix-linux vpxdp-linux quic-all fubuki-linux fubuki vfdposix
78
81
else
79
82
native : vfdwindows
80
83
endif
@@ -88,10 +91,12 @@ jar-with-lib: clean jar native _add_linux_so_to_zip
88
91
cp ./base/src/main/c/libvfdposix.dylib ./io/vproxy/libvfdposix-$(ARCH ) .dylib
89
92
cp ./libmsquic.dylib ./io/vproxy/libmsquic-$(ARCH ) .dylib
90
93
cp ./base/src/main/c/libmsquic-java.dylib ./io/vproxy/libmsquic-java-$(ARCH ) .dylib
94
+ cp ./submodules/fubuki/target/release/libfubuki.dylib ./io/vproxy/libfubuki-$(ARCH ) .dylib
91
95
zip build/libs/vproxy.jar \
92
96
./io/vproxy/libvfdposix-$(ARCH ) .dylib \
93
97
./io/vproxy/libmsquic-$(ARCH ) .dylib \
94
- ./io/vproxy/libmsquic-java-$(ARCH ) .dylib
98
+ ./io/vproxy/libmsquic-java-$(ARCH ) .dylib \
99
+ ./io/vproxy/libfubuki-$(ARCH ) .dylib
95
100
rm -r ./io
96
101
endif
97
102
@@ -141,6 +146,11 @@ msquic-java:
141
146
msquic :
142
147
cd ./submodules/msquic/ && make
143
148
149
+ .PHONY : fubuki
150
+ fubuki :
151
+ cd ./submodules/fubuki/ && cargo update
152
+ cd ./submodules/fubuki/ && cargo +nightly build --release
153
+
144
154
.PHONY : vfdposix-linux
145
155
.PHONY : vpxdp-linux
146
156
.PHONY : msquic-java-linux
@@ -150,6 +160,7 @@ vfdposix-linux: vfdposix
150
160
vpxdp-linux : vpxdp
151
161
msquic-java-linux : msquic-java
152
162
msquic-linux : msquic
163
+ fubuki-linux : fubuki
153
164
else
154
165
vfdposix-linux :
155
166
docker run --rm -v $(shell pwd) :/vproxy vproxyio/compile:latest make vfdposix
@@ -159,6 +170,8 @@ msquic-java-linux:
159
170
docker run --rm -v $(shell pwd) :/vproxy -v " $( shell pwd) /submodules/msquic/src/inc:/msquic/src/inc" -v " $( shell pwd) /submodules/msquic/build/bin/Release:/msquic/build/bin/Release" -e MSQUIC_INC=/msquic/src/inc -e MSQUIC_LD=/msquic/build/bin/Release vproxyio/compile:latest make msquic-java
160
171
msquic-linux :
161
172
docker run --rm -v $(shell pwd) :/vproxy vproxyio/compile:latest /bin/bash -c ' cd submodules/msquic && make'
173
+ fubuki-linux :
174
+ docker run --rm -v $(shell pwd) :/vproxy -v $(shell pwd) /cargo-cache/git:/root/.cargo/git -v $(shell pwd) /cargo-cache/registry:/root/.cargo/registry vproxyio/compile:latest /bin/bash -c ' make fubuki'
162
175
endif
163
176
164
177
.PHONY : quic
0 commit comments