Skip to content

Commit

Permalink
added wangle codec & echo server
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiouzelac committed Aug 3, 2016
1 parent 43761c5 commit 1b1fe87
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions third_party/wangle/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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"
]

)

0 comments on commit 1b1fe87

Please sign in to comment.