Skip to content

Commit d63d8cb

Browse files
authored
build(deps): Add task-based installation for zlib; Add missing liblzma dependency docs. (#1229)
1 parent 6a00a87 commit d63d8cb

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

docs/src/dev-guide/components-core/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ The task will download, build, and install (within the build directory) the foll
4242
| [fmt](https://github.com/fmtlib/fmt) | v10.2.1 |
4343
| [json](https://github.com/nlohmann/json.git) | v3.11.3 |
4444
| [log-surgeon](https://github.com/y-scope/log-surgeon) | f801a3f |
45+
| [liblzma](https://github.com/tukaani-project/xz) | v5.8.1 |
4546
| [lz4](https://github.com/lz4/lz4) | v1.10.0 |
4647
| [mongo-cxx-driver](https://github.com/mongodb/mongo-cxx-driver) | r3.10.2 |
4748
| [simdjson](https://github.com/simdjson/simdjson) | v3.13.0 |
@@ -51,6 +52,7 @@ The task will download, build, and install (within the build directory) the foll
5152
| [yaml-cpp](https://github.com/jbeder/yaml-cpp.git) | v0.7.0 |
5253
| [yscope-log-viewer](https://github.com/y-scope/yscope-log-viewer.git) | 969ff35 |
5354
| [ystdlib-cpp](https://github.com/y-scope/ystdlib-cpp.git) | d80cf86 |
55+
| [zlib](https://github.com/madler/zlib) | v1.3.1 |
5456
| [zstd](https://github.com/facebook/zstd) | v1.5.7 |
5557

5658
### Environment

taskfiles/deps/main.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ tasks:
7878
- task: "utfcpp"
7979
- task: "yaml-cpp"
8080
- task: "ystdlib"
81+
- task: "zlib"
8182
- task: "zstd"
8283

8384
absl:
@@ -484,6 +485,24 @@ tasks:
484485
CLP_YSTDLIB_SOURCE_DIRECTORY \"{{.YSTDLIB_OUTPUT_DIR}}\"
485486
)" > "{{.G_DEPS_CORE_CMAKE_SETTINGS_DIR}}/{{.LIB_NAME}}.cmake"
486487
488+
zlib:
489+
internal: true
490+
vars:
491+
LIB_NAME: "zlib"
492+
run: "once"
493+
cmds:
494+
- task: "utils:install-remote-cmake-lib"
495+
vars:
496+
CMAKE_GEN_ARGS:
497+
- "-DBUILD_SHARED_LIBS=ON"
498+
- "-DCMAKE_BUILD_TYPE=Release"
499+
- "-DCMAKE_INSTALL_MESSAGE=LAZY"
500+
- "-DCMAKE_INSTALL_PREFIX={{.G_DEPS_CORE_DIR}}/{{.LIB_NAME}}-install"
501+
- "-DZLIB_BUILD_EXAMPLES=OFF"
502+
LIB_NAME: "{{.LIB_NAME}}"
503+
TARBALL_SHA256: "9a93b2b7dfdac77ceba5a558a580e74667dd6fede4585b91eefb60f03b72df23"
504+
TARBALL_URL: "https://github.com/madler/zlib/releases/download/v1.3.1/zlib-1.3.1.tar.gz"
505+
487506
zstd:
488507
internal: true
489508
run: "once"

0 commit comments

Comments
 (0)