This commit is contained in:
Hongze Cheng 2021-09-22 16:05:46 +08:00
parent 4c7993afbb
commit 79aff97033
27 changed files with 116 additions and 0 deletions

View File

@ -0,0 +1,27 @@
/*
* Copyright (c) 2019 TAOS Data, Inc. <jhtao@taosdata.com>
*
* This program is free software: you can use, redistribute, and/or modify
* it under the terms of the GNU Affero General Public License, version 3
* or later ("AGPL"), as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _TD_INDEX_H_
#define _TD_INDEX_H_
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
}
#endif
#endif /*_TD_INDEX_H_*/

5
source/CMakeLists.txt Normal file
View File

@ -0,0 +1,5 @@
add_subdirectory(os)
add_subdirectory(util)
add_subdirectory(common)
add_subdirectory(lib)
add_subdirectory(dnode)

View File

@ -0,0 +1,2 @@
aux_source_directory(src CLIENT_SRC)
add_library(taos ${CLIENT_SRC})

View File

View File

@ -0,0 +1,4 @@
add_subdirectory(asvc)
add_subdirectory(raft)
add_subdirectory(tkv)
add_subdirectory(index)

View File

@ -0,0 +1,7 @@
aux_source_directory(src ASVC_SRC)
add_library(asvc ${ASVC_SRC})
target_include_directories(
asvc
PUBLIC "${CMAKE_SOURCE_DIR}/include/libs/asvc"
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc"
)

View File

@ -0,0 +1,7 @@
aux_source_directory(src INDEX_SRC)
add_library(index ${INDEX_SRC})
target_include_directories(
index
PUBLIC "${CMAKE_SOURCE_DIR}/include/libs/index"
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc"
)

View File

@ -0,0 +1,7 @@
aux_source_directory(src RAFT_SRC)
add_library(raft ${RAFT_SRC})
target_include_directories(
raft
PUBLIC "${CMAKE_SOURCE_DIR}/include/libs/raft"
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc"
)

View File

@ -0,0 +1,7 @@
aux_source_directory(src TKV_SRC)
add_library(tkv ${TKV_SRC})
target_include_directories(
tkv
PUBLIC "${CMAKE_SOURCE_DIR}/include/libs/tkv"
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc"
)

7
source/os/CMakeLists.txt Normal file
View File

@ -0,0 +1,7 @@
aux_source_directory(src OS_SRC)
add_library(os ${OS_SRC})
target_include_directories(
os
PUBLIC "${CMAKE_SOURCE_DIR}/include/os"
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/include"
)

14
source/os/src/os.c Normal file
View File

@ -0,0 +1,14 @@
/*
* Copyright (c) 2019 TAOS Data, Inc. <jhtao@taosdata.com>
*
* This program is free software: you can use, redistribute, and/or modify
* it under the terms of the GNU Affero General Public License, version 3
* or later ("AGPL"), as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

View File

@ -0,0 +1 @@
add

View File

@ -0,0 +1,7 @@
aux_source_directory(src MNODE_SRC)
add_library(mnode ${MNODE_SRC})
target_include_directories(
mnode
PUBLIC "${CMAKE_SOURCE_DIR}/include/server/mnode"
private "${CMAKE_CURRENT_SOURCE_DIR}/inc"
)

View File

@ -0,0 +1,7 @@
aux_source_directory(src QNODE_SRC)
add_library(qnode ${QNODE_SRC})
target_include_directories(
qnode
PUBLIC "${CMAKE_SOURCE_DIR}/include/server/qnode"
private "${CMAKE_CURRENT_SOURCE_DIR}/inc"
)

View File

@ -0,0 +1,7 @@
aux_source_directory(src VNODE_SRC)
add_library(vnode ${VNODE_SRC})
target_include_directories(
vnode
PUBLIC "${CMAKE_SOURCE_DIR}/include/server/vnode"
private "${CMAKE_CURRENT_SOURCE_DIR}/inc"
)

View File

@ -0,0 +1,7 @@
aux_source_directory(src UTIL_SRC)
add_library(util ${UTIL_SRC})
target_include_directories(
util
PUBLIC "${CMAKE_SOURCE_DIR}/include/util"
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/include"
)