BCLOUD 1.1 KB
Newer Older
W
wangjiawei04 已提交
1 2 3 4 5
#edit-mode: -*- python -*-
#coding:utf-8

WORKROOT('../../../../')

W
wangjiawei04 已提交
6 7
CXXFLAGS('-g -pipe -W -Wall -fPIC -std=c++11')
LDFLAGS('-lpthread -lbz2 -lsnappy -lzlib')
W
wangjiawei04 已提交
8 9 10 11 12 13 14 15 16

ImportConfigsFrom('..')

INCPATHS('$INC')
INCPATHS('./include')

LIBS('$OUT_ROOT/baidu//third-party/rocksdb/output/lib/librocksdb.a')

cpp_base_source_files = [
W
wangjiawei04 已提交
17
'./src/mock_param_dict_impl.cpp', './src/paddle_rocksdb.cpp', './src/aram_dict_mgr_impl.cpp', './src/rockskvdb_impl.cpp'
W
wangjiawei04 已提交
18
]
W
wangjiawei04 已提交
19 20 21
cpp_db_func_files = list(cpp_base_source_files)
cpp_db_thread_files = list(cpp_base_source_files)
cpp_kvdb_test_files = list(cpp_base_source_files)
W
wangjiawei04 已提交
22

W
wangjiawei04 已提交
23 24 25
cpp_db_func_files.append('./src/gtest_db_func.cpp')
cpp_db_thread_files.append('./src/gtest_db_thread.cpp')
cpp_kvdb_test_files.append('./src/gtest_kvdb.cpp')
W
wangjiawei04 已提交
26 27 28 29 30

# Application

HEADERS('./include/kvdb/*.h', '$INC/kvdb/')

W
wangjiawei04 已提交
31
StaticLibrary('kvdb', Sources(GLOB(' '.join(cpp_base_source_files))));
W
wangjiawei04 已提交
32 33 34 35 36
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))))