Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Check commands
@bazel-io skip_check unstable_url
  • Loading branch information
hzeller committed Jan 1, 2025
1 parent adb3416 commit b6e4714
Show file tree
Hide file tree
Showing 5 changed files with 125 additions and 0 deletions.
78 changes: 78 additions & 0 deletions modules/verible/0.0.3890/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
module(
name = "verible",
version = "0.0.3890",
compatibility_level = 0
)

bazel_dep(name = "platforms", version = "0.0.10")
bazel_dep(name = "bazel_skylib", version = "1.7.1")
bazel_dep(name = "rules_license", version = "1.0.0")
bazel_dep(name = "nlohmann_json", version = "3.11.3.bcr.1")
bazel_dep(name = "re2", version = "2024-07-02.bcr.1")
bazel_dep(name = "zlib", version = "1.3.1.bcr.3")

# Register m4/flex/bison rules and toolchains
bazel_dep(name = "rules_m4", version = "0.2.3")

m4 = use_extension(
"@rules_m4//m4/extensions:m4_repository_ext.bzl",
"m4_repository_ext",
)
m4.repository(
name = "m4",
extra_copts = ["-O3"],
version = "1.4.18",
)
use_repo(m4, "m4")

register_toolchains("@m4//:toolchain")

bazel_dep(name = "rules_flex", version = "0.3")

flex = use_extension(
"@rules_flex//flex/extensions:flex_repository_ext.bzl",
"flex_repository_ext",
)
flex.repository(
name = "flex",
extra_copts = ["-O3"],
version = "2.6.4",
)
use_repo(flex, "flex")

register_toolchains("@flex//:toolchain")

bazel_dep(name = "rules_bison", version = "0.3")

bison = use_extension(
"@rules_bison//bison/extensions:bison_repository_ext.bzl",
"bison_repository_ext",
)
bison.repository(
name = "bison",
extra_copts = ["-O3"],
version = "3.3.2",
)
use_repo(bison, "bison")

register_toolchains("@bison//:toolchain")

# abseil-cpp and googletest can not be updated beyond the following currently,
# as newer googletest is not compatible with bazel 6 anymore, and abseil-cpp
# depends on it :( -- to support all active bazel's, we're stuck till EOL bazel6
bazel_dep(name = "googletest", version = "1.14.0.bcr.1")
bazel_dep(name = "abseil-cpp", version = "20240116.2")
single_version_override(
module_name = "abseil-cpp",
patch_strip = 1,
patches = ["//bazel:absl.patch"],
version = "20240116.2",
)

# Last protobuf version working with windows without strange linking errors.
# This also means that we unfortunately can't use the @protobuf//bazel rules
# but have to use rules_cc and rules_proto.
# TODO: figure out how we can make proto compile beyond 24.4 on Windows.
bazel_dep(name = "protobuf", version = "24.4")
bazel_dep(name = "rules_cc", version = "0.0.9")
bazel_dep(name = "rules_proto", version = "6.0.0-rc2")
10 changes: 10 additions & 0 deletions modules/verible/0.0.3890/patches/module_dot_bazel.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
--- MODULE.bazel
+++ MODULE.bazel
@@ -1,5 +1,7 @@
module(
name = "verible",
+ version = "0.0.3890",
+ compatibility_level = 0
)

bazel_dep(name = "platforms", version = "0.0.10")
11 changes: 11 additions & 0 deletions modules/verible/0.0.3890/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
matrix:
platform: [ "debian10", "ubuntu2004", "macos", "macos_arm64", "windows" ]
bazel: [ "6.x", "7.x", "8.x" ]

tasks:
run_tests:
name: Run tests
platform: ${{ platform }}
bazel: ${{ bazel }}
build_targets:
- "@verible//:install-binaries"
9 changes: 9 additions & 0 deletions modules/verible/0.0.3890/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"integrity": "sha256-VfJZlVuqy9aYM/rZmTayNMdFR6ekQQOblJIdib8UUm4=",
"strip_prefix": "verible-0.0-3890-g2585d6a3",
"url": "https://github.com/chipsalliance/verible/archive/refs/tags/v0.0-3890-g2585d6a3.tar.gz",
"patches": {
"module_dot_bazel.patch": "sha256-KRQvHeN9tDuNOsG6KGmPwb2BaFLQWoIoTlus1phq2eo="
},
"patch_strip": 0
}
17 changes: 17 additions & 0 deletions modules/verible/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"homepage": "https://github.com/chipsalliance/verible",
"maintainers": [
{
"email": "[email protected]",
"github": "hzeller",
"name": "Henner Zeller"
}
],
"repository": [
"github:chipsalliance/verible"
],
"versions": [
"0.0.3890"
],
"yanked_versions": {}
}

0 comments on commit b6e4714

Please sign in to comment.