integrate TDB
This commit is contained in:
parent
95324a5d12
commit
0a39e8fadb
|
@ -1,7 +1,24 @@
|
|||
set(META_DB_IMPL_LIST "BDB" "TDB")
|
||||
set(META_DB_IMPL "BDB" CACHE STRING "Use BDB as the default META implementation")
|
||||
set_property(CACHE META_DB_IMPL PROPERTY STRINGS ${META_DB_IMPL_LIST})
|
||||
|
||||
if(META_DB_IMPL IN_LIST META_DB_IMPL_LIST)
|
||||
message(STATUS "META DB Impl: ${META_DB_IMPL}==============")
|
||||
else()
|
||||
message(FATAL_ERROR "Invalid META DB IMPL: ${META_DB_IMPL}==============")
|
||||
endif()
|
||||
|
||||
aux_source_directory(src/meta META_SRC)
|
||||
if(${META_DB_IMPL} STREQUAL "BDB")
|
||||
list(REMOVE_ITEM META_SRC "src/meta/metaTDBImpl.c")
|
||||
elseif(${META_DB_IMPL} STREQUAL "TDB")
|
||||
list(REMOVE_ITEM META_SRC "src/meta/metaBDBImpl.c")
|
||||
endif()
|
||||
|
||||
aux_source_directory(src/tq TQ_SRC)
|
||||
aux_source_directory(src/tsdb TSDB_SRC)
|
||||
aux_source_directory(src/vnd VND_SRC)
|
||||
|
||||
list(APPEND
|
||||
VNODE_SRC
|
||||
${META_SRC}
|
||||
|
@ -22,7 +39,6 @@ target_link_libraries(
|
|||
PUBLIC util
|
||||
PUBLIC common
|
||||
PUBLIC transport
|
||||
PUBLIC bdb
|
||||
PUBLIC tfs
|
||||
PUBLIC wal
|
||||
PUBLIC scheduler
|
||||
|
@ -30,6 +46,12 @@ target_link_libraries(
|
|||
PUBLIC qworker
|
||||
)
|
||||
|
||||
if(${META_DB_IMPL} STREQUAL "BDB")
|
||||
target_link_libraries(vnode PUBLIC bdb)
|
||||
elseif(${META_DB_IMPL} STREQUAL "TDB")
|
||||
target_link_libraries(vnode PUBLIC tdb)
|
||||
endif()
|
||||
|
||||
if(${BUILD_TEST})
|
||||
# add_subdirectory(test)
|
||||
endif(${BUILD_TEST})
|
||||
|
|
Loading…
Reference in New Issue