CMakeLists.txt 2.3 KB
Newer Older
H
Hongze Cheng 已提交
1 2 3 4 5
# vnode
add_library(vnode STATIC "")
target_sources(
    vnode
    PRIVATE
H
Hongze Cheng 已提交
6

H
Hongze Cheng 已提交
7
    # vnode
H
Hongze Cheng 已提交
8
    "src/vnd/vnodeOpen.c"
H
Hongze Cheng 已提交
9
    "src/vnd/vnodeBufPool.c"
H
Hongze Cheng 已提交
10 11 12
    "src/vnd/vnodeCfg.c"
    "src/vnd/vnodeCommit.c"
    "src/vnd/vnodeQuery.c"
H
Hongze Cheng 已提交
13
    "src/vnd/vnodeModule.c"
H
Hongze Cheng 已提交
14
    "src/vnd/vnodeSvr.c"
M
Minghao Li 已提交
15
    "src/vnd/vnodeSync.c"
H
Hongze Cheng 已提交
16
    "src/vnd/vnodeSnapshot.c"
H
Hongze Cheng 已提交
17
    "src/vnd/vnodeCompact.c"
H
Hongze Cheng 已提交
18
    "src/vnd/vnodeRetention.c"
H
Hongze Cheng 已提交
19

H
Hongze Cheng 已提交
20
    # meta
H
Hongze Cheng 已提交
21
    "src/meta/metaOpen.c"
H
Hongze Cheng 已提交
22 23
    "src/meta/metaIdx.c"
    "src/meta/metaTable.c"
24
    "src/meta/metaSma.c"
H
Hongze Cheng 已提交
25
    "src/meta/metaQuery.c"
H
Hongze Cheng 已提交
26
    "src/meta/metaCommit.c"
H
Hongze Cheng 已提交
27
    "src/meta/metaEntry.c"
H
Hongze Cheng 已提交
28
    "src/meta/metaSnapshot.c"
H
Hongze Cheng 已提交
29
    "src/meta/metaCache.c"
H
Hongze Cheng 已提交
30

31 32
    # sma
    "src/sma/smaEnv.c"
C
Cary Xu 已提交
33
    "src/sma/smaUtil.c"
34
    "src/sma/smaFS.c"
35
    "src/sma/smaOpen.c"
C
Cary Xu 已提交
36
    "src/sma/smaCommit.c"
37
    "src/sma/smaRollup.c"
C
Cary Xu 已提交
38
    "src/sma/smaSnapshot.c"
C
Cary Xu 已提交
39
    "src/sma/smaTimeRange.c"
40

H
Hongze Cheng 已提交
41 42 43 44
    # tsdb
    "src/tsdb/tsdbCommit.c"
    "src/tsdb/tsdbFile.c"
    "src/tsdb/tsdbFS.c"
H
Hongze Cheng 已提交
45
    "src/tsdb/tsdbOpen.c"
H
Hongze Cheng 已提交
46 47
    "src/tsdb/tsdbMemTable.c"
    "src/tsdb/tsdbRead.c"
48
    "src/tsdb/tsdbCache.c"
H
Hongze Cheng 已提交
49
    "src/tsdb/tsdbWrite.c"
H
refact  
Hongze Cheng 已提交
50
    "src/tsdb/tsdbReaderWriter.c"
H
Hongze Cheng 已提交
51
    "src/tsdb/tsdbUtil.c"
H
Hongze Cheng 已提交
52
    "src/tsdb/tsdbSnapshot.c"
53
    "src/tsdb/tsdbCacheRead.c"
H
Hongze Cheng 已提交
54
    "src/tsdb/tsdbRetention.c"
H
Hongze Cheng 已提交
55
    "src/tsdb/tsdbDiskData.c"
H
Hongze Cheng 已提交
56
    "src/tsdb/tsdbCompact.c"
H
Hongze Cheng 已提交
57
    "src/tsdb/tsdbMergeTree.c"
H
Hongze Cheng 已提交
58
    "src/tsdb/tsdbDataIter.c"
H
Hongze Cheng 已提交
59

H
Hongze Cheng 已提交
60 61
    # tq
    "src/tq/tq.c"
L
Liu Jicong 已提交
62
    "src/tq/tqExec.c"
L
Liu Jicong 已提交
63
    "src/tq/tqMeta.c"
H
Hongze Cheng 已提交
64
    "src/tq/tqRead.c"
L
Liu Jicong 已提交
65
    "src/tq/tqOffset.c"
L
Liu Jicong 已提交
66 67 68
    "src/tq/tqPush.c"
    "src/tq/tqSink.c"
    "src/tq/tqCommit.c"
L
Liu Jicong 已提交
69 70
    "src/tq/tqSnapshot.c"
    "src/tq/tqOffsetSnapshot.c"
H
Hongze Cheng 已提交
71 72 73
)
target_include_directories(
    vnode
H
Hongze Cheng 已提交
74 75
    PUBLIC "inc"
    PRIVATE "src/inc"
dengyihao's avatar
dengyihao 已提交
76
    PUBLIC "${TD_SOURCE_DIR}/include/libs/scalar"
H
Hongze Cheng 已提交
77 78 79 80 81 82 83 84 85
)
target_link_libraries(
    vnode
    PUBLIC os
    PUBLIC util
    PUBLIC common
    PUBLIC tfs
    PUBLIC wal
    PUBLIC qworker
S
Shengliang Guan 已提交
86
    PUBLIC sync
H
Hongze Cheng 已提交
87 88
    PUBLIC executor
    PUBLIC scheduler
H
Hongze Cheng 已提交
89
    PUBLIC tdb
H
Hongze Cheng 已提交
90 91 92

    # PUBLIC bdb
    # PUBLIC scalar
H
Hongze Cheng 已提交
93 94
    PUBLIC transport
    PUBLIC stream
dengyihao's avatar
dengyihao 已提交
95
    PUBLIC index
H
Hongze Cheng 已提交
96
)
M
Minglei Jin 已提交
97 98 99 100 101

IF (TD_GRANT)
  TARGET_LINK_LIBRARIES(vnode PUBLIC grant)
ENDIF ()

H
Hongze Cheng 已提交
102
target_compile_definitions(vnode PUBLIC -DMETA_REFACT)
H
Hongze Cheng 已提交
103 104 105

if(${BUILD_WITH_INVERTEDINDEX})
    add_definitions(-DUSE_INVERTED_INDEX)
dengyihao's avatar
dengyihao 已提交
106
endif(${BUILD_WITH_INVERTEDINDEX})
H
Hongze Cheng 已提交
107

H
Hongze Cheng 已提交
108
if(${BUILD_TEST})
C
Cary Xu 已提交
109
    add_subdirectory(test)
H
Hongze Cheng 已提交
110
endif(${BUILD_TEST})