load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) licenses(["notice"]) # Apache 2 envoy_package() envoy_cc_library( name = "upstream_lib", srcs = [ "upstream.cc", ], hdrs = [ "upstream.h", ], deps = [ "//include/envoy/tcp:conn_pool_interface", "//include/envoy/tcp:upstream_interface", "//include/envoy/upstream:cluster_manager_interface", "//include/envoy/upstream:load_balancer_interface", "//source/common/http:codec_client_lib", "//source/common/http:header_map_lib", "//source/common/http:headers_lib", "//source/common/http:utility_lib", ], ) envoy_cc_library( name = "tcp_proxy", srcs = [ "tcp_proxy.cc", ], hdrs = [ "tcp_proxy.h", ], deps = [ ":upstream_lib", "//include/envoy/access_log:access_log_interface", "//include/envoy/buffer:buffer_interface", "//include/envoy/common:time_interface", "//include/envoy/event:dispatcher_interface", "//include/envoy/network:connection_interface", "//include/envoy/network:filter_interface", "//include/envoy/router:router_interface", "//include/envoy/server:filter_config_interface", "//include/envoy/stats:stats_interface", "//include/envoy/stats:stats_macros", "//include/envoy/stats:timespan_interface", "//include/envoy/stream_info:filter_state_interface", "//include/envoy/tcp:conn_pool_interface", "//include/envoy/tcp:upstream_interface", "//include/envoy/upstream:cluster_manager_interface", "//include/envoy/upstream:upstream_interface", "//source/common/access_log:access_log_lib", "//source/common/common:assert_lib", "//source/common/common:empty_string", "//source/common/common:macros", "//source/common/common:minimal_logger_lib", "//source/common/http:codec_client_lib", "//source/common/network:application_protocol_lib", "//source/common/network:cidr_range_lib", "//source/common/network:filter_lib", "//source/common/network:hash_policy_lib", "//source/common/network:proxy_protocol_filter_state_lib", "//source/common/network:transport_socket_options_lib", "//source/common/network:upstream_server_name_lib", "//source/common/network:utility_lib", "//source/common/router:metadatamatchcriteria_lib", "//source/common/stream_info:stream_info_lib", "//source/common/upstream:load_balancer_lib", "//source/extensions/upstreams/tcp/generic:config", "@envoy_api//envoy/config/accesslog/v3:pkg_cc_proto", "@envoy_api//envoy/extensions/filters/network/tcp_proxy/v3:pkg_cc_proto", ], )