blob: 5114ac3b688335f96f1907c72519f49751535959 [file]
module(
name = "hothd",
version = "0.0.0",
)
bazel_dep(name = "rules_foreign_cc", version = "0.13.0")
bazel_dep(name = "rules_cc", version = "0.2.16")
bazel_dep(name = "rules_python", version = "0.40.0")
bazel_dep(name = "nlohmann_json", version = "3.12.0.bcr.1")
bazel_dep(name = "cli11", version = "2.4.2")
bazel_dep(name = "fmt", version = "11.0.2")
bazel_dep(name = "abseil-cpp", version = "20240116.2")
bazel_dep(name = "googletest", version = "1.15.2")
bazel_dep(name = "toolchains_llvm", version = "1.2.0")
llvm = use_extension("@toolchains_llvm//toolchain/extensions:llvm.bzl", "llvm")
llvm.toolchain(
name = "llvm_toolchain",
llvm_versions = {"": "18.1.8"},
sha256 = {"": "54ec30358afcc9fb8aa74307db3046f5187f9fb89fb37064cdde906e062ebf36"},
strip_prefix = {"": "clang+llvm-18.1.8-x86_64-linux-gnu-ubuntu-18.04"},
urls = {"": ["https://github.com/llvm/llvm-project/releases/download/llvmorg-18.1.8/clang+llvm-18.1.8-x86_64-linux-gnu-ubuntu-18.04.tar.xz"]},
)
use_repo(llvm, "llvm_toolchain_llvm")
register_toolchains("@rules_foreign_cc//toolchains:preinstalled_pkgconfig_toolchain")
register_toolchains("@rules_foreign_cc//toolchains:preinstalled_meson_toolchain")
register_toolchains("@rules_foreign_cc//toolchains:preinstalled_ninja_toolchain")
git_repository = use_repo_rule("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
git_repository(
name = "systemd",
remote = "https://github.com/systemd/systemd.git",
commit = "db11bab38ccf1ed257f310d29070843d4c58ea01",
build_file = "//third_party:systemd.BUILD",
)
git_repository(
name = "stdplus",
remote = "https://github.com/openbmc/stdplus.git",
commit = "9b9648d459c0b42fe5fee4cb92e47c0e28050e9e",
build_file = "//third_party:stdplus.BUILD",
)
git_repository(
name = "sdbusplus",
remote = "https://github.com/openbmc/sdbusplus.git",
commit = "7ccbb01819aa07472a9b80f1afd4d8e88bbb71f4",
patches = ["//:sdbusplus_install_tools.patch"],
patch_args = ["-p1"],
build_file = "//third_party:sdbusplus.BUILD",
)
git_repository(
name = "sdeventplus",
remote = "https://github.com/openbmc/sdeventplus.git",
commit = "857171a82d6cb3c098c99a94ecb043118963ecc9",
build_file = "//third_party:sdeventplus.BUILD",
)
git_repository(
name = "phosphor_dbus_interfaces",
remote = "https://github.com/openbmc/phosphor-dbus-interfaces.git",
commit = "e5cafef0032e7b7e93624ea8642f06a56b14bf35",
build_file = "//third_party:phosphor_dbus_interfaces.BUILD",
)
bazel_dep(name = "libhoth")
git_override(
module_name = "libhoth",
commit = "b4a18d8f8085c1d4680d881dcdb251efbc626f53",
remote = "https://github.com/google/libhoth",
)