From 4a0670157de1eab48522a838936f4e2e1bdd2a00 Mon Sep 17 00:00:00 2001 From: Vertexwahn Date: Fri, 27 Dec 2024 15:47:09 +0100 Subject: [PATCH] libdeflate@1.23 (#3465) libdeflate@1.23 --- modules/libdeflate/1.23/MODULE.bazel | 9 +++ modules/libdeflate/1.23/overlay/BUILD.bazel | 69 ++++++++++++++++++++ modules/libdeflate/1.23/overlay/MODULE.bazel | 1 + modules/libdeflate/1.23/presubmit.yml | 20 ++++++ modules/libdeflate/1.23/source.json | 10 +++ modules/libdeflate/metadata.json | 3 +- 6 files changed, 111 insertions(+), 1 deletion(-) create mode 100644 modules/libdeflate/1.23/MODULE.bazel create mode 100644 modules/libdeflate/1.23/overlay/BUILD.bazel create mode 120000 modules/libdeflate/1.23/overlay/MODULE.bazel create mode 100644 modules/libdeflate/1.23/presubmit.yml create mode 100644 modules/libdeflate/1.23/source.json diff --git a/modules/libdeflate/1.23/MODULE.bazel b/modules/libdeflate/1.23/MODULE.bazel new file mode 100644 index 00000000000..9e4370fd918 --- /dev/null +++ b/modules/libdeflate/1.23/MODULE.bazel @@ -0,0 +1,9 @@ +module( + name = "libdeflate", + version = "1.23", + bazel_compatibility = [">=7.2.1"], + compatibility_level = 1, +) + +bazel_dep(name = "rules_cc", version = "0.0.17") +bazel_dep(name = "rules_license", version = "1.0.0") diff --git a/modules/libdeflate/1.23/overlay/BUILD.bazel b/modules/libdeflate/1.23/overlay/BUILD.bazel new file mode 100644 index 00000000000..cd6cf7cdc05 --- /dev/null +++ b/modules/libdeflate/1.23/overlay/BUILD.bazel @@ -0,0 +1,69 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (c) Contributors to the OpenEXR Project. + +load("@rules_cc//cc:defs.bzl", "cc_library") +load("@rules_license//rules:license.bzl", "license") + +package( + default_applicable_licenses = [":license"], +) + +license( + name = "license", + license_kinds = ["@rules_license//licenses/spdx:MIT"], + license_text = "COPYING", +) + +exports_files([ + "COPYING", +]) + +cc_library( + name = "deflate", + srcs = [ + "common_defs.h", + "lib/adler32.c", + "lib/arm/adler32_impl.h", + "lib/arm/cpu_features.c", + "lib/arm/cpu_features.h", + "lib/arm/crc32_impl.h", + "lib/arm/crc32_pmull_helpers.h", + "lib/arm/crc32_pmull_wide.h", + "lib/arm/matchfinder_impl.h", + "lib/bt_matchfinder.h", + "lib/cpu_features_common.h", + "lib/crc32_multipliers.h", + "lib/crc32_tables.h", + "lib/decompress_template.h", + "lib/deflate_compress.c", + "lib/deflate_compress.h", + "lib/deflate_constants.h", + "lib/deflate_decompress.c", + "lib/gzip_constants.h", + "lib/hc_matchfinder.h", + "lib/ht_matchfinder.h", + "lib/lib_common.h", + "lib/matchfinder_common.h", + "lib/utils.c", + "lib/x86/adler32_impl.h", + "lib/x86/adler32_template.h", + "lib/x86/cpu_features.c", + "lib/x86/cpu_features.h", + "lib/x86/crc32_impl.h", + "lib/x86/crc32_pclmul_template.h", + "lib/x86/decompress_impl.h", + "lib/x86/matchfinder_impl.h", + "lib/zlib_compress.c", + "lib/zlib_constants.h", + "lib/zlib_decompress.c", + ], + hdrs = ["libdeflate.h"], + includes = ["."], + visibility = ["//visibility:public"], +) + +alias( + name = "libdeflate", + actual = ":deflate", + visibility = ["//visibility:public"], +) diff --git a/modules/libdeflate/1.23/overlay/MODULE.bazel b/modules/libdeflate/1.23/overlay/MODULE.bazel new file mode 120000 index 00000000000..9b599e3ad9c --- /dev/null +++ b/modules/libdeflate/1.23/overlay/MODULE.bazel @@ -0,0 +1 @@ +../MODULE.bazel \ No newline at end of file diff --git a/modules/libdeflate/1.23/presubmit.yml b/modules/libdeflate/1.23/presubmit.yml new file mode 100644 index 00000000000..56ee1ce8a9d --- /dev/null +++ b/modules/libdeflate/1.23/presubmit.yml @@ -0,0 +1,20 @@ +matrix: + platform: + - debian10 + - debian11 + - macos + - macos_arm64 + - ubuntu2004 + - ubuntu2204 + - ubuntu2404 + - windows + bazel: [7.x, 8.x, rolling] +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_flags: + - --cxxopt=-std=c++14 + build_targets: + - '@libdeflate//:deflate' diff --git a/modules/libdeflate/1.23/source.json b/modules/libdeflate/1.23/source.json new file mode 100644 index 00000000000..c4f665e66fa --- /dev/null +++ b/modules/libdeflate/1.23/source.json @@ -0,0 +1,10 @@ +{ + "url": "https://github.com/ebiggers/libdeflate/releases/download/v1.23/libdeflate-1.23.tar.gz", + "integrity": "sha256-I1FGW56BiDVksUK2yVEEWzYFXHPH4gLCg/wdkP5/4iw=", + "strip_prefix": "libdeflate-1.23", + "patch_strip": 0, + "overlay": { + "BUILD.bazel": "sha256-BTUn3J9ctKLETYmnyOb9ZYuDXN0zyFzSbeMa2qUYnNM=", + "MODULE.bazel": "sha256-zIGxCqjyjsUIjX7szRsSFhQIar865rEhmvwAf2R20M8=" + } +} diff --git a/modules/libdeflate/metadata.json b/modules/libdeflate/metadata.json index c84bc98b6bc..a67d1603791 100644 --- a/modules/libdeflate/metadata.json +++ b/modules/libdeflate/metadata.json @@ -16,7 +16,8 @@ "1.20", "1.20.bcr.1", "1.21", - "1.22" + "1.22", + "1.23" ], "yanked_versions": {} }