-
Notifications
You must be signed in to change notification settings - Fork 139
Expand file tree
/
Copy pathMODULE.bazel
More file actions
111 lines (103 loc) · 4.36 KB
/
MODULE.bazel
File metadata and controls
111 lines (103 loc) · 4.36 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
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
# Copyright (c) 2024 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the
# terms of the Apache Software License 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0, or the MIT license
# which is available at https://opensource.org/licenses/MIT.
#
# SPDX-License-Identifier: Apache-2.0 OR MIT
###############################################################################
# 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(
name = "iceoryx2",
version = "0.8.999",
)
bazel_dep(name = "bazel_features", version = "1.32.0")
bazel_dep(name = "bazel_skylib", version = "1.8.2")
bazel_dep(name = "googletest", version = "1.14.0.bcr.1", dev_dependency = True)
bazel_dep(name = "platforms", version = "1.0.0")
bazel_dep(name = "rules_cc", version = "0.2.8")
bazel_dep(name = "rules_rust", version = "0.68.1")
bazel_dep(name = "rules_rust_bindgen", version = "0.68.1")
bazel_dep(name = "toolchains_llvm", version = "1.5.0")
# LLVM for bindgen
# Note: When iceoryx2 is used as a dependency (not root module), the root module
# must set up the llvm extension and provide a bindgen toolchain.
# When building iceoryx2 directly (as root module), we set it up here.
llvm = use_extension("@toolchains_llvm//toolchain/extensions:llvm.bzl", "llvm", dev_dependency = True)
llvm.toolchain(llvm_version = "17.0.6")
use_repo(llvm, "llvm_toolchain_llvm")
rust = use_extension("@rules_rust//rust:extensions.bzl", "rust")
rust.toolchain(
edition = "2021",
versions = ["1.85.0"],
)
use_repo(rust, "rust_toolchains")
register_toolchains(
"@rust_toolchains//:all",
"//bazel/bindgen:toolchain",
)
crate = use_extension("@rules_rust//crate_universe:extensions.bzl", "crate")
crate.annotation(
crate = "cbindgen",
gen_binaries = ["cbindgen"],
)
crate.from_cargo(
name = "crate_index",
cargo_lockfile = "//:Cargo.lock",
lockfile = "//:Cargo.Bazel.lock",
manifests = [
"//:Cargo.toml",
"//:benchmarks/event/Cargo.toml",
"//:benchmarks/publish-subscribe/Cargo.toml",
"//:benchmarks/queue/Cargo.toml",
"//:benchmarks/request-response/Cargo.toml",
"//:component-tests/rust/Cargo.toml",
"//:examples/Cargo.toml",
"//:iceoryx2-tunnel/end-to-end-tests/Cargo.toml",
"//:iceoryx2-tunnel/backend/Cargo.toml",
"//:iceoryx2-tunnel/zenoh/Cargo.toml",
"//:iceoryx2-tunnel/tunnel/Cargo.toml",
"//:iceoryx2-tunnel/conformance-tests/Cargo.toml",
"//:iceoryx2-services/discovery/Cargo.toml",
"//:iceoryx2-log/log/Cargo.toml",
"//:iceoryx2-log/types/Cargo.toml",
"//:iceoryx2/Cargo.toml",
"//:iceoryx2/conformance-tests/Cargo.toml",
"//:iceoryx2-bb/print/Cargo.toml",
"//:iceoryx2-bb/loggers/Cargo.toml",
"//:iceoryx2-bb/concurrency/Cargo.toml",
"//:iceoryx2-bb/container/Cargo.toml",
"//:iceoryx2-bb/derive-macros/Cargo.toml",
"//:iceoryx2-bb/elementary/Cargo.toml",
"//:iceoryx2-bb/elementary-traits/Cargo.toml",
"//:iceoryx2-bb/linux/Cargo.toml",
"//:iceoryx2-bb/lock-free/Cargo.toml",
"//:iceoryx2-bb/memory/Cargo.toml",
"//:iceoryx2-bb/posix/Cargo.toml",
"//:iceoryx2-bb/system-types/Cargo.toml",
"//:iceoryx2-bb/testing/Cargo.toml",
"//:iceoryx2-bb/threadsafe/Cargo.toml",
"//:iceoryx2-bb/trait-tests/Cargo.toml",
"//:iceoryx2-cal/Cargo.toml",
"//:iceoryx2-cal/conformance-tests/Cargo.toml",
"//:iceoryx2-cli/Cargo.toml",
"//:iceoryx2-ffi/ffi-macros/Cargo.toml",
"//:iceoryx2-ffi/c/Cargo.toml",
"//:iceoryx2-ffi/python/Cargo.toml",
"//:iceoryx2-pal/concurrency-sync/Cargo.toml",
"//:iceoryx2-pal/configuration/Cargo.toml",
"//:iceoryx2-pal/os-api/Cargo.toml",
"//:iceoryx2-pal/posix/Cargo.toml",
"//:iceoryx2-pal/testing/Cargo.toml",
"//:iceoryx2-userland/record-and-replay/Cargo.toml",
],
)
use_repo(crate, "crate_index")