1# These define the various source file listings of various modules
2# within the library.
3# This is included by the top-level CMakeLists.txt
4
5# couchbase_utils
6SET(LCB_UTILS_SRC
7    src/gethrtime.c
8    src/list.c
9    src/logging.c
10    src/ringbuffer.c)
11
12SET(LCB_UTILS_CXXSRC
13    src/strcodecs/base64.cc)
14
15# lcbio
16FILE(GLOB LCB_IO_SRC src/lcbio/*.c)
17FILE(GLOB LCB_IO_CXXSRC src/lcbio/*.cc)
18
19# memcached packets
20FILE(GLOB LCB_MC_SRC src/mc/*.c)
21FILE(GLOB LCB_MC_CXXSRC src/mc/*.cc)
22
23# read buffer management
24FILE(GLOB LCB_RDB_SRC src/rdb/*.c)
25
26# send buffer management
27FILE(GLOB LCB_NETBUF_SRC src/netbuf/*.c)
28
29# HTTP protocol management
30LIST(APPEND LCB_HT_SRC "contrib/http_parser/http_parser.c")
31
32SET(LCB_CORE_SRC
33    src/callbacks.c
34    src/iofactory.c)
35
36FILE(GLOB LCB_TRACING_SRC src/tracing/*.cc)
37
38SET(LCB_METRICS_SRC
39    src/metrics/caching_meter.cc
40    src/metrics/metrics.cc
41    src/metrics/metrics-internal.cc)
42if (LCB_USE_HDR_HISTOGRAM)
43    LIST(APPEND LCB_METRICS_SRC src/metrics/logging_meter.cc)
44endif()
45
46FILE(GLOB LCB_CAPI_SRC src/capi/*.cc)
47
48SET(LCB_CORE_CXXSRC
49    src/analytics/analytics.cc
50    src/analytics/analytics_handle.cc
51    src/auth.cc
52    src/bootstrap.cc
53    src/bucketconfig/bc_cccp.cc
54    src/bucketconfig/bc_file.cc
55    src/bucketconfig/bc_http.cc
56    src/bucketconfig/bc_static.cc
57    src/bucketconfig/confmon.cc
58    src/cntl.cc
59    src/collections.cc
60    src/connspec.cc
61    src/crypto.cc
62    src/defer.cc
63    src/dns-srv.cc
64    src/docreq/docreq.cc
65    src/dump.cc
66    src/errmap.cc
67    src/getconfig.cc
68    src/handler.cc
69    src/hostlist.cc
70    src/http/http.cc
71    src/http/http_io.cc
72    src/instance.cc
73    src/iometrics.cc
74    src/lcbht/lcbht.cc
75    src/mcserver/mcserver.cc
76    src/mcserver/negotiate.cc
77    src/n1ql/ixmgmt.cc
78    src/n1ql/n1ql-internal.cc
79    src/n1ql/n1ql.cc
80    src/n1ql/query_handle.cc
81    src/n1ql/query_utils.cc
82    src/newconfig.cc
83    src/nodeinfo.cc
84    src/operations/cbflush.cc
85    src/operations/counter.cc
86    src/operations/durability-seqno.cc
87    src/operations/durability.cc
88    src/operations/exists.cc
89    src/operations/get.cc
90    src/operations/get_replica.cc
91    src/operations/observe-seqno.cc
92    src/operations/observe.cc
93    src/operations/ping.cc
94    src/operations/pktfwd.cc
95    src/operations/remove.cc
96    src/operations/stats.cc
97    src/operations/store.cc
98    src/operations/subdoc.cc
99    src/operations/touch.cc
100    src/operations/unlock.cc
101    src/retrychk.cc
102    src/retryq.cc
103    src/rnd.cc
104    src/search/search.cc
105    src/search/search_handle.cc
106    src/settings.cc
107    src/utilities.cc
108    src/views/view.cc
109    src/views/view_handle.cc
110    src/wait.cc
111    ${LCB_METRICS_SRC}
112    ${LCB_TRACING_SRC}
113    ${LCB_CAPI_SRC}
114    )
115