-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMODULE.bazel
More file actions
82 lines (71 loc) · 2.9 KB
/
MODULE.bazel
File metadata and controls
82 lines (71 loc) · 2.9 KB
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
"""
bzlmod defs
"""
module(
name = "corevx",
version = "1.0",
)
# Import external dependencies
bazel_dep(name = "rules_cc", version = "0.1.1")
bazel_dep(name = "rules_foreign_cc", version = "0.11.1")
bazel_dep(name = "rules_python", version = "0.40.0")
bazel_dep(name = "platforms", version = "0.0.11")
bazel_dep(name = "googletest", version = "1.15.2")
bazel_dep(name = "apple_support", version = "1.17.1", repo_name = "build_bazel_apple_support")
bazel_dep(name = "curl", version = "8.8.0")
bazel_dep(name = "nlohmann_json", version = "3.11.3")
bazel_dep(name = "hedron_compile_commands", dev_dependency = True)
bazel_dep(name = "flatbuffers", version = "24.3.25")
bazel_dep(name = "opentelemetry-cpp", version = "1.19.0")
bazel_dep(name = "opencv", version = "4.11.0.bcr.2")
bazel_dep(name = "libxml2", version = "2.13.5")
# Hedron's Compile Commands Extractor for Bazel
git_override(
module_name = "hedron_compile_commands",
remote = "https://github.com/hedronvision/bazel-compile-commands-extractor.git",
commit = "4f28899228fb3ad0126897876f147ca15026151e",
)
# Use archive_override to patch rules_foreign_cc to default to specific cmake version
archive_override(
module_name = "rules_foreign_cc",
integrity = "sha256-SzPWLPEJvMzyhrMO1xIRKcw0z09O2dihHzjZEI9AunQ=",
patch_strip = 1,
patches = [
"//third_party/patch:foreign_cc.patch",
],
strip_prefix = "rules_foreign_cc-0.11.1",
urls = [
"https://github.com/bazelbuild/rules_foreign_cc/releases/download/0.11.1/rules_foreign_cc-0.11.1.tar.gz",
],
)
tools = use_extension("@rules_foreign_cc//foreign_cc:extensions.bzl", "tools")
tools.cmake(version = "3.29.5")
use_repo(tools, "cmake_3.29.5_toolchains")
cuda_home_repository = use_repo_rule("//:build_tools/cuda_defs.bzl", "cuda_home_repository")
cuda_home_repository(name = "cuda_env")
# Load third-party modules
http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
git_repository = use_repo_rule("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
new_git_repository = use_repo_rule("@bazel_tools//tools/build_defs/repo:git.bzl", "new_git_repository")
http_archive(
name = "libxml2-remote",
build_file_content = """
""",
sha256 = "832f8c4c652f813c9d0a01adcaf86145b77c64e56c71ed85db8071aa78beb98f",
strip_prefix = "libxml2-v2.13.4",
url = "https://gitlab.gnome.org/GNOME/libxml2/-/archive/v2.13.4/libxml2-v2.13.4.tar.gz",
)
http_archive(
name = "opencl_headers",
build_file_content = """
cc_library(
name = "cl_headers",
hdrs = glob(["CL/*.h"]),
includes = ["."],
visibility = ["//visibility:public"],
)
""",
sha256 = "0ce992f4167f958f68a37918dec6325be18f848dee29a4521c633aae3304915d",
strip_prefix = "OpenCL-Headers-2023.04.17",
url = "https://github.com/KhronosGroup/OpenCL-Headers/archive/refs/tags/v2023.04.17.tar.gz",
)