| load("@rules_cc//cc:defs.bzl", "cc_library") | |
| package(default_visibility = ["//visibility:public"]) | |
| cc_library( | |
| name = "zstd", | |
| srcs = glob([ | |
| "lib/common/*.c", | |
| "lib/common/*.h", | |
| "lib/compress/*.c", | |
| "lib/compress/*.h", | |
| "lib/decompress/*.c", | |
| "lib/decompress/*.h", | |
| "lib/decompress/*.S", | |
| "lib/dictBuilder/*.c", | |
| "lib/dictBuilder/*.h", | |
| ]), | |
| hdrs = [ | |
| "lib/zdict.h", | |
| "lib/zstd.h", | |
| "lib/zstd_errors.h", | |
| ], | |
| defines = [ | |
| "LLVM_ENABLE_ZSTD=1", | |
| "ZSTD_MULTITHREAD", | |
| ], | |
| strip_include_prefix = "lib", | |
| ) |