| workspace(name = "com_google_verible") |
| |
| load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
| |
| http_archive( |
| name = "rules_license", |
| sha256 = "6157e1e68378532d0241ecd15d3c45f6e5cfd98fc10846045509fb2a7cc9e381", |
| urls = [ |
| "https://github.com/bazelbuild/rules_license/releases/download/0.0.4/rules_license-0.0.4.tar.gz", |
| "https://mirror.bazel.build/github.com/bazelbuild/rules_license/releases/download/0.0.4/rules_license-0.0.4.tar.gz", |
| ], |
| ) |
| |
| # Bazel platform rules, needed as dependency to absl. |
| http_archive( |
| name = "platforms", |
| sha256 = "8150406605389ececb6da07cbcb509d5637a3ab9a24bc69b1101531367d89d74", |
| urls = [ |
| "https://mirror.bazel.build/github.com/bazelbuild/platforms/releases/download/0.0.8/platforms-0.0.8.tar.gz", |
| "https://github.com/bazelbuild/platforms/releases/download/0.0.8/platforms-0.0.8.tar.gz", |
| ], |
| ) |
| |
| http_archive( |
| name = "bazel_skylib", |
| sha256 = "74d544d96f4a5bb630d465ca8bbcfe231e3594e5aae57e1edbf17a6eb3ca2506", |
| urls = [ |
| "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz", |
| "https://github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz", |
| ], |
| ) |
| |
| load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace") |
| |
| bazel_skylib_workspace() |
| |
| http_archive( |
| name = "com_google_absl", |
| # On MSVC's STL implementation, string_view cannot be constructed from |
| # a string_view::iterator. This patch forces the use of absl's string_view |
| # implementation to solve the issue |
| patch_args = ["-p1"], |
| patches = [ |
| "//bazel:absl.patch", |
| ], |
| sha256 = "338420448b140f0dfd1a1ea3c3ce71b3bc172071f24f4d9a57d59b45037da440", |
| strip_prefix = "abseil-cpp-20240116.0", |
| urls = ["https://github.com/abseil/abseil-cpp/archive/refs/tags/20240116.0.tar.gz"], |
| ) |
| |
| http_archive( |
| name = "com_googlesource_code_re2", |
| sha256 = "8b4a8175da7205df2ad02e405a950a02eaa3e3e0840947cd598e92dca453199b", |
| strip_prefix = "re2-2023-06-01", |
| urls = ["https://github.com/google/re2/archive/refs/tags/2023-06-01.tar.gz"], |
| ) |
| |
| http_archive( |
| name = "com_google_googletest", |
| sha256 = "1f357c27ca988c3f7c6b4bf68a9395005ac6761f034046e9dde0896e3aba00e4", |
| strip_prefix = "googletest-1.14.0", |
| urls = ["https://github.com/google/googletest/archive/refs/tags/v1.14.0.zip"], |
| ) |
| |
| http_archive( |
| name = "rules_cc", |
| sha256 = "69fb4b965c538509324960817965791761d57010f42bf12ce9769c4259c7d018", |
| strip_prefix = "rules_cc-e7c97c3af74e279a5db516a19f642e862ff58548", |
| urls = ["https://github.com/bazelbuild/rules_cc/archive/e7c97c3af74e279a5db516a19f642e862ff58548.zip"], |
| ) |
| |
| # |
| # External tools needed |
| # |
| |
| # 'make install' equivalent rule 2023-02-21 |
| http_archive( |
| name = "com_github_google_rules_install", |
| # The installer uses an option -T that is not available on MacOS, but |
| # it is benign to leave out. |
| # Upstream bug https://github.com/google/bazel_rules_install/issues/31 |
| patch_args = ["-p1"], |
| patches = ["//bazel:installer.patch"], |
| sha256 = "aba3c1ae179beb92c1fc4502d66d7d7c648f90eb51897aa4b0ae4a76ce225eec", |
| strip_prefix = "bazel_rules_install-6001facc1a96bafed0e414a529b11c1819f0cdbe", |
| urls = ["https://github.com/google/bazel_rules_install/archive/6001facc1a96bafed0e414a529b11c1819f0cdbe.zip"], |
| ) |
| |
| load("@com_github_google_rules_install//:deps.bzl", "install_rules_dependencies") |
| |
| install_rules_dependencies() |
| |
| load("@com_github_google_rules_install//:setup.bzl", "install_rules_setup") |
| |
| install_rules_setup() |
| |
| http_archive( |
| name = "rules_m4", |
| sha256 = "10ce41f150ccfbfddc9d2394ee680eb984dc8a3dfea613afd013cfb22ea7445c", |
| urls = ["https://github.com/jmillikin/rules_m4/releases/download/v0.2.3/rules_m4-v0.2.3.tar.xz"], |
| ) |
| |
| load("@rules_m4//m4:m4.bzl", "m4_register_toolchains") |
| |
| m4_register_toolchains(version = "1.4.18") |
| |
| http_archive( |
| name = "rules_flex", |
| sha256 = "8929fedc40909d19a4b42548d0785f796c7677dcef8b5d1600b415e5a4a7749f", |
| # flex 2.6.4 |
| urls = ["https://github.com/jmillikin/rules_flex/releases/download/v0.2.1/rules_flex-v0.2.1.tar.xz"], |
| ) |
| |
| load("@rules_flex//flex:flex.bzl", "flex_register_toolchains") |
| |
| flex_register_toolchains(version = "2.6.4") |
| |
| http_archive( |
| name = "rules_bison", |
| sha256 = "9577455967bfcf52f9167274063ebb74696cb0fd576e4226e14ed23c5d67a693", |
| urls = ["https://github.com/jmillikin/rules_bison/releases/download/v0.2.1/rules_bison-v0.2.1.tar.xz"], |
| ) |
| |
| load("@rules_bison//bison:bison.bzl", "bison_register_toolchains") |
| |
| bison_register_toolchains() |
| |
| # We, but also protobuf needs zlib. Make sure we define it first. |
| http_archive( |
| name = "zlib", |
| build_file = "//bazel:zlib.BUILD", |
| sha256 = "9a93b2b7dfdac77ceba5a558a580e74667dd6fede4585b91eefb60f03b72df23", |
| strip_prefix = "zlib-1.3.1", |
| urls = [ |
| "https://zlib.net/zlib-1.3.1.tar.gz", |
| "https://zlib.net/fossils/zlib-1.3.1.tar.gz", |
| ], |
| ) |
| |
| http_archive( |
| name = "com_google_protobuf", |
| patch_args = ["-p1"], |
| patches = [ |
| "//bazel:proto-fix-uninitialized-value.patch", |
| ], |
| sha256 = "8ff511a64fc46ee792d3fe49a5a1bcad6f7dc50dfbba5a28b0e5b979c17f9871", |
| strip_prefix = "protobuf-25.2", |
| urls = [ |
| "https://github.com/protocolbuffers/protobuf/releases/download/v25.2/protobuf-25.2.tar.gz", |
| ], |
| ) |
| |
| load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps") |
| |
| protobuf_deps() |
| |
| http_archive( |
| name = "rules_proto", |
| sha256 = "dc3fb206a2cb3441b485eb1e423165b231235a1ea9b031b4433cf7bc1fa460dd", |
| strip_prefix = "rules_proto-5.3.0-21.7", |
| urls = [ |
| "https://github.com/bazelbuild/rules_proto/archive/refs/tags/5.3.0-21.7.tar.gz", |
| ], |
| ) |
| |
| load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies") |
| |
| rules_proto_dependencies() |
| |
| http_archive( |
| name = "jsonhpp", |
| build_file = "//bazel:jsonhpp.BUILD", |
| sha256 = "0d8ef5af7f9794e3263480193c491549b2ba6cc74bb018906202ada498a79406", |
| strip_prefix = "json-3.11.3", |
| urls = [ |
| "https://github.com/nlohmann/json/archive/refs/tags/v3.11.3.tar.gz", |
| ], |
| ) |
| |
| # 2024-02-06 |
| http_archive( |
| name = "rules_compdb", |
| sha256 = "70232adda61e89a4192be43b4719d35316ed7159466d0ab4f3da0ecb1fbf00b2", |
| strip_prefix = "bazel-compilation-database-fa872dd80742b3dccd79a711f52f286cbde33676", |
| urls = ["https://github.com/grailbio/bazel-compilation-database/archive/fa872dd80742b3dccd79a711f52f286cbde33676.tar.gz"], |
| ) |
| |
| load("@rules_compdb//:deps.bzl", "rules_compdb_deps") |
| |
| rules_compdb_deps() |