-
Notifications
You must be signed in to change notification settings - Fork 0
/
MODULE.bazel
142 lines (127 loc) · 5.51 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
###############################################################################
# Bazel now uses Bzlmod by default to manage external dependencies.
# Please consider migrating your external dependencies from WORKSPACE to MODULE.bazel.
#
# For more details, please check https://github.com/bazelbuild/bazel/issues/18958
###############################################################################
module(
version = "0.1.0",
repo_name = "meeting_bot",
)
bazel_dep(name = "bazel_skylib", version = "1.5.0")
bazel_dep(name = "platforms", version = "0.0.10")
bazel_dep(name = "apple_support", version = "1.15.1", repo_name = "build_bazel_apple_support")
bazel_dep(name = "rules_apple", version = "3.5.1", repo_name = "build_bazel_rules_apple")
bazel_dep(name = "rules_python", version = "0.34.0")
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(
configure_coverage_tool = True,
python_version = "3.11",
)
use_repo(python, "python_3_11")
pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
pip.parse(
hub_name = "pip",
python_version = "3.11",
requirements_linux = "//third_party:requirements_linux_lock.txt",
requirements_lock = "//third_party:requirements_lock.txt",
)
use_repo(pip, "pip")
bazel_dep(name = "rules_foreign_cc", version = "0.10.1")
git_override(
module_name = "rules_foreign_cc",
commit = "0ed9aaa68282f8a7de56ae4f96191891a75d4dfb",
patch_strip = 1,
patches = [
"//third_party/rules_foreign_cc:update_meson.patch",
"//third_party/rules_foreign_cc:rules_foreign_cc_module_bazel.patch",
],
remote = "https://github.com/bazelbuild/rules_foreign_cc",
)
bazel_dep(name = "rules_proto", version = "6.0.0")
bazel_dep(name = "abseil-cpp", version = "20240116.2", repo_name = "com_google_absl")
bazel_dep(name = "glog", version = "0.7.0", repo_name = "com_github_glog_glog")
bazel_dep(name = "googletest", version = "1.14.0.bcr.1", repo_name = "com_google_googletest")
bazel_dep(name = "google_benchmark", version = "1.8.4")
bazel_dep(name = "re2", version = "2024-06-01", repo_name = "com_googlesource_code_re2")
bazel_dep(name = "opencv", version = "3.4.20", repo_name = "opencv")
archive_override(
module_name = "opencv",
integrity = "sha256-ggmL0iHRiqdaAbDukeyhRsWGgQcwZwlyElczDaVPAHQ=",
patches = [
"@//third_party/opencv:BUILD.patch",
"@//third_party/opencv:MODULE.bazel.patch",
],
strip_prefix = "opencv-3.4.20",
urls = "https://github.com/opencv/opencv/archive/refs/tags/3.4.20.zip",
)
# opencv deps
bazel_dep(name = "imath", version = "3.1.9")
bazel_dep(name = "zlib", version = "1.3.1")
bazel_dep(name = "libpng", version = "1.6.40")
bazel_dep(name = "libjpeg_turbo", version = "2.1.91")
ONNX_VERSION = "1.18.1"
bazel_dep(name = "onnxruntime_osx_arm64", version = ONNX_VERSION, repo_name = "onnxruntime_osx_arm64")
archive_override(
module_name = "onnxruntime_osx_arm64",
integrity = "sha256-8zViA+m29QIxaKEtt0sQYKs5f4886PXLLCvZ5/EZWwE=",
patches = [
"@//third_party/onnxruntime_osx_arm64:BUILD.patch",
"@//third_party/onnxruntime_osx_arm64:MODULE.bazel.patch",
],
strip_prefix = "onnxruntime-osx-arm64-{}".format(ONNX_VERSION),
urls = "https://github.com/microsoft/onnxruntime/releases/download/v{}/onnxruntime-osx-arm64-{}.tgz".format(ONNX_VERSION, ONNX_VERSION),
)
bazel_dep(name = "onnxruntime_linux_x64", version = ONNX_VERSION)
archive_override(
module_name = "onnxruntime_linux_x64",
integrity = "sha256-oJlFEuweHevADBi/x6XxYkn269amEo/yA0RkzDgOohE=",
patches = [
"@//third_party/onnxruntime_linux_x64:BUILD.patch",
"@//third_party/onnxruntime_linux_x64:MODULE.bazel.patch",
],
strip_prefix = "onnxruntime-linux-x64-{}".format(ONNX_VERSION),
urls = "https://github.com/microsoft/onnxruntime/releases/download/v{}/onnxruntime-linux-x64-{}.tgz".format(ONNX_VERSION, ONNX_VERSION),
)
bazel_dep(name = "gsl", version = "4.0.0")
archive_override(
module_name = "gsl",
integrity = "sha256-65H8sQpqpcyx0iTgelbI7P/pobtgH6GEgnbsRqIgC/s=",
patches = [
"@//third_party/gsl:BUILD.patch",
"@//third_party/gsl:MODULE.bazel.patch",
],
strip_prefix = "GSL-4.0.0",
urls = "https://github.com/microsoft/GSL/archive/refs/tags/v4.0.0.zip",
)
bazel_dep(name = "onnxruntime_extensions", version = "0.11.0")
git_override(
module_name = "onnxruntime_extensions",
commit = "f1abea14e88422a16e8337f86820bf306b506c61",
patches = [
"@//third_party/onnxruntime_extensions:BUILD.patch",
"@//third_party/onnxruntime_extensions:MODULE.bazel.patch",
],
remote = "https://github.com/microsoft/onnxruntime-extensions.git",
)
bazel_dep(name = "onnxruntime_genai", version = "0.3.0")
git_override(
module_name = "onnxruntime_genai",
commit = "54177bc1d6fd8ea4ec5ae8c47df9632c810c996a",
patches = [
"@//third_party/onnxruntime_genai:BUILD.patch",
"@//third_party/onnxruntime_genai:MODULE.bazel.patch",
],
remote = "https://github.com/microsoft/onnxruntime-genai.git",
)
# linter
bazel_dep(name = "aspect_rules_lint", version = "0.21.0")
bazel_dep(name = "buildifier_prebuilt", version = "6.4.0")
# Hedron's Compile Commands Extractor for Bazel
# https://github.com/hedronvision/bazel-compile-commands-extractor
bazel_dep(name = "hedron_compile_commands", dev_dependency = True)
git_override(
module_name = "hedron_compile_commands",
remote = "https://github.com/eugeneo/bazel-compile-commands-extractor.git",
commit = "844279a911d0a0adca480b299799f03f65290cce",
)