-
Notifications
You must be signed in to change notification settings - Fork 617
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to embedding libdeflate into EXRCore (#1387)
Switches to embedding upstream (MIT license) libdeflate vs linking against external library, functions should be private / hidden by default. Like Imath, enables one to use a system version or force using an internally embedded version (OPENEXR_FORCE_INTERNAL_DEFLATE). Further, the repository used can be controlled with OPENEXR_DEFLATE_REPO and OPENEXR_DEFLATE_TAG cmake variables. This centralizes all IETF RFC 1950 (zlib) compression into the EXRCore library. This implies that the main C++ library depends on EXRCore. Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>
- Loading branch information
Showing
34 changed files
with
700 additions
and
433 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
# Copyright (c) Contributors to the OpenEXR Project. | ||
|
||
load("@rules_cc//cc:defs.bzl", "cc_library") | ||
|
||
licenses(["notice"]) | ||
|
||
exports_files( | ||
glob(["lib/**"]) + ["common_defs.h"], | ||
visibility = ["//visibility:public"], | ||
) | ||
|
||
cc_library( | ||
name = "libdeflate", | ||
srcs = [ | ||
"lib/arm/cpu_features.c", | ||
"lib/x86/cpu_features.c", | ||
"lib/utils.c", | ||
"lib/deflate_compress.c", | ||
"lib/deflate_decompress.c", | ||
"lib/adler32.c", | ||
"lib/zlib_compress.c", | ||
"lib/zlib_decompress.c", | ||
"lib/crc32.c", | ||
"lib/gzip_compress.c", | ||
"lib/gzip_decompress.c", | ||
"lib/adler32_vec_template.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.h", | ||
"lib/deflate_constants.h", | ||
"lib/gzip_constants.h", | ||
"lib/hc_matchfinder.h", | ||
"lib/ht_matchfinder.h", | ||
"lib/lib_common.h", | ||
"lib/matchfinder_common.h", | ||
"lib/zlib_constants.h", | ||
"lib/arm/adler32_impl.h", | ||
"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/x86/adler32_impl.h", | ||
"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", | ||
"common_defs.h", | ||
], | ||
hdrs = ["libdeflate.h"], | ||
includes = ["."], | ||
visibility = ["//visibility:public"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.