From 8761e8318a089f029ce5695e4ccfda95dce162d0 Mon Sep 17 00:00:00 2001 From: wangjiawei04 Date: Mon, 3 Jun 2019 10:10:14 +0800 Subject: [PATCH] add BCLOUD files Change-Id: I8435d4101a90b230128459eb479f5ac14d85675d --- BCLOUD | 3 +++ kvdb/BCLOUD | 31 +++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 kvdb/BCLOUD diff --git a/BCLOUD b/BCLOUD index d94570d8..789e2a1c 100644 --- a/BCLOUD +++ b/BCLOUD @@ -13,6 +13,8 @@ CONFIGS('baidu/base/baidu-rpc@ci-base') CONFIGS('baidu/third-party/gflags@v2.0.0@git_branch') CONFIGS('baidu/third-party/glog@v0.3.x@git_branch') CONFIGS('baidu/third-party/opencv@master@git_branch') +CONFIGS('baidu/third-party/rocksdb@6.2.fb@git_branch') + PROTOC('third-64/protobuf/output/bin/protoc') CONFIGS('baidu/paddlepaddle/paddle@v1.3.0_pb32@git_branch') @@ -26,4 +28,5 @@ Directory('predictor') Directory('inferencer-fluid-cpu') Directory('demo-serving') Directory('sdk-cpp') +Directory('kvdb') Directory('demo-client') diff --git a/kvdb/BCLOUD b/kvdb/BCLOUD new file mode 100644 index 00000000..93e3abf4 --- /dev/null +++ b/kvdb/BCLOUD @@ -0,0 +1,31 @@ +#edit-mode: -*- python -*- +#coding:utf-8 + +WORKROOT('../../../../') + +LDFLAGS() + +ImportConfigsFrom('..') + +INCPATHS('$INC') +INCPATHS('./include') + +LIBS('$OUT_ROOT/baidu//third-party/rocksdb/output/lib/librocksdb.a') + +cpp_base_source_files = [ +'mock_param_dict_impl.cpp', 'paddle_rocksdb.cpp', 'param_dict_mgr_impl.cpp', 'rockskvdb_impl.cpp' +] + +cpp_db_func_files = cpp_base_source_files.append('gtest_db_func.cpp') +cpp_db_thread_files = cpp_base_source_files.append('gtest_db_thread.cpp') +cpp_kvdb_test_files = cpp_base_source_files.append('gtest_kvdb.cpp') + +# Application + +HEADERS('./include/kvdb/*.h', '$INC/kvdb/') + +Application('kvdb_test', Sources(GLOB(' '.join(cpp_kvdb_test_files)))) +Application('db_func', Sources(GLOB(' '.join(cpp_db_func_files)))) +Application('db_thread', Sources(GLOB(' '.join(cpp_db_thread_files)))) + + -- GitLab