-
Notifications
You must be signed in to change notification settings - Fork 4
/
WORKSPACE
66 lines (57 loc) · 1.67 KB
/
WORKSPACE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
workspace(name = "org_mizux_bazelpybind11")
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository", "new_git_repository")
# Bazel Extensions
## Bazel Skylib rules.
git_repository(
name = "bazel_skylib",
tag = "1.5.0",
remote = "https://github.com/bazelbuild/bazel-skylib.git",
)
load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
bazel_skylib_workspace()
## Bazel rules.
git_repository(
name = "platforms",
tag = "0.0.8",
remote = "https://github.com/bazelbuild/platforms.git",
)
git_repository(
name = "rules_cc",
tag = "0.0.9",
remote = "https://github.com/bazelbuild/rules_cc.git",
)
git_repository(
name = "rules_python",
tag = "0.27.1",
remote = "https://github.com/bazelbuild/rules_python.git",
)
# Dependencies
## Python
load("@rules_python//python:repositories.bzl", "py_repositories")
py_repositories()
## `pybind11_bazel`
git_repository(
name = "pybind11_bazel",
commit = "23926b00e2b2eb2fc46b17e587cf0c0cfd2f2c4b", # 2023/11/29
patches = ["//patches:pybind11_bazel.patch"],
patch_args = ["-p1"],
remote = "https://github.com/pybind/pybind11_bazel.git",
)
new_git_repository(
name = "pybind11",
build_file = "@pybind11_bazel//:pybind11.BUILD",
tag = "v2.11.1",
remote = "https://github.com/pybind/pybind11.git",
)
load("@pybind11_bazel//:python_configure.bzl", "python_configure")
python_configure(name = "local_config_python", python_version = "3")
bind(
name = "python_headers",
actual = "@local_config_python//:python_headers",
)
## Testing
git_repository(
name = "com_google_googletest",
tag = "v1.13.0",
remote = "https://github.com/google/googletest.git",
)