CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
106 lines
2.8 KiB
INI
106 lines
2.8 KiB
INI
# This file is licensed under the Apache License v2.0 with LLVM Exceptions.
|
|
# See https://llvm.org/LICENSE.txt for license information.
|
|
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
load("@bazel_skylib//rules:copy_file.bzl", "copy_file")
|
|
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
|
|
|
package(
|
|
default_visibility = ["//visibility:public"],
|
|
# BSD/MIT-like license (for zlib)
|
|
licenses = ["notice"],
|
|
)
|
|
|
|
copy_file(
|
|
# The input template is identical to the CMake output.
|
|
name = "zconf_gen",
|
|
src = "zconf.h.in",
|
|
out = "zconf.h",
|
|
allow_symlink = True,
|
|
)
|
|
|
|
cc_library(
|
|
name = "zlib",
|
|
srcs = select({
|
|
"@llvm-project//third-party:llvm_zlib_enabled": [
|
|
"adler32.c",
|
|
"adler32_p.h",
|
|
"chunkset.c",
|
|
"chunkset_tpl.h",
|
|
"compare258.c",
|
|
"compress.c",
|
|
"crc32.c",
|
|
"crc32_comb.c",
|
|
"crc32_comb_tbl.h",
|
|
"crc32_p.h",
|
|
"crc32_tbl.h",
|
|
"deflate.c",
|
|
"deflate.h",
|
|
"deflate_fast.c",
|
|
"deflate_medium.c",
|
|
"deflate_p.h",
|
|
"deflate_quick.c",
|
|
"deflate_slow.c",
|
|
"fallback_builtins.h",
|
|
"functable.c",
|
|
"functable.h",
|
|
"infback.c",
|
|
"inffast.c",
|
|
"inffast.h",
|
|
"inffixed_tbl.h",
|
|
"inflate.c",
|
|
"inflate.h",
|
|
"inflate_p.h",
|
|
"inftrees.c",
|
|
"inftrees.h",
|
|
"insert_string.c",
|
|
"insert_string_tpl.h",
|
|
"match_tpl.h",
|
|
"trees.c",
|
|
"trees.h",
|
|
"trees_emit.h",
|
|
"trees_tbl.h",
|
|
"uncompr.c",
|
|
"zbuild.h",
|
|
"zendian.h",
|
|
"zutil.c",
|
|
"zutil.h",
|
|
"zutil_p.h",
|
|
],
|
|
"//conditions:default": [],
|
|
}),
|
|
hdrs = select({
|
|
"@llvm-project//third-party:llvm_zlib_enabled": [
|
|
"zlib.h",
|
|
":zconf_gen",
|
|
],
|
|
"//conditions:default": [],
|
|
}),
|
|
copts = [
|
|
"-std=c11",
|
|
"-DZLIB_COMPAT",
|
|
"-DWITH_GZFILEOP",
|
|
"-DWITH_OPTIM",
|
|
"-DWITH_NEW_STRATEGIES",
|
|
# For local builds you might want to add "-DWITH_NATIVE_INSTRUCTIONS"
|
|
# here to improve performance. Native instructions aren't enabled in
|
|
# the default config for reproducibility.
|
|
],
|
|
defines = select({
|
|
"@llvm-project//third-party:llvm_zlib_enabled": [
|
|
"LLVM_ENABLE_ZLIB=1",
|
|
],
|
|
"//conditions:default": [
|
|
"LLVM_ENABLE_ZLIB=0",
|
|
],
|
|
}),
|
|
# Clang includes zlib with angled instead of quoted includes, so we need
|
|
# strip_include_prefix here.
|
|
strip_include_prefix = ".",
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
alias(
|
|
name = "zlib-ng",
|
|
actual = ":zlib",
|
|
)
|