-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1166 from antmicro:49966-zstd-cleaned
PiperOrigin-RevId: 585121246
- Loading branch information
Showing
4 changed files
with
77 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Copyright 2023 The XLS Authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# Needed to make this a package. |
50 changes: 50 additions & 0 deletions
50
dependency_support/com_github_facebook_zstd/bundled.BUILD.bazel
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,50 @@ | ||
# Copyright 2023 The XLS Authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
package(default_visibility = ["//visibility:public"]) | ||
|
||
licenses(["notice"]) | ||
|
||
# Builds everything together similarly to the zstd cmake file: | ||
# https://github.com/facebook/zstd/blob/dev/build/cmake/lib/CMakeLists.txt | ||
# but with legacy support and defines as in the zstd BUCK file: | ||
# https://github.com/facebook/zstd/blob/dev/lib/BUCK | ||
|
||
cc_library( | ||
name = "zstd", | ||
srcs = glob([ | ||
"lib/common/*.h", | ||
"lib/common/*.c", | ||
"lib/compress/*.h", | ||
"lib/compress/*.c", | ||
"lib/decompress/*.h", | ||
"lib/decompress/*.c", | ||
"lib/decompress/*.S", | ||
"lib/deprecated/*.h", | ||
"lib/deprecated/*.c", | ||
"lib/dictBuilder/*.h", | ||
"lib/dictBuilder/*.c", | ||
"lib/legacy/*.h", | ||
"lib/legacy/*.c", | ||
]), | ||
hdrs = [ | ||
"lib/zstd.h", | ||
], | ||
strip_include_prefix = "lib", | ||
local_defines = [ | ||
"ZSTD_LEGACY_SUPPORT=4", | ||
"XXH_NAMESPACE=ZSTD_", | ||
], | ||
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