diff --git a/third_party/wangle/BUILD b/third_party/wangle/BUILD index ee5046d5a..2c3fbf03b 100644 --- a/third_party/wangle/BUILD +++ b/third_party/wangle/BUILD @@ -84,6 +84,23 @@ cc_library( ] ) +cc_library( + name = "codec", + visibility = ["//visibility:public"], + includes = [ + "upstream", + ], + hdrs = glob(["upstream/wangle/codec/*.h"]), + srcs = [ + "upstream/wangle/codec/LineBasedFrameDecoder.cpp", + "upstream/wangle/codec/LengthFieldPrepender.cpp", + "upstream/wangle/codec/LengthFieldBasedFrameDecoder.cpp" + ], + deps = [ + ":channel" + ] +) + # Disabled because dependings on boost/thread # # cc_test( @@ -119,5 +136,18 @@ cc_library( ":channel", ":concurrent", ":ssl", + ":codec" ] ) + +cc_binary( + name = "echo_server", + visibility = ["//visibility:public"], + srcs = ["upstream/wangle/example/echo/EchoServer.cpp"], + deps = [ + ":wangle", + "//third_party/folly:folly", + "//third_party/glog:glog" + ] + +)