-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMODULE.bazel
More file actions
40 lines (31 loc) · 1.4 KB
/
MODULE.bazel
File metadata and controls
40 lines (31 loc) · 1.4 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
module(name = 'meshcodes')
# Deps
## Tools
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_local_repository = use_repo_rule('@bazel_tools//tools/build_defs/repo:local.bzl', 'new_local_repository')
bazel_dep(name = 'platforms', version = '0.0.10')
bazel_dep(name = 'bazel_skylib', version = '1.7.1')
bazel_dep(name = 'rules_foreign_cc', version = '0.12.0')
## Toolchain
bazel_dep(name='rules_python', version='0.37.1')
python = use_extension('@rules_python//python/extensions:python.bzl', 'python')
python.toolchain(python_version = '3.10', is_default = True, ignore_root_user_error = True)
bazel_dep(name = 'toolchains_llvm', version = '1.2.0')
## Packages: Bazel registry
bazel_dep(name = 'pugixml', version = '1.14.bcr.1')
bazel_dep(name = "rapidjson", version = "1.1.0.bcr.20241007")
## IDE
bazel_dep(name = 'hedron_compile_commands', dev_dependency = True)
git_override(
module_name = 'hedron_compile_commands',
remote = 'https://github.com/hedronvision/bazel-compile-commands-extractor.git',
commit = '4f28899228fb3ad0126897876f147ca15026151e',
)
# Toolchain config
llvm = use_extension('@toolchains_llvm//toolchain/extensions:llvm.bzl', 'llvm')
llvm.toolchain(
llvm_version = '16.0.0',
)
use_repo(llvm, 'llvm_toolchain')
register_toolchains('@llvm_toolchain//:all')