1818 G_DEPS_CORE_CMAKE_SETTINGS_DIR : " {{.G_DEPS_CORE_DIR}}/cmake-settings"
1919
2020 # Library names
21+ G_ABSL_LIB_NAME : " absl"
22+ G_ANTLR_RUNTIME_LIB_NAME : " antlr4-runtime"
2123 G_BOOST_LIB_NAME : " Boost"
2224 G_FMT_LIB_NAME : " fmt"
2325 G_GSL_LIB_NAME : " Microsoft.GSL"
26+ G_MARIADB_CONNECTOR_CPP_LIB_NAME : " mariadb-connector-cpp"
27+ G_MSGPACK_CXX_LIB_NAME : " msgpack-cxx"
28+ G_SPDLOG_LIB_NAME : " spdlog"
29+ G_YSTDLIB_LIB_NAME : " ystdlib"
2430
2531 # Antlr
2632 G_ANTLR_VERSION : " 4.13.2"
7581 - task : " liblzma"
7682 - task : " log-surgeon"
7783 - task : " lz4"
84+ - task : " mariadb-connector-cpp"
7885 - task : " microsoft.gsl"
7986 - task : " mongocxx"
8087 - task : " msgpack-cxx"
@@ -99,7 +106,7 @@ tasks:
99106 - " -DCMAKE_BUILD_TYPE=Release"
100107 - " -DCMAKE_CXX_STANDARD=20"
101108 - " -DCMAKE_INSTALL_MESSAGE=LAZY"
102- LIB_NAME : " absl "
109+ LIB_NAME : " {{.G_ABSL_LIB_NAME}} "
103110 TARBALL_SHA256 : " 7262daa7c1711406248c10f41026d685e88223bc92817d16fb93c19adb57f669"
104111 TARBALL_URL : " https://github.com/abseil/abseil-cpp/releases/download/20250512.0/\
105112 abseil-cpp-20250512.0.tar.gz"
@@ -135,7 +142,7 @@ tasks:
135142 internal : true
136143 run : " once"
137144 vars :
138- LIB_NAME : " antlr4-runtime "
145+ LIB_NAME : " {{.G_ANTLR_RUNTIME_LIB_NAME}} "
139146
140147 # Paths
141148 BUILD_DIR : " {{.G_DEPS_CORE_DIR}}/{{.LIB_NAME}}-build"
@@ -338,6 +345,21 @@ tasks:
338345 TARBALL_SHA256 : " 537512904744b35e232912055ccf8ec66d768639ff3abe5788d90d792ec5f48b"
339346 TARBALL_URL : " https://github.com/lz4/lz4/releases/download/v1.10.0/lz4-1.10.0.tar.gz"
340347
348+ mariadb-connector-cpp :
349+ internal : true
350+ run : " once"
351+ cmds :
352+ - task : " utils:install-remote-cmake-lib"
353+ vars :
354+ CMAKE_GEN_ARGS :
355+ - " -DCMAKE_POSITION_INDEPENDENT_CODE=ON"
356+ - " -DUSE_SYSTEM_INSTALLED_LIB=ON"
357+ - " -DINSTALL_LAYOUT=RPM"
358+ LIB_NAME : " {{.G_MARIADB_CONNECTOR_CPP_LIB_NAME}}"
359+ TARBALL_URL : " https://github.com/mariadb-corporation/mariadb-connector-cpp/archive/refs/\
360+ tags/1.1.5.tar.gz"
361+ TARBALL_SHA256 : " 0e3dfe9f2bc3f7bb6f7c159009556290064a7c23402ea08019fa8aebfc3ff2c9"
362+
341363 microsoft.gsl :
342364 internal : true
343365 run : " once"
@@ -388,7 +410,7 @@ tasks:
388410 - " -DCMAKE_POLICY_DEFAULT_CMP0074=NEW"
389411 - " -DMSGPACK_BUILD_DOCS=OFF"
390412 - " -DMSGPACK_CXX20=ON"
391- LIB_NAME : " msgpack-cxx "
413+ LIB_NAME : " {{.G_MSGPACK_CXX_LIB_NAME}} "
392414 TARBALL_SHA256 : " 7504b7af7e7b9002ce529d4f941e1b7fb1fb435768780ce7da4abaac79bb156f"
393415 TARBALL_URL : " https://github.com/msgpack/msgpack-c/releases/download/cpp-{{.VERSION}}\
394416 /msgpack-cxx-{{.VERSION}}.tar.gz"
@@ -440,7 +462,7 @@ tasks:
440462 - " -DSPDLOG_BUILD_EXAMPLE=OFF"
441463 - " -DSPDLOG_BUILD_EXAMPLE_HO=OFF"
442464 - " -DSPDLOG_FMT_EXTERNAL=ON"
443- LIB_NAME : " spdlog "
465+ LIB_NAME : " {{.G_SPDLOG_LIB_NAME}} "
444466 TARBALL_SHA256 : " 1586508029a7d0670dfcb2d97575dcdc242d3868a259742b69f100801ab4e16b"
445467
446468 # NOTE: Since spdlog depends on fmt, we need to choose a version of spdlog that's
@@ -458,19 +480,29 @@ tasks:
458480 - task : " antlr-runtime"
459481 - task : " boost"
460482 - task : " fmt"
483+ - task : " mariadb-connector-cpp"
461484 - task : " msgpack-cxx"
462485 - task : " spdlog"
486+ - task : " ystdlib"
463487 cmds :
464488 - task : " utils:install-remote-cmake-lib"
465489 vars :
466490 CMAKE_GEN_ARGS :
491+ - " -C {{.G_DEPS_CORE_CMAKE_SETTINGS_DIR}}/{{.G_ABSL_LIB_NAME}}.cmake"
492+ - " -C {{.G_DEPS_CORE_CMAKE_SETTINGS_DIR}}/{{.G_ANTLR_RUNTIME_LIB_NAME}}.cmake"
493+ - " -C {{.G_DEPS_CORE_CMAKE_SETTINGS_DIR}}/{{.G_BOOST_LIB_NAME}}.cmake"
494+ - " -C {{.G_DEPS_CORE_CMAKE_SETTINGS_DIR}}/{{.G_FMT_LIB_NAME}}.cmake"
495+ - " -C {{.G_DEPS_CORE_CMAKE_SETTINGS_DIR}}/{{.G_MARIADB_CONNECTOR_CPP_LIB_NAME}}.cmake"
496+ - " -C {{.G_DEPS_CORE_CMAKE_SETTINGS_DIR}}/{{.G_MSGPACK_CXX_LIB_NAME}}.cmake"
497+ - " -C {{.G_DEPS_CORE_CMAKE_SETTINGS_DIR}}/{{.G_SPDLOG_LIB_NAME}}.cmake"
498+ - " -C {{.G_DEPS_CORE_CMAKE_SETTINGS_DIR}}/{{.G_YSTDLIB_LIB_NAME}}.cmake"
467499 - " -DCMAKE_BUILD_TYPE=Release"
468500 - " -DCMAKE_INSTALL_MESSAGE=LAZY"
469501 - " -DSPIDER_BUILD_TESTING=OFF"
470502 LIB_NAME : " spider"
471503 # TODO: Update the url and checksum when we have a proper Spider release
472- TARBALL_SHA256 : " 98cf1add63f1bb7e27ba2e83fc12406c4de0c732bb896dc70e36a6b8a036cf69 "
473- TARBALL_URL : " https://github.com/y-scope/spider/archive/64519e9 .tar.gz"
504+ TARBALL_SHA256 : " 23aa213e14512861c8a1c03bf2afb78dcceb673d29be6d22f3e4d93bcbfac164 "
505+ TARBALL_URL : " https://github.com/y-scope/spider/archive/03de061 .tar.gz"
474506
475507 sqlite3 :
476508 internal : true
@@ -537,24 +569,27 @@ tasks:
537569 TARBALL_URL : " https://github.com/jbeder/yaml-cpp/archive/refs/tags/yaml-cpp-0.7.0.tar.gz"
538570
539571 ystdlib :
540- internal : true
541572 vars :
542- LIB_NAME : " ystdlib"
543- YSTDLIB_OUTPUT_DIR : " {{.G_DEPS_CORE_DIR}}/{{.LIB_NAME}}-src"
573+ LIB_NAME : " {{.G_YSTDLIB_LIB_NAME}}"
544574 run : " once"
545575 deps :
546- - task : " utils:init"
576+ - task : " boost"
577+ - task : " catch2"
547578 cmds :
548- - task : " yscope-dev- utils:remote:download-and-extract-tar "
579+ - task : " utils:install- remote-cmake-lib "
549580 vars :
550- CHECKSUM_FILE : " {{.G_DEPS_CORE_CHECKSUMS_DIR}}/{{.LIB_NAME}}.md5"
551- FILE_SHA256 : " 36fa0e9d96b7307ca92482343d6ba1091c5576370676e6d423cce32c20e34a3d"
552- OUTPUT_DIR : " {{.YSTDLIB_OUTPUT_DIR}}"
553- URL : " https://github.com/y-scope/ystdlib-cpp/archive/d80cf86.tar.gz"
581+ CMAKE_GEN_ARGS :
582+ - " -C {{.G_DEPS_CORE_CMAKE_SETTINGS_DIR}}/{{.G_BOOST_LIB_NAME}}.cmake"
583+ - " -C {{.G_DEPS_CORE_CMAKE_SETTINGS_DIR}}/Catch2.cmake"
584+ - " -DCMAKE_POSITION_INDEPENDENT_CODE=ON"
585+ - " -Dystdlib_BUILD_TESTING=OFF"
586+ LIB_NAME : " {{.LIB_NAME}}"
587+ TARBALL_SHA256 : " 65990dc2bcc4a355c2181bfe31a7800f492309d1bcd340f52a34e85047e61bc8"
588+ TARBALL_URL : " https://github.com/y-scope/ystdlib-cpp/archive/9ed78cd.tar.gz"
554589 - >-
555590 echo "set(
556- CLP_YSTDLIB_SOURCE_DIRECTORY \"{{.YSTDLIB_OUTPUT_DIR}} \"
557- )" > "{{.G_DEPS_CORE_CMAKE_SETTINGS_DIR}}/{{.LIB_NAME}}.cmake"
591+ CLP_YSTDLIB_SOURCE_DIRECTORY \"{{.G_DEPS_CORE_DIR}}-extracted \"
592+ )" >> "{{.G_DEPS_CORE_CMAKE_SETTINGS_DIR}}/{{.LIB_NAME}}.cmake"
558593
559594 zlib :
560595 internal : true
0 commit comments