Repository navigation
build(deps): Migrate core's submodule-based dependencies to task-based installation. #858
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 19 commits
06fc873
b67730e
c6dac9a
2ce6e21
049e973
72d097f
44cd30f
e36c516
a44760a
d0e98b4
27c3af7
8bd6419
9aae9e1
6890338
483565a
8b1acc4
598a8c2
1ee0360
bd2e81f
3662dff
a1eff8a
5d24ee5
152fb8a
c955274
59b7a8e
3c87cba
f2790eb
1ee6482
b1ae815
84125e7
2266e4a
23ac5bb
6c4469b
85ba10a
e08214c
b3b4ff5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,34 +1,3 @@ | ||
| [submodule "components/core/submodules/Catch2"] | ||
| path = components/core/submodules/Catch2 | ||
| url = https://github.com/catchorg/Catch2.git | ||
| [submodule "components/core/submodules/date"] | ||
| path = components/core/submodules/date | ||
| url = https://github.com/HowardHinnant/date.git | ||
| [submodule "components/core/submodules/json"] | ||
| path = components/core/submodules/json | ||
| url = https://github.com/nlohmann/json.git | ||
| shallow = true | ||
| [submodule "components/core/submodules/yaml-cpp"] | ||
| path = components/core/submodules/yaml-cpp | ||
| url = https://github.com/jbeder/yaml-cpp.git | ||
| [submodule "components/core/submodules/log-surgeon"] | ||
| path = components/core/submodules/log-surgeon | ||
| url = https://github.com/y-scope/log-surgeon.git | ||
| [submodule "components/core/submodules/simdjson"] | ||
| path = components/core/submodules/simdjson | ||
| url = https://github.com/simdjson/simdjson.git | ||
| [submodule "components/core/submodules/abseil-cpp"] | ||
| path = components/core/submodules/abseil-cpp | ||
| url = https://github.com/abseil/abseil-cpp.git | ||
| [submodule "tools/yscope-dev-utils"] | ||
| path = tools/yscope-dev-utils | ||
| url = https://github.com/y-scope/yscope-dev-utils.git | ||
| [submodule "components/core/submodules/outcome"] | ||
| path = components/core/submodules/outcome | ||
| url = https://github.com/ned14/outcome.git | ||
| [submodule "components/core/submodules/utfcpp"] | ||
| path = components/core/submodules/utfcpp | ||
| url = https://github.com/nemtrif/utfcpp.git | ||
| [submodule "components/core/submodules/ystdlib-cpp"] | ||
| path = components/core/submodules/ystdlib-cpp | ||
| url = https://github.com/y-scope/ystdlib-cpp.git |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1 @@ | ||
| build/** | ||
| submodules/sqlite3/* | ||
| third-party/** | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -96,6 +96,28 @@ elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") | |
| 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 because if the user happens to have the dependencies | ||
| # installed, this file isn't necessary. | ||
|
kirkrodrigues marked this conversation as resolved.
Resolved
|
||
| include("${CMAKE_SOURCE_DIR}/../../build/deps/core/cmake-settings/all.cmake" | ||
| OPTIONAL | ||
| RESULT_VARIABLE CLP_DEPS_SETTINGS_FILE_PATH | ||
| ) | ||
|
|
||
| if(NOT CLP_DEPS_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() | ||
| endif() | ||
|
|
||
| find_package(absl REQUIRED) | ||
| if (absl_FOUND) | ||
| message(STATUS "Found absl ${absl_VERSION}") | ||
| endif() | ||
|
|
||
| # Find and setup ANTLR Library | ||
| # We build and link to the static library | ||
| find_package(ANTLR REQUIRED) | ||
|
|
@@ -116,6 +138,16 @@ else() | |
| message(FATAL_ERROR "Could not find ${CLP_LIBS_STRING} libraries for Boost") | ||
| endif() | ||
|
|
||
| find_package(Catch2 REQUIRED) | ||
| if (Catch2_FOUND) | ||
| message(STATUS "Found Catch2 ${Catch2_VERSION}") | ||
| endif() | ||
|
|
||
| find_package(date REQUIRED) | ||
| if (date_FOUND) | ||
| message(STATUS "Found date ${date_VERSION}") | ||
| endif() | ||
|
|
||
| # Find and setup fmt | ||
| # NOTE: | ||
| # - We only try to link to the static library | ||
|
|
@@ -127,6 +159,21 @@ else() | |
| message(FATAL_ERROR "Could not find static libraries for fmt") | ||
| endif() | ||
|
|
||
| find_package(log_surgeon REQUIRED) | ||
| if(log_surgeon_FOUND) | ||
| message(STATUS "Found log_surgeon ${log_surgeon_VERSION}") | ||
| endif() | ||
|
|
||
| find_package(nlohmann_json REQUIRED) | ||
| if(nlohmann_json_FOUND) | ||
| message(STATUS "Found nlohmann_json ${nlohmann_json_VERSION}") | ||
| endif() | ||
|
|
||
| find_package(simdjson REQUIRED) | ||
| if(simdjson_FOUND) | ||
| message(STATUS "Found simdjson ${simdjson_VERSION}") | ||
| endif() | ||
|
|
||
| # Find and setup spdlog | ||
| if(CLP_USE_STATIC_LIBS) | ||
| # NOTE: On some Linux distributions (e.g. Ubuntu), the spdlog package only contains a dynamic | ||
|
|
@@ -175,9 +222,6 @@ else () | |
| message(FATAL_ERROR "OpenSSL not found") | ||
| endif () | ||
|
|
||
| # Add log surgeon | ||
| add_subdirectory(submodules/log-surgeon EXCLUDE_FROM_ALL) | ||
|
|
||
| # Find and setup MariaDBClient library | ||
| if(CLP_USE_STATIC_LIBS) | ||
| # NOTE: We can't statically link to MariaDBClient since it's GPL | ||
|
|
@@ -212,21 +256,16 @@ else() | |
| message(FATAL_ERROR "Could not find msgpack-cxx") | ||
| endif() | ||
|
|
||
| # Add abseil-cpp | ||
| set(ABSL_PROPAGATE_CXX_STD ON) | ||
| add_subdirectory(submodules/abseil-cpp EXCLUDE_FROM_ALL) | ||
|
|
||
| # Add simdjson | ||
| add_subdirectory(submodules/simdjson EXCLUDE_FROM_ALL) | ||
|
|
||
| find_package(Threads REQUIRED) | ||
|
|
||
| # Add yaml-cpp | ||
| add_subdirectory(submodules/yaml-cpp EXCLUDE_FROM_ALL) | ||
| find_package(yaml-cpp REQUIRED) | ||
| if(yaml-cpp_FOUND) | ||
| message(STATUS "Found yaml-cpp ${yaml-cpp_VERSION}") | ||
| endif() | ||
|
|
||
| # Add ystdlib-cpp | ||
| # Add ystdlib | ||
| set(YSTDLIB_CPP_BUILD_TESTING OFF) | ||
| add_subdirectory(submodules/ystdlib-cpp EXCLUDE_FROM_ALL) | ||
| add_subdirectory("${CLP_YSTDLIB_SOURCE_DIRECTORY}" "${CMAKE_BINARY_DIR}/ystdlib" EXCLUDE_FROM_ALL) | ||
|
|
||
| # Find and setup ZStd Library | ||
| if(CLP_USE_STATIC_LIBS) | ||
|
|
@@ -372,6 +411,9 @@ set(SOURCE_FILES_reducer_unitTest | |
| ) | ||
|
|
||
| set(SOURCE_FILES_unitTest | ||
| "${CLP_SQLITE3_SOURCE_DIRECTORY}/sqlite3.c" | ||
| "${CLP_SQLITE3_SOURCE_DIRECTORY}/sqlite3.h" | ||
| "${CLP_SQLITE3_SOURCE_DIRECTORY}/sqlite3ext.h" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Might be out of this PR's scope: do we need
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Iirc, I did this for CLion, but I guess we could remove it now. |
||
| src/clp/aws/AwsAuthenticationSigner.cpp | ||
| src/clp/aws/AwsAuthenticationSigner.hpp | ||
| src/clp/aws/constants.hpp | ||
|
|
@@ -594,9 +636,6 @@ set(SOURCE_FILES_unitTest | |
| src/clp/version.hpp | ||
| src/clp/WriterInterface.cpp | ||
| src/clp/WriterInterface.hpp | ||
| submodules/sqlite3/sqlite3.c | ||
| submodules/sqlite3/sqlite3.h | ||
| submodules/sqlite3/sqlite3ext.h | ||
| tests/LogSuppressor.hpp | ||
| tests/TestOutputCleaner.hpp | ||
| tests/test-BoundedReader.cpp | ||
|
|
@@ -639,30 +678,35 @@ add_executable(unitTest | |
| ) | ||
| target_include_directories(unitTest | ||
| PRIVATE | ||
| ${CLP_OUTCOME_SOURCE_DIRECTORY} | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: Shall we use
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How about
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. sure, sgtm |
||
| ${CLP_SQLITE3_SOURCE_DIRECTORY} | ||
| ${CMAKE_SOURCE_DIR}/submodules | ||
|
coderabbitai[bot] marked this conversation as resolved.
Resolved
|
||
| ) | ||
| target_link_libraries(unitTest | ||
| PRIVATE | ||
| absl::flat_hash_map | ||
| Boost::filesystem Boost::iostreams Boost::program_options Boost::regex Boost::url | ||
| Catch2::Catch2 | ||
| ${CURL_LIBRARIES} | ||
| clp_s::search::ast | ||
| clp_s::TimestampPattern | ||
| date::date | ||
| fmt::fmt | ||
| kql | ||
| log_surgeon::log_surgeon | ||
| LibArchive::LibArchive | ||
| MariaDBClient::MariaDBClient | ||
| ${MONGOCXX_TARGET} | ||
| simdjson | ||
| nlohmann_json::nlohmann_json | ||
| simdjson::simdjson | ||
| spdlog::spdlog | ||
| sql | ||
| OpenSSL::Crypto | ||
| ${sqlite_LIBRARY_DEPENDENCIES} | ||
| ${STD_FS_LIBS} | ||
| clp::regex_utils | ||
| clp::string_utils | ||
| yaml-cpp::yaml-cpp | ||
| yaml-cpp | ||
| ystdlib::containers | ||
| ystdlib::error_handling | ||
| ${LIBLZMA_LIBRARIES} | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.