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

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

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

ImportConfigsFrom('..')

INCPATHS('$INC')
INCPATHS('./include')
W
wangjiawei04 已提交
13
INCPATHS('$OUT_ROOT/baidu/third-party/rocksdb/output/include')
W
wangjiawei04 已提交
14

W
wangjiawei04 已提交
15 16
LIBS('$OUT_ROOT/baidu/third-party/rocksdb/output/lib/librocksdb.a')
LIBS('$OUT_ROOT/baidu/third-party/snappy/output/lib/libsnappy.a')
W
wangjiawei04 已提交
17 18

cpp_base_source_files = [
W
wangjiawei04 已提交
19
'./src/mock_param_dict_impl.cpp', './src/paddle_rocksdb.cpp', './src/aram_dict_mgr_impl.cpp', './src/rockskvdb_impl.cpp'
W
wangjiawei04 已提交
20
]
W
wangjiawei04 已提交
21 22 23
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 已提交
24

W
wangjiawei04 已提交
25 26 27
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 已提交
28 29 30 31 32

# Application

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

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