Skip to content

Commit 96e93ee

Browse files
committed
add zlib taskfile
1 parent 8618486 commit 96e93ee

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

taskfiles/deps/main.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ tasks:
7777
- task: "utfcpp"
7878
- task: "yaml-cpp"
7979
- task: "ystdlib"
80+
- task: "zlib"
8081
- task: "zstd"
8182

8283
absl:
@@ -433,6 +434,26 @@ tasks:
433434
CLP_YSTDLIB_SOURCE_DIRECTORY \"{{.YSTDLIB_OUTPUT_DIR}}\"
434435
)" > "{{.G_DEPS_CORE_CMAKE_SETTINGS_DIR}}/{{.LIB_NAME}}.cmake"
435436
437+
zlib:
438+
run: "once"
439+
cmds:
440+
- task: "utils:install-remote-cmake-lib"
441+
vars:
442+
CMAKE_GEN_ARGS:
443+
- "-DCMAKE_BUILD_TYPE=Release"
444+
- "-DCMAKE_INSTALL_MESSAGE=LAZY"
445+
- "-DZLIB_BUILD_SHARED=ON"
446+
- "-DZLIB_BUILD_STATIC=ON"
447+
- "-DZLIB_BUILD_TESTING=OFF"
448+
- "-DZLIB_BUILD_EXAMPLES=OFF"
449+
- "-DZLIB_BUILD_MINIZIP=OFF"
450+
- "-DZLIB_INSTALL=ON"
451+
- "-DCMAKE_INSTALL_LIBDIR=lib"
452+
- "-DCMAKE_INSTALL_PREFIX={{.G_DEPS_CORE_DIR}}/zlib-install"
453+
LIB_NAME: "zlib"
454+
TARBALL_SHA256: "9a93b2b7dfdac77ceba5a558a580e74667dd6fede4585b91eefb60f03b72df23"
455+
TARBALL_URL: "https://github.com/madler/zlib/releases/download/v1.3.1/zlib-1.3.1.tar.gz"
456+
436457
zstd:
437458
internal: true
438459
run: "once"

0 commit comments

Comments
 (0)