BCLOUD 1014 字节
Newer Older
W
wangjiawei04 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#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 = [
W
wangjiawei04 已提交
16
'./src/mock_param_dict_impl.cpp', './src/paddle_rocksdb.cpp', './src/aram_dict_mgr_impl.cpp', './src/rockskvdb_impl.cpp'
W
wangjiawei04 已提交
17
]
W
wangjiawei04 已提交
18 19 20
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 已提交
21

W
wangjiawei04 已提交
22 23 24
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 已提交
25 26 27 28 29

# Application

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

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