Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Vertexwahn authored Jun 9, 2024
1 parent 1dc5520 commit 37e60e9
Show file tree
Hide file tree
Showing 4 changed files with 81 additions and 15 deletions.
41 changes: 41 additions & 0 deletions modules/google_benchmark/1.8.4/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
module(
name = "google_benchmark",
version = "1.8.4",
)

bazel_dep(name = "bazel_skylib", version = "1.5.0")
bazel_dep(name = "platforms", version = "0.0.8")
bazel_dep(name = "rules_foreign_cc", version = "0.10.1")
bazel_dep(name = "rules_cc", version = "0.0.9")

bazel_dep(name = "rules_python", version = "0.31.0", dev_dependency = True)
bazel_dep(name = "googletest", version = "1.12.1", dev_dependency = True, repo_name = "com_google_googletest")

bazel_dep(name = "libpfm", version = "4.11.0")

# Register a toolchain for Python 3.9 to be able to build numpy. Python
# versions >=3.10 are problematic.
# A second reason for this is to be able to build Python hermetically instead
# of relying on the changing default version from rules_python.

python = use_extension("@rules_python//python/extensions:python.bzl", "python", dev_dependency = True)
python.toolchain(python_version = "3.8")
python.toolchain(python_version = "3.9")
python.toolchain(python_version = "3.10")
python.toolchain(python_version = "3.11")
python.toolchain(
is_default = True,
python_version = "3.12",
)

pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip", dev_dependency = True)
pip.parse(
hub_name = "tools_pip_deps",
python_version = "3.9",
requirements_lock = "//tools:requirements.txt",
)
use_repo(pip, "tools_pip_deps")

# -- bazel_dep definitions -- #

bazel_dep(name = "nanobind_bazel", version = "1.0.0", dev_dependency = True)
17 changes: 17 additions & 0 deletions modules/google_benchmark/1.8.4/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
matrix:
bazel: [6.x, 7.x, rolling]
platform:
- debian10
- debian11
- macos
- macos_arm64
- ubuntu2004
- ubuntu2204
- windows
tasks:
verify_targets:
name: Verify build targets
platform: ${{ platform }}
bazel: ${{ bazel }}
build_targets:
- '@google_benchmark//:all'
6 changes: 6 additions & 0 deletions modules/google_benchmark/1.8.4/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"url": "https://github.com/google/benchmark/archive/refs/tags/v1.8.4.tar.gz",
"integrity": "sha256-PnBZtrEfsbvijjPgJRk5jKlMGBiHTr7RjlBNxvcJvkU=",
"strip_prefix": "benchmark-1.8.4",
"patches": {}
}
32 changes: 17 additions & 15 deletions modules/google_benchmark/metadata.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
{
"homepage": "https://github.com/google/benchmark",
"maintainers": [
{
"email": "[email protected]",
"name": "No Maintainer Specified"
}
],
"repository": [
"github:google/benchmark"
],
"versions": [
"1.8.2",
"1.8.3"
],
"yanked_versions": {}
"homepage": "https://github.com/google/benchmark",
"maintainers": [
{
"email": "[email protected]",
"github": "Vertexwahn",
"name": "Julian Amann"
}
],
"repository": [
"github:google/benchmark"
],
"versions": [
"1.8.2",
"1.8.3",
"1.8.4"
],
"yanked_versions": {}
}

0 comments on commit 37e60e9

Please sign in to comment.