• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1load("@nanobind_bazel//:build_defs.bzl", "nanobind_extension")
2
3py_library(
4    name = "google_benchmark",
5    srcs = ["__init__.py"],
6    visibility = ["//visibility:public"],
7    deps = [
8        ":_benchmark",
9    ],
10)
11
12nanobind_extension(
13    name = "_benchmark",
14    srcs = ["benchmark.cc"],
15    deps = ["//:benchmark"],
16)
17
18py_test(
19    name = "example",
20    srcs = ["example.py"],
21    python_version = "PY3",
22    srcs_version = "PY3",
23    visibility = ["//visibility:public"],
24    deps = [
25        ":google_benchmark",
26    ],
27)
28