-
Notifications
You must be signed in to change notification settings - Fork 3
/
MODULE.bazel
69 lines (63 loc) · 1.37 KB
/
MODULE.bazel
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
67
68
69
module(
name = "graft",
version = "0.0.0",
compatibility_level = 0,
)
# Dependencies
bazel_dep(
name = "gazelle",
version = "0.37.0",
)
bazel_dep(
name = "platforms",
version = "0.0.10",
)
bazel_dep(
name = "protobuf",
version = "27.2",
repo_name = "com_google_protobuf",
)
bazel_dep(
name = "rules_go",
version = "0.49.0",
)
bazel_dep(
name = "rules_pkg",
version = "1.0.1",
)
# Extensions
tf_repos = use_extension(
"//third_party/org_tensorflow:workspace.bzl",
"download_tf_repositories",
)
use_repo(
tf_repos,
"libtensorflow_linux_x86_64_cpu",
"libtensorflow_linux_x86_64_gpu",
"libtensorflow_macos_arm_64_cpu",
"libtensorflow_other_build",
"libtensorflow_proto",
"tensorflow_base_api_def",
"tensorflow_go",
"tensorflow_serving_proto",
)
libtensorflow_defaults = use_repo_rule(
"//third_party/org_tensorflow:defaults.bzl",
"libtensorflow_defaults",
)
libtensorflow_defaults(name = "libtensorflow_defaults")
go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps")
go_deps.from_file(go_mod = "//:go.mod")
use_repo(go_deps, "org_golang_google_protobuf")
# Dev dependencies
bazel_dep(
name = "bazel_skylib",
version = "1.7.1",
dev_dependency = True,
)
bazel_dep(
name = "stardoc",
version = "0.7.0",
dev_dependency = True,
repo_name = "io_bazel_stardoc",
)