Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Vertexwahn authored Dec 27, 2024
1 parent 76d28f6 commit 4a06701
Show file tree
Hide file tree
Showing 6 changed files with 111 additions and 1 deletion.
9 changes: 9 additions & 0 deletions modules/libdeflate/1.23/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -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")
69 changes: 69 additions & 0 deletions modules/libdeflate/1.23/overlay/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -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"],
)
1 change: 1 addition & 0 deletions modules/libdeflate/1.23/overlay/MODULE.bazel
20 changes: 20 additions & 0 deletions modules/libdeflate/1.23/presubmit.yml
Original file line number Diff line number Diff line change
@@ -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'
10 changes: 10 additions & 0 deletions modules/libdeflate/1.23/source.json
Original file line number Diff line number Diff line change
@@ -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="
}
}
3 changes: 2 additions & 1 deletion modules/libdeflate/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"1.20",
"1.20.bcr.1",
"1.21",
"1.22"
"1.22",
"1.23"
],
"yanked_versions": {}
}

0 comments on commit 4a06701

Please sign in to comment.