1 # This file is licensed under the Apache License v2.0 with LLVM Exceptions.
2 # See https://llvm.org/LICENSE.txt for license information.
3 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
4 load("@bazel_skylib//rules:common_settings.bzl", "bool_flag")
7 default_visibility = ["//visibility:public"],
8 # BSD/MIT-like license (for zstd)
13 name = "llvm_enable_zstd",
14 build_setting_default = True,
18 name = "llvm_zstd_enabled",
19 flag_values = {":llvm_enable_zstd": "true"},
25 ":llvm_zstd_enabled": glob([
33 "lib/dictBuilder/*.c",
34 "lib/dictBuilder/*.h",
36 "//conditions:default": [],
39 ":llvm_zstd_enabled": [
44 "//conditions:default": [],
47 ":llvm_zstd_enabled": [
51 "//conditions:default": [],
53 strip_include_prefix = "lib",