80c663882a
Summary: First draft. Unit tests pass. Test Plan: unit tests attached Reviewers: heyongqiang Reviewed By: heyongqiang Differential Revision: https://reviews.facebook.net/D3969
75 lines
1.2 KiB
Plaintext
75 lines
1.2 KiB
Plaintext
cpp_library(
|
|
name = 'util',
|
|
srcs = [
|
|
'ScopedServerThread.cpp',
|
|
'ServerCreatorBase.cpp',
|
|
'SyncServerCreator.cpp',
|
|
'TSimpleServerCreator.cpp',
|
|
'TThreadedServerCreator.cpp',
|
|
'TThreadPoolServerCreator.cpp',
|
|
],
|
|
deps = [
|
|
'@/thrift/lib/cpp/server',
|
|
'@/thrift/lib/cpp/protocol',
|
|
'@/folly',
|
|
],
|
|
)
|
|
|
|
cpp_library(
|
|
name = 'internal_util',
|
|
srcs = [
|
|
'VarintUtils.cpp',
|
|
],
|
|
deps = [
|
|
'@/folly',
|
|
],
|
|
external_deps = [
|
|
('gflags', None, 'gflags'),
|
|
('glog', None, 'glog'),
|
|
],
|
|
)
|
|
|
|
cpp_library(
|
|
name = 'nonblocking',
|
|
srcs = [
|
|
'TNonblockingServerCreator.cpp',
|
|
],
|
|
deps = [
|
|
':util',
|
|
'@/thrift/lib/cpp/server:nonblocking',
|
|
],
|
|
)
|
|
|
|
cpp_library(
|
|
name = 'async',
|
|
srcs = [
|
|
'TEventServerCreator.cpp',
|
|
],
|
|
deps = [
|
|
':util',
|
|
'@/thrift/lib/cpp/async',
|
|
],
|
|
)
|
|
|
|
cpp_library(
|
|
name = 'httpparser',
|
|
srcs = [
|
|
'THttpParser.cpp',
|
|
],
|
|
deps = [
|
|
'@/thrift/lib/cpp/transport',
|
|
],
|
|
)
|
|
|
|
cpp_unittest(
|
|
name = 'ThriftSerializerTest',
|
|
srcs = [ 'ThriftSerializerTest.cpp' ],
|
|
thrift_srcs = { 'ThriftSerializerTest.thrift' : [ ] },
|
|
thrift_cpp_options = 'templates',
|
|
deps = [ '@/common/strings:strings',
|
|
'@/common/fbunit',
|
|
],
|
|
)
|
|
|
|
|