Skip to content

Commit

Permalink
www/envoy: hook compression extensions to the port's build.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey Dokuchaev authored and Alexey Dokuchaev committed Jun 12, 2023
1 parent fd06fe3 commit 81176cb
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
4 changes: 3 additions & 1 deletion www/envoy/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ BUILD_DEPENDS= ${NONEXISTENT}:devel/grpc:patch \
${LOCALBASE}/include/spdlog/spdlog.h:devel/spdlog \
${LOCALBASE}/include/tclap/CmdLine.h:devel/tclap12
LIB_DEPENDS= libabsl_base.so:devel/abseil \
libbrotlidec.so:archivers/brotli \
libcares.so:dns/c-ares \
libcircllhist.so:devel/libcircllhist \
libevent.so:devel/libevent-devel \
Expand All @@ -32,7 +33,8 @@ LIB_DEPENDS= libabsl_base.so:devel/abseil \
libprotobuf.so:devel/protobuf \
libre2.so:devel/re2 \
libxxhash.so:devel/xxhash \
libyaml-cpp.so:devel/yaml-cpp
libyaml-cpp.so:devel/yaml-cpp \
libzstd.so:archivers/zstd

USES= compiler:c++17-lang cpe gmake python:build shebangfix ssl
CPE_VENDOR= ${PORTNAME}proxy
Expand Down
8 changes: 7 additions & 1 deletion www/envoy/files/makefile-genproto
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,12 @@ API_V3_PB_HEADERS=\
envoy/extensions/access_loggers/wasm/v3/wasm.pb.h \
envoy/extensions/common/dynamic_forward_proxy/v3/dns_cache.pb.h \
envoy/extensions/common/ratelimit/v3/ratelimit.pb.h \
envoy/extensions/compression/brotli/compressor/v3/brotli.pb.h \
envoy/extensions/compression/brotli/decompressor/v3/brotli.pb.h \
envoy/extensions/compression/gzip/compressor/v3/gzip.pb.h \
envoy/extensions/compression/gzip/decompressor/v3/gzip.pb.h \
envoy/extensions/compression/zstd/compressor/v3/zstd.pb.h \
envoy/extensions/compression/zstd/decompressor/v3/zstd.pb.h \
envoy/extensions/early_data/v3/default_early_data_policy.pb.h \
envoy/extensions/filters/common/dependency/v3/dependency.pb.h \
envoy/extensions/filters/http/router/v3/router.pb.h \
Expand Down Expand Up @@ -279,4 +285,4 @@ MISC_PB_HEADERS=\

all: $(API_V2_PB_HEADERS) $(API_V3_PB_HEADERS) $(MISC_PB_HEADERS)

.phony: all
.PHONY: all
13 changes: 11 additions & 2 deletions www/envoy/files/makefile-main
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
LOCALBASE?= /usr/local
CXXFLAGS+= -std=c++17 -Wall -Wextra -Wno-unused-parameter
CXXFLAGS+= -std=c++17 -Wall -Wextra -Wno-deprecated-declarations \
-Wno-unused-parameter
CPPFLAGS+= -DBUILD_SCM_REVISION=\"c7e8e73\" \
-DBUILD_SCM_STATUS=\"Modified\" \
-DNDEBUG -DENVOY_SSL_VERSION=\"BoringSSL\" \
Expand Down Expand Up @@ -140,6 +141,12 @@ api_OBJS= envoy/admin/v2alpha/certs.pb.o \
envoy/extensions/access_loggers/open_telemetry/v3/logs_service.pb.o \
envoy/extensions/access_loggers/stream/v3/stream.pb.o \
envoy/extensions/common/ratelimit/v3/ratelimit.pb.o \
envoy/extensions/compression/brotli/compressor/v3/brotli.pb.o \
envoy/extensions/compression/brotli/decompressor/v3/brotli.pb.o \
envoy/extensions/compression/gzip/compressor/v3/gzip.pb.o \
envoy/extensions/compression/gzip/decompressor/v3/gzip.pb.o \
envoy/extensions/compression/zstd/compressor/v3/zstd.pb.o \
envoy/extensions/compression/zstd/decompressor/v3/zstd.pb.o \
envoy/extensions/early_data/v3/default_early_data_policy.pb.o \
envoy/extensions/filters/common/dependency/v3/dependency.pb.o \
envoy/extensions/filters/http/upstream_codec/v3/upstream_codec.pb.o \
Expand Down Expand Up @@ -316,6 +323,7 @@ exe_SRCS= $(wildcard exe/*.cc) \

extensions_SRCS=\
$(wildcard extensions/access_loggers/[^w]*/*.cc) \
$(wildcard extensions/compression/*/*/*.cc) \
extensions/early_data/default_early_data_policy.cc \
$(wildcard extensions/filters/common/expr/*.cc) \
extensions/filters/common/rbac/matchers.cc \
Expand Down Expand Up @@ -549,9 +557,10 @@ ABSEIL_LIBS=\
throw_delegate time time_zone

LIBS= $(addprefix -labsl_,$(ABSEIL_LIBS)) \
-lbrotlidec -lbrotlienc \
-lcares -lcircllhist -lcrypto -levent -levent_pthreads -lfmt \
-lgpr -lgrpc -lgrpc++ -licuuc -lnghttp2 -lprotobuf -lpthread \
-lre2 -lssl -lupb -lxxhash -lyaml-cpp -lz
-lre2 -lssl -lupb -lxxhash -lyaml-cpp -lz -lzstd

VPATH= ../..

Expand Down

0 comments on commit 81176cb

Please sign in to comment.