-
Notifications
You must be signed in to change notification settings - Fork 89
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
808 lines (757 loc) · 27.8 KB
/
CMakeLists.txt
File metadata and controls
808 lines (757 loc) · 27.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
# ystdlib requires CMake v3.23 or higher
cmake_minimum_required(VERSION 3.23)
project(CLP LANGUAGES CXX C)
# Toolchain validation
include("${CMAKE_CURRENT_SOURCE_DIR}/cmake/Toolchains/utils.cmake")
validate_compiler_versions()
# Include options for CLP build
include("${CMAKE_CURRENT_SOURCE_DIR}/cmake/Options/options.cmake")
validate_and_setup_all_clp_dependency_flags()
convert_clp_dependency_properties_to_variables()
if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
set(default_build_type "Release")
message(STATUS "No build type specified. Setting to '${default_build_type}'.")
set(CMAKE_BUILD_TYPE "${default_build_type}" CACHE STRING "Choose the type of build." FORCE)
endif()
if (CMAKE_BUILD_TYPE MATCHES "Release")
include(CheckIPOSupported)
check_ipo_supported(RESULT IPO_SUPPORTED OUTPUT)
if(IPO_SUPPORTED)
message(STATUS "Link-time optimization enabled.")
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION ON)
endif()
endif()
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
# Set general compressor
set(GENERAL_COMPRESSOR "zstd" CACHE STRING "The general-purpose compressor used as the 2nd-stage compressor")
set_property(CACHE GENERAL_COMPRESSOR PROPERTY STRINGS lzma passthrough zstd)
if ("${GENERAL_COMPRESSOR}" STREQUAL "lzma")
add_definitions(-DUSE_LZMA_COMPRESSION=1)
message(STATUS "Using Lempel–Ziv–Markov chain Algorithm compression")
elseif ("${GENERAL_COMPRESSOR}" STREQUAL "passthrough")
add_definitions(-DUSE_PASSTHROUGH_COMPRESSION=1)
message(STATUS "Using passthrough compression")
elseif ("${GENERAL_COMPRESSOR}" STREQUAL "zstd")
add_definitions(-DUSE_ZSTD_COMPRESSION=1)
message(STATUS "Using Zstandard compression")
else()
message(SEND_ERROR "GENERAL_COMPRESSOR=${GENERAL_COMPRESSOR} is unimplemented.")
endif()
# Add local CMake module directory to CMake's modules path
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
# Macro providing the length of the absolute source directory path so we can
# create a relative (rather than absolute) __FILE__ macro
string(LENGTH "${CMAKE_SOURCE_DIR}/" SOURCE_PATH_SIZE)
add_definitions("-DSOURCE_PATH_SIZE=${SOURCE_PATH_SIZE}")
# Profiling options
add_definitions(-DPROF_ENABLED=0)
# Compile-in debug logging statements
#add_definitions(-DSPDLOG_ACTIVE_LEVEL=SPDLOG_LEVEL_DEBUG)
# Flush to disk switch
add_definitions(-DFLUSH_TO_DISK_ENABLED=1)
# Make off_t 64-bit
add_definitions(-D_FILE_OFFSET_BITS=64)
# Ensure we're compiling for a little-endian machine (we don't support big-endian)
include(TestBigEndian)
TEST_BIG_ENDIAN(IS_BIG_ENDIAN)
if (IS_BIG_ENDIAN)
message(FATAL_ERROR "Big-endian machines are not supported")
endif()
# Detect linking mode (static or shared); Default to static.
set(CLP_USE_STATIC_LIBS ON CACHE BOOL "Whether to link against static libraries")
if (CLP_USE_STATIC_LIBS)
if (APPLE)
set(CLP_STATIC_LIBS_UNSUPPORTED_PLATFORM "macOS")
elseif (EXISTS "/etc/centos-release")
# NOTE:
# 1. We don't support static linking on any CentOS-based distro except manylinux_2_28 (which
# shows up as "AlmaLinux").
# 2. A release called "AlmaLinux" doesn't guarantee we're running on a manylinux distro, but
# we can improve this check when someone reports an issue.
file(READ "/etc/centos-release" CENTOS_RELEASE_CONTENT)
if(NOT "${CENTOS_RELEASE_CONTENT}" MATCHES "AlmaLinux")
set(CLP_STATIC_LIBS_UNSUPPORTED_PLATFORM "CentOS")
endif()
endif()
if (DEFINED CLP_STATIC_LIBS_UNSUPPORTED_PLATFORM)
message(
AUTHOR_WARNING
"Building with static libraries is unsupported on"
" ${CLP_STATIC_LIBS_UNSUPPORTED_PLATFORM}. Switching to shared libraries.")
set(CLP_USE_STATIC_LIBS OFF)
endif()
endif ()
if(CLP_USE_STATIC_LIBS)
set(CLP_LIBS_STRING "static")
else()
set(CLP_LIBS_STRING "shared")
endif()
message(STATUS "Building using ${CLP_LIBS_STRING} libraries")
# Link against c++fs if required by the compiler being used
set(STD_FS_LIBS "")
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS "9.1.0")
set(STD_FS_LIBS "stdc++fs")
endif ()
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS "9.0.0")
set(STD_FS_LIBS "c++fs")
endif ()
endif ()
if(PROJECT_IS_TOP_LEVEL)
# Include dependency settings if the project isn't being included as a subproject.
# NOTE: We mark the file optional since it's not required if the user happens to have the
# dependencies installed already.
set(CLP_DEPS_CPP_DIR "${CMAKE_SOURCE_DIR}/../../build/deps/cpp")
include("${CLP_DEPS_CPP_DIR}/cmake-settings/all-core.cmake"
OPTIONAL
RESULT_VARIABLE CLP_DEPS_CPP_CORE_SETTINGS_FILE_PATH
)
if(NOT CLP_DEPS_CPP_CORE_SETTINGS_FILE_PATH STREQUAL "NOTFOUND")
# Set CMP0144 since our minimum required CMake version is less than 3.27.
if(POLICY "CMP0144")
cmake_policy(SET "CMP0144" "NEW")
endif()
endif()
# If previously undefined, `BUILD_TESTING` will be set to ON.
include(CTest)
endif()
if(BUILD_TESTING AND CLP_BUILD_TESTING)
set(CLP_ENABLE_TESTS ON)
endif()
if(CLP_NEED_ABSL)
find_package(absl REQUIRED)
if (absl_FOUND)
message(STATUS "Found absl ${absl_VERSION}")
endif()
endif()
# Find and setup ANTLR Library
if(CLP_NEED_ANTLR)
find_package(antlr4-runtime REQUIRED)
if (antlr4-runtime_FOUND)
message(STATUS "Found antlr4-runtime ${antlr4-runtime_VERSION}")
endif()
endif()
# Find and setup Boost Library
if(CLP_NEED_BOOST)
if(CLP_USE_STATIC_LIBS)
set(Boost_USE_STATIC_LIBS ON)
endif()
find_package(
Boost
1.81...1.88
REQUIRED
filesystem
iostreams
program_options
regex
system
url
)
message(STATUS "Found Boost ${Boost_VERSION}")
endif()
if(CLP_NEED_CATCH2)
find_package(Catch2 3.8.0 REQUIRED)
message(STATUS "Found Catch2 ${Catch2_VERSION}")
endif()
if(CLP_NEED_DATE)
find_package(date REQUIRED)
if (date_FOUND)
message(STATUS "Found date ${date_VERSION}")
endif()
endif()
if(CLP_NEED_FMT)
find_package(fmt REQUIRED)
if(fmt_FOUND)
message(STATUS "Found fmt ${fmt_VERSION}")
endif()
endif()
if(CLP_NEED_LOG_SURGEON)
find_package(log_surgeon REQUIRED)
if(log_surgeon_FOUND)
message(STATUS "Found log_surgeon ${log_surgeon_VERSION}")
endif()
endif()
if(CLP_NEED_NLOHMANN_JSON)
find_package(nlohmann_json REQUIRED)
if(nlohmann_json_FOUND)
message(STATUS "Found nlohmann_json ${nlohmann_json_VERSION}")
endif()
endif()
if(CLP_NEED_SIMDJSON)
find_package(simdjson REQUIRED)
if(simdjson_FOUND)
message(STATUS "Found simdjson ${simdjson_VERSION}")
endif()
endif()
if(CLP_NEED_SPDLOG)
find_package(spdlog REQUIRED)
if(spdlog_FOUND)
message(STATUS "Found spdlog ${spdlog_VERSION}")
endif()
endif()
# Find and setup libarchive
if(CLP_NEED_LIBARCHIVE)
if(CLP_USE_STATIC_LIBS)
set(LibArchive_USE_STATIC_LIBS ON)
endif()
find_package(LibArchive REQUIRED)
if(LibArchive_FOUND)
message(STATUS "Found LibArchive ${LibArchive_VERSION}")
else()
message(FATAL_ERROR "Could not find ${CLP_LIBS_STRING} libraries for LibArchive")
endif()
endif()
# Find and setup libcurl
# By default, CURL does not provide static libraries
if(CLP_NEED_CURL)
find_package(CURL 7.61.1 REQUIRED)
if(CURL_FOUND)
message(STATUS "Found CURL ${CURL_VERSION_STRING}")
else()
message(FATAL_ERROR "Could not find ${CLP_LIBS_STRING} libraries for CURL")
endif()
endif()
# Find OpenSSL
if(CLP_NEED_OPENSSL)
find_package(OpenSSL REQUIRED)
if(OPENSSL_FOUND)
message(STATUS "Found OpenSSL (${OPENSSL_VERSION})")
else()
message(FATAL_ERROR "OpenSSL not found")
endif()
endif()
# Find and setup MariaDBClient library
if(CLP_NEED_MARIADB)
if(CLP_USE_STATIC_LIBS)
# NOTE: We can't statically link to MariaDBClient since it's GPL
message(AUTHOR_WARNING "MariaDBClient cannot be statically linked due to its license.")
endif()
find_package(MariaDBClient 3.1.0 REQUIRED)
if(MariaDBClient_FOUND)
message(STATUS "Found MariaDBClient ${MariaDBClient_VERSION}")
else()
message(FATAL_ERROR "Could not find ${CLP_LIBS_STRING} libraries for MariaDBClient")
endif()
endif()
# Find and setup mongocxx
if(CLP_NEED_MONGOCXX)
find_package(mongocxx REQUIRED)
message(STATUS "Found mongocxx ${mongocxx_VERSION}")
if(CLP_USE_STATIC_LIBS)
set(MONGOCXX_TARGET mongo::mongocxx_static)
else()
set(MONGOCXX_TARGET mongo::mongocxx_shared)
endif()
endif()
# Find and setup msgpack-cxx
if(CLP_NEED_MSGPACKCXX)
find_package(msgpack-cxx 7.0.0 REQUIRED)
message(STATUS "Found msgpack-cxx ${msgpack-cxx_VERSION}")
endif()
find_package(Threads REQUIRED)
if(CLP_NEED_YAMLCPP)
find_package(yaml-cpp REQUIRED)
if(yaml-cpp_FOUND)
message(STATUS "Found yaml-cpp ${yaml-cpp_VERSION}")
endif()
endif()
# Add ystdlib
if(CLP_NEED_YSTDLIB)
find_package(ystdlib REQUIRED)
message(STATUS "Found ystdlib-cpp ${ystdlib_VERSION}")
endif()
if(CLP_NEED_ZSTD)
# v1.4.8 is the lowest version available in the package managers of the OSes we support.
find_package(zstd 1.4.8 REQUIRED)
message(STATUS "Found zstd ${zstd_VERSION}")
endif()
if(CLP_NEED_LIBLZMA)
if(CLP_USE_STATIC_LIBS)
set(LibLZMA_ROOT ${LibLZMA-static_ROOT})
set(LibLZMA_USE_STATIC_LIBS ON)
else()
set(LibLZMA_ROOT ${LibLZMA-shared_ROOT})
endif()
# Version 5.8.1 and above address CVE-2024-3094 and CVE-2025-31115.
find_package(LibLZMA 5.8.1 REQUIRED)
message(STATUS "Found LibLZMA ${LibLZMA_VERSION}")
endif()
# sqlite dependencies
if(CLP_NEED_SQLITE)
set(sqlite_DYNAMIC_LIBS "dl;m;pthread")
include(cmake/Modules/FindLibraryDependencies.cmake)
FindDynamicLibraryDependencies(sqlite "${sqlite_DYNAMIC_LIBS}")
endif()
add_subdirectory(src/clp/regex_utils)
add_subdirectory(src/clp/string_utils)
add_subdirectory(src/clp/clg)
add_subdirectory(src/clp/clo)
add_subdirectory(src/clp/clp)
add_subdirectory(src/glt/glt)
add_subdirectory(src/clp/make_dictionaries_readable)
add_subdirectory(src/clp_s)
add_subdirectory(src/reducer)
set(SOURCE_FILES_clp_s_unitTest
src/clp_s/ArchiveReader.cpp
src/clp_s/ArchiveReader.hpp
src/clp_s/ArchiveReaderAdaptor.cpp
src/clp_s/ArchiveReaderAdaptor.hpp
src/clp_s/ArchiveWriter.cpp
src/clp_s/ArchiveWriter.hpp
src/clp_s/ColumnReader.cpp
src/clp_s/ColumnReader.hpp
src/clp_s/ColumnWriter.cpp
src/clp_s/ColumnWriter.hpp
src/clp_s/DictionaryEntry.cpp
src/clp_s/DictionaryEntry.hpp
src/clp_s/DictionaryWriter.cpp
src/clp_s/DictionaryWriter.hpp
src/clp_s/FileReader.cpp
src/clp_s/FileReader.hpp
src/clp_s/FileWriter.cpp
src/clp_s/FileWriter.hpp
src/clp_s/FloatFormatEncoding.cpp
src/clp_s/FloatFormatEncoding.hpp
src/clp_s/InputConfig.cpp
src/clp_s/InputConfig.hpp
src/clp_s/JsonConstructor.cpp
src/clp_s/JsonConstructor.hpp
src/clp_s/JsonFileIterator.cpp
src/clp_s/JsonFileIterator.hpp
src/clp_s/JsonParser.cpp
src/clp_s/JsonParser.hpp
src/clp_s/OutputHandlerImpl.cpp
src/clp_s/OutputHandlerImpl.hpp
src/clp_s/PackedStreamReader.cpp
src/clp_s/PackedStreamReader.hpp
src/clp_s/RangeIndexWriter.cpp
src/clp_s/RangeIndexWriter.hpp
src/clp_s/ReaderUtils.cpp
src/clp_s/ReaderUtils.hpp
src/clp_s/Schema.cpp
src/clp_s/Schema.hpp
src/clp_s/SchemaMap.cpp
src/clp_s/SchemaMap.hpp
src/clp_s/SchemaReader.cpp
src/clp_s/SchemaReader.hpp
src/clp_s/SchemaTree.cpp
src/clp_s/SchemaTree.hpp
src/clp_s/SchemaWriter.cpp
src/clp_s/SchemaWriter.hpp
src/clp_s/search/AddTimestampConditions.cpp
src/clp_s/search/AddTimestampConditions.hpp
src/clp_s/search/EvaluateRangeIndexFilters.cpp
src/clp_s/search/EvaluateRangeIndexFilters.hpp
src/clp_s/search/EvaluateTimestampIndex.cpp
src/clp_s/search/EvaluateTimestampIndex.hpp
src/clp_s/search/Output.cpp
src/clp_s/search/Output.hpp
src/clp_s/search/OutputHandler.hpp
src/clp_s/search/Projection.cpp
src/clp_s/search/Projection.hpp
src/clp_s/search/QueryRunner.cpp
src/clp_s/search/QueryRunner.hpp
src/clp_s/search/SchemaMatch.cpp
src/clp_s/search/SchemaMatch.hpp
src/clp_s/test/test_InputConfig.cpp
src/clp_s/TimestampDictionaryReader.cpp
src/clp_s/TimestampDictionaryReader.hpp
src/clp_s/TimestampDictionaryWriter.cpp
src/clp_s/TimestampDictionaryWriter.hpp
src/clp_s/TimestampEntry.cpp
src/clp_s/TimestampEntry.hpp
src/clp_s/timestamp_parser/test/test_TimestampParser.cpp
src/clp_s/Utils.cpp
src/clp_s/Utils.hpp
src/clp_s/ZstdCompressor.cpp
src/clp_s/ZstdCompressor.hpp
src/clp_s/ZstdDecompressor.cpp
src/clp_s/ZstdDecompressor.hpp
)
set(SOURCE_FILES_reducer_unitTest
src/reducer/BufferedSocketWriter.cpp
src/reducer/BufferedSocketWriter.hpp
src/reducer/ConstRecordIterator.hpp
src/reducer/CountOperator.cpp
src/reducer/CountOperator.hpp
src/reducer/DeserializedRecordGroup.cpp
src/reducer/DeserializedRecordGroup.hpp
src/reducer/GroupTags.hpp
src/reducer/network_utils.cpp
src/reducer/network_utils.hpp
src/reducer/Operator.cpp
src/reducer/Operator.hpp
src/reducer/Pipeline.cpp
src/reducer/Pipeline.hpp
src/reducer/Record.hpp
src/reducer/RecordGroup.hpp
src/reducer/RecordGroupIterator.hpp
src/reducer/RecordTypedKeyIterator.hpp
src/reducer/types.hpp
)
set(SOURCE_FILES_unitTest
"${CLP_SQLITE3_SOURCE_DIRECTORY}/sqlite3.c"
src/clp/aws/AwsAuthenticationSigner.cpp
src/clp/aws/AwsAuthenticationSigner.hpp
src/clp/aws/constants.hpp
src/clp/aws/test/test_AwsAuthenticationSigner.cpp
src/clp/BoundedReader.cpp
src/clp/BoundedReader.hpp
src/clp/BufferedReader.cpp
src/clp/BufferedReader.hpp
src/clp/BufferReader.cpp
src/clp/BufferReader.hpp
src/clp/clp/CommandLineArguments.cpp
src/clp/clp/CommandLineArguments.hpp
src/clp/clp/compression.cpp
src/clp/clp/compression.hpp
src/clp/clp/decompression.cpp
src/clp/clp/decompression.hpp
src/clp/clp/FileCompressor.cpp
src/clp/clp/FileCompressor.hpp
src/clp/clp/FileDecompressor.cpp
src/clp/clp/FileDecompressor.hpp
src/clp/clp/FileToCompress.hpp
src/clp/clp/run.cpp
src/clp/clp/run.hpp
src/clp/clp/utils.cpp
src/clp/clp/utils.hpp
src/clp/CurlDownloadHandler.cpp
src/clp/CurlDownloadHandler.hpp
src/clp/CurlEasyHandle.hpp
src/clp/CurlGlobalInstance.cpp
src/clp/CurlGlobalInstance.hpp
src/clp/CurlOperationFailed.hpp
src/clp/CurlStringList.hpp
src/clp/database_utils.cpp
src/clp/database_utils.hpp
src/clp/Defs.h
src/clp/dictionary_utils.cpp
src/clp/dictionary_utils.hpp
src/clp/DictionaryEntry.hpp
src/clp/DictionaryReader.hpp
src/clp/DictionaryWriter.hpp
src/clp/EncodedVariableInterpreter.cpp
src/clp/EncodedVariableInterpreter.hpp
src/clp/ErrorCode.hpp
src/clp/ffi/EncodedTextAst.hpp
src/clp/ffi/EncodedTextAstError.cpp
src/clp/ffi/EncodedTextAstError.hpp
src/clp/ffi/encoding_methods.cpp
src/clp/ffi/encoding_methods.hpp
src/clp/ffi/encoding_methods.inc
src/clp/ffi/test/test_EncodedTextAst.cpp
src/clp/ffi/test/test_StringBlob.cpp
src/clp/ffi/ir_stream/byteswap.hpp
src/clp/ffi/ir_stream/Deserializer.hpp
src/clp/ffi/ir_stream/decoding_methods.cpp
src/clp/ffi/ir_stream/decoding_methods.hpp
src/clp/ffi/ir_stream/decoding_methods.inc
src/clp/ffi/ir_stream/encoding_methods.cpp
src/clp/ffi/ir_stream/encoding_methods.hpp
src/clp/ffi/ir_stream/IrErrorCode.cpp
src/clp/ffi/ir_stream/IrErrorCode.hpp
src/clp/ffi/ir_stream/IrSerializationError.cpp
src/clp/ffi/ir_stream/IrSerializationError.hpp
src/clp/ffi/ir_stream/IrUnitHandlerReq.hpp
src/clp/ffi/ir_stream/IrUnitType.hpp
src/clp/ffi/ir_stream/ir_unit_deserialization_methods.cpp
src/clp/ffi/ir_stream/ir_unit_deserialization_methods.hpp
src/clp/ffi/ir_stream/protocol_constants.hpp
src/clp/ffi/ir_stream/Serializer.cpp
src/clp/ffi/ir_stream/Serializer.hpp
src/clp/ffi/ir_stream/search/AstEvaluationResult.hpp
src/clp/ffi/ir_stream/search/ErrorCode.cpp
src/clp/ffi/ir_stream/search/ErrorCode.hpp
src/clp/ffi/ir_stream/search/NewProjectedSchemaTreeNodeCallbackReq.hpp
src/clp/ffi/ir_stream/search/QueryHandler.hpp
src/clp/ffi/ir_stream/search/QueryHandlerImpl.cpp
src/clp/ffi/ir_stream/search/QueryHandlerImpl.hpp
src/clp/ffi/ir_stream/search/QueryHandlerReq.hpp
src/clp/ffi/ir_stream/search/test/test_deserializer_integration.cpp
src/clp/ffi/ir_stream/search/test/test_QueryHandlerImpl.cpp
src/clp/ffi/ir_stream/search/test/test_utils.cpp
src/clp/ffi/ir_stream/search/test/utils.cpp
src/clp/ffi/ir_stream/search/test/utils.hpp
src/clp/ffi/ir_stream/search/utils.cpp
src/clp/ffi/ir_stream/search/utils.hpp
src/clp/ffi/ir_stream/utils.cpp
src/clp/ffi/ir_stream/utils.hpp
src/clp/ffi/KeyValuePairLogEvent.cpp
src/clp/ffi/KeyValuePairLogEvent.hpp
src/clp/ffi/SchemaTree.cpp
src/clp/ffi/SchemaTree.hpp
src/clp/ffi/search/CompositeWildcardToken.cpp
src/clp/ffi/search/CompositeWildcardToken.hpp
src/clp/ffi/search/ExactVariableToken.cpp
src/clp/ffi/search/ExactVariableToken.hpp
src/clp/ffi/search/query_methods.cpp
src/clp/ffi/search/query_methods.hpp
src/clp/ffi/search/QueryMethodFailed.hpp
src/clp/ffi/search/QueryToken.hpp
src/clp/ffi/search/QueryWildcard.cpp
src/clp/ffi/search/QueryWildcard.hpp
src/clp/ffi/search/Subquery.cpp
src/clp/ffi/search/Subquery.hpp
src/clp/ffi/search/WildcardToken.cpp
src/clp/ffi/search/WildcardToken.hpp
src/clp/ffi/StringBlob.hpp
src/clp/ffi/utils.cpp
src/clp/ffi/utils.hpp
src/clp/ffi/Value.hpp
src/clp/FileDescriptor.cpp
src/clp/FileDescriptor.hpp
src/clp/FileDescriptorReader.cpp
src/clp/FileDescriptorReader.hpp
src/clp/FileReader.cpp
src/clp/FileReader.hpp
src/clp/FileWriter.cpp
src/clp/FileWriter.hpp
src/clp/global_metadata_db_utils.hpp
src/clp/global_metadata_db_utils.cpp
src/clp/GlobalMetadataDB.hpp
src/clp/GlobalMetadataDBConfig.cpp
src/clp/GlobalMetadataDBConfig.hpp
src/clp/GlobalMySQLMetadataDB.cpp
src/clp/GlobalMySQLMetadataDB.hpp
src/clp/GlobalSQLiteMetadataDB.cpp
src/clp/GlobalSQLiteMetadataDB.hpp
src/clp/Grep.cpp
src/clp/Grep.hpp
src/clp/GrepCore.cpp
src/clp/GrepCore.hpp
src/clp/hash_utils.cpp
src/clp/hash_utils.hpp
src/clp/SchemaSearcher.cpp
src/clp/SchemaSearcher.hpp
src/clp/ir/constants.hpp
src/clp/ir/EncodedTextAst.cpp
src/clp/ir/EncodedTextAst.hpp
src/clp/ir/LogEvent.hpp
src/clp/ir/LogEventDeserializer.cpp
src/clp/ir/LogEventDeserializer.hpp
src/clp/ir/LogEventSerializer.cpp
src/clp/ir/LogEventSerializer.hpp
src/clp/ir/parsing.cpp
src/clp/ir/parsing.hpp
src/clp/ir/parsing.inc
src/clp/ir/types.hpp
src/clp/ir/utils.cpp
src/clp/ir/utils.hpp
src/clp/LibarchiveFileReader.cpp
src/clp/LibarchiveFileReader.hpp
src/clp/LibarchiveReader.cpp
src/clp/LibarchiveReader.hpp
src/clp/LogSurgeonReader.cpp
src/clp/LogSurgeonReader.hpp
src/clp/LogTypeDictionaryEntry.cpp
src/clp/LogTypeDictionaryEntry.hpp
src/clp/LogTypeDictionaryEntryReq.hpp
src/clp/LogTypeDictionaryReader.hpp
src/clp/LogTypeDictionaryReaderReq.hpp
src/clp/LogTypeDictionaryWriter.cpp
src/clp/LogTypeDictionaryWriter.hpp
src/clp/math_utils.hpp
src/clp/MessageParser.cpp
src/clp/MessageParser.hpp
src/clp/MySQLDB.cpp
src/clp/MySQLDB.hpp
src/clp/MySQLParamBindings.cpp
src/clp/MySQLParamBindings.hpp
src/clp/MySQLPreparedStatement.cpp
src/clp/MySQLPreparedStatement.hpp
src/clp/networking/socket_utils.cpp
src/clp/networking/socket_utils.hpp
src/clp/NetworkReader.cpp
src/clp/NetworkReader.hpp
src/clp/PageAllocatedVector.hpp
src/clp/ParsedMessage.cpp
src/clp/ParsedMessage.hpp
src/clp/Platform.hpp
src/clp/Profiler.cpp
src/clp/Profiler.hpp
src/clp/ProfilerReporter.hpp
src/clp/Query.cpp
src/clp/Query.hpp
src/clp/QueryToken.cpp
src/clp/QueryToken.hpp
src/clp/ReaderInterface.cpp
src/clp/ReaderInterface.hpp
src/clp/ReadOnlyMemoryMappedFile.cpp
src/clp/ReadOnlyMemoryMappedFile.hpp
src/clp/ScopedProfiler.hpp
src/clp/spdlog_with_specializations.hpp
src/clp/SQLiteDB.cpp
src/clp/SQLiteDB.hpp
src/clp/SQLitePreparedStatement.cpp
src/clp/SQLitePreparedStatement.hpp
src/clp/Stopwatch.cpp
src/clp/Stopwatch.hpp
src/clp/streaming_archive/ArchiveMetadata.cpp
src/clp/streaming_archive/ArchiveMetadata.hpp
src/clp/streaming_archive/Constants.hpp
src/clp/streaming_archive/MetadataDB.cpp
src/clp/streaming_archive/MetadataDB.hpp
src/clp/streaming_archive/reader/Archive.cpp
src/clp/streaming_archive/reader/Archive.hpp
src/clp/streaming_archive/reader/File.cpp
src/clp/streaming_archive/reader/File.hpp
src/clp/streaming_archive/reader/Message.cpp
src/clp/streaming_archive/reader/Message.hpp
src/clp/streaming_archive/reader/Segment.cpp
src/clp/streaming_archive/reader/Segment.hpp
src/clp/streaming_archive/reader/SegmentManager.cpp
src/clp/streaming_archive/reader/SegmentManager.hpp
src/clp/streaming_archive/writer/Archive.cpp
src/clp/streaming_archive/writer/Archive.hpp
src/clp/streaming_archive/writer/File.cpp
src/clp/streaming_archive/writer/File.hpp
src/clp/streaming_archive/writer/Segment.cpp
src/clp/streaming_archive/writer/Segment.hpp
src/clp/streaming_archive/writer/utils.cpp
src/clp/streaming_archive/writer/utils.hpp
src/clp/streaming_compression/Compressor.hpp
src/clp/streaming_compression/Constants.hpp
src/clp/streaming_compression/Decompressor.hpp
src/clp/streaming_compression/lzma/Compressor.cpp
src/clp/streaming_compression/lzma/Compressor.hpp
src/clp/streaming_compression/lzma/Decompressor.cpp
src/clp/streaming_compression/lzma/Decompressor.hpp
src/clp/streaming_compression/lzma/Constants.hpp
src/clp/streaming_compression/passthrough/Compressor.cpp
src/clp/streaming_compression/passthrough/Compressor.hpp
src/clp/streaming_compression/passthrough/Decompressor.cpp
src/clp/streaming_compression/passthrough/Decompressor.hpp
src/clp/streaming_compression/zstd/Compressor.cpp
src/clp/streaming_compression/zstd/Compressor.hpp
src/clp/streaming_compression/zstd/Constants.hpp
src/clp/streaming_compression/zstd/Decompressor.cpp
src/clp/streaming_compression/zstd/Decompressor.hpp
src/clp/StringReader.cpp
src/clp/StringReader.hpp
src/clp/Thread.cpp
src/clp/Thread.hpp
src/clp/time_types.hpp
src/clp/TimestampPattern.cpp
src/clp/TimestampPattern.hpp
src/clp/TraceableException.hpp
src/clp/TransactionManager.hpp
src/clp/type_utils.hpp
src/clp/utf8_utils.cpp
src/clp/utf8_utils.hpp
src/clp/Utils.cpp
src/clp/Utils.hpp
src/clp/VariableDictionaryEntry.cpp
src/clp/VariableDictionaryEntry.hpp
src/clp/VariableDictionaryEntryReq.hpp
src/clp/VariableDictionaryReader.hpp
src/clp/VariableDictionaryReaderReq.hpp
src/clp/VariableDictionaryWriter.cpp
src/clp/VariableDictionaryWriter.hpp
src/clp/VariableDictionaryWriterReq.hpp
src/clp/version.hpp
src/clp/WriterInterface.cpp
src/clp/WriterInterface.hpp
tests/clp_s_test_utils.cpp
tests/clp_s_test_utils.hpp
tests/LogSuppressor.hpp
tests/MockLogTypeDictionary.hpp
tests/MockVariableDictionary.hpp
tests/SchemaSearcherTest.hpp
tests/search_test_utils.cpp
tests/search_test_utils.hpp
tests/TestOutputCleaner.hpp
tests/test-BoundedReader.cpp
tests/test-BufferedReader.cpp
tests/test-clp_s-delta-encode-log-order.cpp
tests/test-clp_s-end_to_end.cpp
tests/test-clp_s-range_index.cpp
tests/test-clp_s-search.cpp
tests/test-EncodedVariableInterpreter.cpp
tests/test-encoding_methods.cpp
tests/test-ffi_IrUnitHandlerReq.cpp
tests/test-ffi_KeyValuePairLogEvent.cpp
tests/test-ffi_SchemaTree.cpp
tests/test-FileDescriptorReader.cpp
tests/test-FloatFormatEncoding.cpp
tests/test-GlobalMetadataDBConfig.cpp
tests/test-GrepCore.cpp
tests/test-hash_utils.cpp
tests/test-ir_encoding_methods.cpp
tests/test-ir_parsing.cpp
tests/test-ir_serializer.cpp
tests/test-kql.cpp
tests/test-math_utils.cpp
tests/test-MemoryMappedFile.cpp
tests/test-NetworkReader.cpp
tests/test-ParserWithUserSchema.cpp
tests/test-ProfilerReporter.cpp
tests/test-query_methods.cpp
tests/test-regex_utils.cpp
tests/test-SchemaSearcher.cpp
tests/test-ScopedProfiler.cpp
tests/test-Segment.cpp
tests/test-SQLiteDB.cpp
tests/test-Stopwatch.cpp
tests/test-StreamingCompression.cpp
tests/test-string_utils.cpp
tests/test-sql.cpp
tests/test-TimestampPattern.cpp
tests/test-utf8_utils.cpp
tests/test-Utils.cpp
)
if(CLP_ENABLE_TESTS)
add_executable(unitTest
${SOURCE_FILES_unitTest}
${SOURCE_FILES_clp_s_unitTest}
${SOURCE_FILES_reducer_unitTest}
)
target_include_directories(unitTest
PRIVATE
${CLP_SQLITE3_INCLUDE_DIRECTORY}
)
target_link_libraries(unitTest
PRIVATE
absl::flat_hash_map
Boost::filesystem
Boost::iostreams
Boost::program_options
Boost::regex
Boost::url
Catch2::Catch2WithMain
${CURL_LIBRARIES}
clp_s::search::ast
clp_s::search::kql
clp_s::search::sql
clp_s::timestamp_parser
clp_s::timestamp_pattern
date::date
fmt::fmt
log_surgeon::log_surgeon
LibArchive::LibArchive
LibLZMA::LibLZMA
MariaDBClient::MariaDBClient
${MONGOCXX_TARGET}
msgpack-cxx
nlohmann_json::nlohmann_json
simdjson::simdjson
spdlog::spdlog
OpenSSL::Crypto
${sqlite_LIBRARY_DEPENDENCIES}
${STD_FS_LIBS}
clp::regex_utils
clp::string_utils
ystdlib::containers
ystdlib::error_handling
zstd::libzstd_static
)
target_compile_features(unitTest
PRIVATE cxx_std_20
)
target_compile_definitions(unitTest
PRIVATE
CLP_ENABLE_TESTS
PROF_TEST_ENABLED=1
)
endif()