Skip to content

Commit

Permalink
Add libdeflate 1.19 (#932)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vertexwahn authored Sep 17, 2023
1 parent dcdef7d commit 14b5e13
Show file tree
Hide file tree
Showing 6 changed files with 97 additions and 1 deletion.
5 changes: 5 additions & 0 deletions modules/libdeflate/1.19/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module(
name = "libdeflate",
version = "1.19",
compatibility_level = 1,
)
58 changes: 58 additions & 0 deletions modules/libdeflate/1.19/patches/add_build_file.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
--- /dev/null
+++ BUILD.bazel
@@ -0,0 +1,55 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright (c) Contributors to the OpenEXR Project.
+
+cc_library(
+ name = "deflate",
+ srcs = [
+ "common_defs.h",
+ "lib/adler32.c",
+ "lib/adler32_vec_template.h",
+ "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.c",
+ "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_compress.c",
+ "lib/gzip_constants.h",
+ "lib/gzip_decompress.c",
+ "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/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"],
+)
8 changes: 8 additions & 0 deletions modules/libdeflate/1.19/patches/module_dot_bazel.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
--- MODULE.bazel
+++ MODULE.bazel
@@ -0,0 +1,5 @@
+module(
+ name = "libdeflate",
+ version = "1.19",
+ compatibility_level = 1,
+)
14 changes: 14 additions & 0 deletions modules/libdeflate/1.19/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
matrix:
platform:
- debian10
- ubuntu2004
- macos
- windows
tasks:
verify_targets:
name: Verify build targets
platform: ${{ platform }}
build_flags:
- --cxxopt=-std=c++14
build_targets:
- '@libdeflate//:deflate'
10 changes: 10 additions & 0 deletions modules/libdeflate/1.19/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"url": "https://github.com/ebiggers/libdeflate/archive/refs/tags/v1.19.tar.gz",
"integrity": "sha256-J79i1xzWRyj/Q6n+uS8qwvK/dImG2FYTPMHlGZJCjCU=",
"strip_prefix": "libdeflate-1.19",
"patch_strip": 0,
"patches": {
"add_build_file.patch": "sha256-L5cLd/VE0kOH29ifL5KdRkGX2KOldCTgKqTmNTWOTjg=",
"module_dot_bazel.patch": "sha256-GcCZeZoaXO2+nzQQlv8TqMYlyiAyoz1/f/CjSpUbd8Q="
}
}
3 changes: 2 additions & 1 deletion modules/libdeflate/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
}
],
"versions": [
"1.18"
"1.18",
"1.19"
],
"yanked_versions": {}
}

0 comments on commit 14b5e13

Please sign in to comment.